]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
fs: mark bool_names static
authorChristoph Hellwig <hch@lst.de>
Thu, 19 Feb 2026 06:50:01 +0000 (07:50 +0100)
committerChristian Brauner <brauner@kernel.org>
Thu, 19 Feb 2026 13:34:26 +0000 (14:34 +0100)
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>
fs/fs_parser.c
include/linux/fs_parser.h

index c092a9f79e324bacbd950165a0eb66632cae9e03..46993e31137dd55c519c7ce250342c17ee4d8b9f 100644 (file)
@@ -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)
index 5e8a3b5460331b88ff73af1760eb21f8e4311fdf..ac8253cca2bcb0603167b91114c2d65595ce2e04 100644 (file)
@@ -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);