printk/index: Fix warning about missing prototypes
authorPetr Mladek <pmladek@suse.com>
Fri, 23 Jul 2021 07:47:07 +0000 (09:47 +0200)
committerPetr Mladek <pmladek@suse.com>
Mon, 26 Jul 2021 10:35:56 +0000 (12:35 +0200)
commit0f0aa84850a4105401723c6c0eeb61c2e67c869a
treedead9d740465f1e6d4ce069c1e2d6f92c08e8ff5
parent86ce91d5568de02f92ab9d4fb507683f8429a3e2
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/
kernel/printk/index.c