summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2026-02-19 09:50:01 +0300
committerChristian Brauner <brauner@kernel.org>2026-02-19 16:34:26 +0300
commit0d799df5b147e08828887fe7299efd7a9e0eea40 (patch)
treef4ef429f84988fd59c5899a1cfe4cc3f8d5ff064
parentf08fe8891c3eeb63b73f9f1f6d97aa629c821579 (diff)
downloadlinux-0d799df5b147e08828887fe7299efd7a9e0eea40.tar.xz
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>
-rw-r--r--fs/fs_parser.c3
-rw-r--r--include/linux/fs_parser.h2
2 files changed, 1 insertions, 4 deletions
diff --git a/fs/fs_parser.c b/fs/fs_parser.c
index c092a9f79e32..46993e31137d 100644
--- a/fs/fs_parser.c
+++ b/fs/fs_parser.c
@@ -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)
diff --git a/include/linux/fs_parser.h b/include/linux/fs_parser.h
index 5e8a3b546033..ac8253cca2bc 100644
--- a/include/linux/fs_parser.h
+++ b/include/linux/fs_parser.h
@@ -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);