[joe-lawrence:klp-convert-v5-expanded-v5.14-rebase1 30/47] lib/livepatch/test_klp_convert1.c:18:6: warning: no previous prototype for 'print_saved_command_line'

From: kernel test robot
Date: Fri Oct 29 2021 - 15:15:16 EST


tree: https://github.com/joe-lawrence/linux klp-convert-v5-expanded-v5.14-rebase1
head: 74c41c8a3056994b50b93c5f534dff4d6d6e7d8b
commit: 028660b8bb8811228fe147895c5909e54c6d19ee [30/47] livepatch/selftests: add klp-convert
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/joe-lawrence/linux/commit/028660b8bb8811228fe147895c5909e54c6d19ee
git remote add joe-lawrence https://github.com/joe-lawrence/linux
git fetch --no-tags joe-lawrence klp-convert-v5-expanded-v5.14-rebase1
git checkout 028660b8bb8811228fe147895c5909e54c6d19ee
# save the attached .config to linux build tree
make W=1 ARCH=x86_64

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> lib/livepatch/test_klp_convert1.c:18:6: warning: no previous prototype for 'print_saved_command_line' [-Wmissing-prototypes]
18 | void print_saved_command_line(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> lib/livepatch/test_klp_convert1.c:23:6: warning: no previous prototype for 'print_driver_name' [-Wmissing-prototypes]
23 | void print_driver_name(void)
| ^~~~~~~~~~~~~~~~~
>> lib/livepatch/test_klp_convert1.c:29:6: warning: no previous prototype for 'print_homonym_string' [-Wmissing-prototypes]
29 | void print_homonym_string(void)
| ^~~~~~~~~~~~~~~~~~~~
--
>> lib/livepatch/test_klp_convert2.c:18:6: warning: no previous prototype for 'print_saved_command_line' [-Wmissing-prototypes]
18 | void print_saved_command_line(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~
>> lib/livepatch/test_klp_convert2.c:23:6: warning: no previous prototype for 'print_driver_name' [-Wmissing-prototypes]
23 | void print_driver_name(void)
| ^~~~~~~~~~~~~~~~~
>> lib/livepatch/test_klp_convert2.c:29:6: warning: no previous prototype for 'print_homonym_string' [-Wmissing-prototypes]
29 | void print_homonym_string(void)
| ^~~~~~~~~~~~~~~~~~~~


vim +/print_saved_command_line +18 lib/livepatch/test_klp_convert1.c

17
> 18 void print_saved_command_line(void)
19 {
20 pr_info("saved_command_line, 0: %s\n", saved_command_line);
21 }
22
> 23 void print_driver_name(void)
24 {
25 pr_info("driver_name, 0: %s\n", driver_name);
26 pr_info("test_klp_get_driver_name(), 0: %s\n", test_klp_get_driver_name());
27 }
28
> 29 void print_homonym_string(void)
30 {
31 pr_info("homonym_string, 1: %s\n", homonym_string);
32 pr_info("get_homonym_string(), 1: %s\n", get_homonym_string());
33 }
34

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip