diff options
author | Petr Mladek <pmladek@suse.com> | 2021-07-23 10:47:07 +0300 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2021-07-26 13:35:56 +0300 |
commit | 0f0aa84850a4105401723c6c0eeb61c2e67c869a (patch) | |
tree | dead9d740465f1e6d4ce069c1e2d6f92c08e8ff5 /kernel/printk | |
parent | 86ce91d5568de02f92ab9d4fb507683f8429a3e2 (diff) | |
download | linux-0f0aa84850a4105401723c6c0eeb61c2e67c869a.tar.xz |
printk/index: Fix warning about missing prototypes
The commit 337015573718b161 ("printk: Userspace format indexing support")
triggered the following build failure:
kernel/printk/index.c:140:6: warning: no previous prototype for ‘pi_create_file’ [-Wmissing-prototypes]
void pi_create_file(struct module *mod)
^~~~~~~~~~~~~~
kernel/printk/index.c:146:6: warning: no previous prototype for ‘pi_remove_file’ [-Wmissing-prototypes]
void pi_remove_file(struct module *mod)
^~~~~~~~~~~~~~
Fixes: 337015573718b161 ("printk: Userspace format indexing support")
Reported-by: kernel test robot <lkp@intel.com>
Suggested-by: Chris Down <chris@chrisdown.name>
[pmladek@suse.com: Let the compiler decide about inlining.]
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/lkml/YPql089IwSpudw%2F1@alley/
Diffstat (limited to 'kernel/printk')
-rw-r--r-- | kernel/printk/index.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/printk/index.c b/kernel/printk/index.c index ca062f5e1779..58d27272f992 100644 --- a/kernel/printk/index.c +++ b/kernel/printk/index.c @@ -137,13 +137,13 @@ static const char *pi_get_module_name(struct module *mod) } #endif -void pi_create_file(struct module *mod) +static void pi_create_file(struct module *mod) { debugfs_create_file(pi_get_module_name(mod), 0444, dfs_index, mod, &dfs_index_fops); } -void pi_remove_file(struct module *mod) +static void pi_remove_file(struct module *mod) { debugfs_remove(debugfs_lookup(pi_get_module_name(mod), dfs_index)); } |