mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02: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:
parent
f08fe8891c
commit
0d799df5b1
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user