Hi Joe,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on shuah-kselftest/next]
[also build test WARNING on linux/master masahiroy-kbuild/for-next linus/master
v5.17-rc4]
[cannot apply to next-20220216]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url:
https://github.com/0day-ci/linux/commits/Joe-Lawrence/livepatch-klp-conve...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest.git next
config: x86_64-allyesconfig
(
https://download.01.org/0day-ci/archive/20220217/202202170852.PMAObvOm-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
#
https://github.com/0day-ci/linux/commit/0050faf33dc7bb450c8c62ac3dd69ee8d...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Joe-Lawrence/livepatch-klp-convert-tool/20220217-004100
git checkout 0050faf33dc7bb450c8c62ac3dd69ee8dc7d0f9b
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash lib/livepatch/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
> lib/livepatch/test_klp_convert_sections.c:20:6: warning: no
previous prototype for 'print_saved_command_line' [-Wmissing-prototypes]
20 | void print_saved_command_line(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~
> lib/livepatch/test_klp_convert_sections.c:26:6: warning: no
previous prototype for 'print_saved_command_line2' [-Wmissing-prototypes]
26 | void print_saved_command_line2(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
> lib/livepatch/test_klp_convert_sections.c:33:6: warning: no
previous prototype for 'print_saved_command_line3' [-Wmissing-prototypes]
33 | void print_saved_command_line3(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
> lib/livepatch/test_klp_convert_sections.c:47:6: warning: no
previous prototype for 'print_via_function_pointers' [-Wmissing-prototypes]
47 | void print_via_function_pointers(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/print_saved_command_line +20 lib/livepatch/test_klp_convert_sections.c
13
14 /*
15 * Scatter references to the same symbol (saved_command_line) across a
16 * few different ELF sections. At the same time, include multiple
17 * references within the same function.
18 */
19 __section(".text.print_saved_command_line")
20 void print_saved_command_line(void)
21 {
22 pr_info("saved_command_line (1): %s\n", saved_command_line);
23 }
24
25 __section(".text.print_saved_command_line2")
26 void print_saved_command_line2(void)
27 {
28 pr_info("saved_command_line (1): %s\n", saved_command_line);
29 pr_info("saved_command_line (2): %s\n", saved_command_line);
30 }
31
32 __section(".text.print_saved_command_line3")
33 void print_saved_command_line3(void)
34 {
35 pr_info("saved_command_line (1): %s\n", saved_command_line);
36 pr_info("saved_command_line (2): %s\n", saved_command_line);
37 pr_info("saved_command_line (3): %s\n", saved_command_line);
38 }
39
40 /*
41 * Create relocations in .rela.data that need conversion, sharing
42 * symbols with ordinary .text relas.
43 */
44 const char *(*p_test_klp_get_driver_name)(void) = test_klp_get_driver_name;
45 const char *(*p_get_homonym_string)(void) = get_homonym_string;
46
47 void print_via_function_pointers(void)
48 {
49 pr_info("test_klp_get_driver_name(): %s\n",
test_klp_get_driver_name());
50 pr_info("p_test_klp_get_driver_name(): %s\n",
p_test_klp_get_driver_name());
51 pr_info("get_homonym_string(): %s\n", get_homonym_string());
52 pr_info("p_get_homonym_string(): %s\n", p_get_homonym_string());
53 }
54
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org