mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
fs: mark bool_names static
The bool_names array is only used in fs_parser.c so mark it static. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://patch.msgid.link/20260219065014.3550402-2-hch@lst.de Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
+1
-2
@@ -13,7 +13,7 @@
|
||||
#include <linux/namei.h>
|
||||
#include "internal.h"
|
||||
|
||||
const struct constant_table bool_names[] = {
|
||||
static const struct constant_table bool_names[] = {
|
||||
{ "0", false },
|
||||
{ "1", true },
|
||||
{ "false", false },
|
||||
@@ -22,7 +22,6 @@ const struct constant_table bool_names[] = {
|
||||
{ "yes", true },
|
||||
{ },
|
||||
};
|
||||
EXPORT_SYMBOL(bool_names);
|
||||
|
||||
static const struct constant_table *
|
||||
__lookup_constant(const struct constant_table *tbl, const char *name)
|
||||
|
||||
@@ -84,8 +84,6 @@ extern int fs_lookup_param(struct fs_context *fc,
|
||||
|
||||
extern int lookup_constant(const struct constant_table tbl[], const char *name, int not_found);
|
||||
|
||||
extern const struct constant_table bool_names[];
|
||||
|
||||
#ifdef CONFIG_VALIDATE_FS_PARSER
|
||||
extern bool fs_validate_description(const char *name,
|
||||
const struct fs_parameter_spec *desc);
|
||||
|
||||
Reference in New Issue
Block a user