Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Christoph Hellwig and committed by
Christian Brauner
0d799df5 f08fe889

+1 -4
+1 -2
fs/fs_parser.c
··· 13 13 #include <linux/namei.h> 14 14 #include "internal.h" 15 15 16 - const struct constant_table bool_names[] = { 16 + static const struct constant_table bool_names[] = { 17 17 { "0", false }, 18 18 { "1", true }, 19 19 { "false", false }, ··· 22 22 { "yes", true }, 23 23 { }, 24 24 }; 25 - EXPORT_SYMBOL(bool_names); 26 25 27 26 static const struct constant_table * 28 27 __lookup_constant(const struct constant_table *tbl, const char *name)
-2
include/linux/fs_parser.h
··· 84 84 85 85 extern int lookup_constant(const struct constant_table tbl[], const char *name, int not_found); 86 86 87 - extern const struct constant_table bool_names[]; 88 - 89 87 #ifdef CONFIG_VALIDATE_FS_PARSER 90 88 extern bool fs_validate_description(const char *name, 91 89 const struct fs_parameter_spec *desc);