From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============7516744422141737295==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [RFC PATCH v6 09/12] livepatch/selftests: test multiple sections Date: Thu, 17 Feb 2022 08:38:21 +0800 Message-ID: <202202170852.PMAObvOm-lkp@intel.com> In-Reply-To: <20220216163940.228309-10-joe.lawrence@redhat.com> List-Id: --===============7516744422141737295== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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/ma= ster 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= -convert-tool/20220217-004100 base: https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselfte= st.git next config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/202202= 17/202202170852.PMAObvOm-lkp(a)intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=3D1 build): # https://github.com/0day-ci/linux/commit/0050faf33dc7bb450c8c62ac3= dd69ee8dc7d0f9b 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=3D1 O=3Dbuild_dir ARCH=3Dx86_64 SHELL=3D/bin/bash lib/livepa= tch/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> lib/livepatch/test_klp_convert_sections.c:20:6: warning: no previous pro= totype 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 pro= totype 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 pro= totype 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 pro= totype 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) =3D test_klp_get_dri= ver_name; 45 const char *(*p_get_homonym_string)(void) =3D 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_nam= e()); 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(a)lists.01.org --===============7516744422141737295==--