Re: [PATCH v2 2/2] riscv: Add tests for riscv module loading

From: kernel test robot
Date: Tue Oct 10 2023 - 11:05:37 EST


Hi Charlie,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 82714078aee4ccbd6ee7579d5a21f8a72155d0fb]

url: https://github.com/intel-lab-lkp/linux/commits/Charlie-Jenkins/riscv-Add-remaining-module-relocations/20231007-084330
base: 82714078aee4ccbd6ee7579d5a21f8a72155d0fb
patch link: https://lore.kernel.org/r/20231006-module_relocations-v2-2-47566453fedc%40rivosinc.com
patch subject: [PATCH v2 2/2] riscv: Add tests for riscv module loading
config: riscv-randconfig-002-20231010 (https://download.01.org/0day-ci/archive/20231010/202310102243.0Ab0xH1g-lkp@xxxxxxxxx/config)
compiler: riscv64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231010/202310102243.0Ab0xH1g-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202310102243.0Ab0xH1g-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> arch/riscv/kernel/tests/module_test/test_module_linking_main.c:26:6: warning: no previous prototype for 'run_test_set' [-Wmissing-prototypes]
26 | void run_test_set(struct kunit *test)
| ^~~~~~~~~~~~
>> arch/riscv/kernel/tests/module_test/test_module_linking_main.c:39:6: warning: no previous prototype for 'run_test_sub' [-Wmissing-prototypes]
39 | void run_test_sub(struct kunit *test)
| ^~~~~~~~~~~~
>> arch/riscv/kernel/tests/module_test/test_module_linking_main.c:54:6: warning: no previous prototype for 'run_test_uleb' [-Wmissing-prototypes]
54 | void run_test_uleb(struct kunit *test)
| ^~~~~~~~~~~~~


vim +/run_test_set +26 arch/riscv/kernel/tests/module_test/test_module_linking_main.c

25
> 26 void run_test_set(struct kunit *test)
27 {
28 int val32 = test_set32();
29 int val16 = test_set16();
30 int val8 = test_set8();
31 int val6 = test_set6();
32
33 CHECK_EQ(val32, 0);
34 CHECK_EQ(val16, 0);
35 CHECK_EQ(val8, 0);
36 CHECK_EQ(val6, 0);
37 }
38
> 39 void run_test_sub(struct kunit *test)
40 {
41 int val64 = test_sub64();
42 int val32 = test_sub32();
43 int val16 = test_sub16();
44 int val8 = test_sub8();
45 int val6 = test_sub6();
46
47 CHECK_EQ(val64, 0);
48 CHECK_EQ(val32, 0);
49 CHECK_EQ(val16, 0);
50 CHECK_EQ(val8, 0);
51 CHECK_EQ(val6, 0);
52 }
53
> 54 void run_test_uleb(struct kunit *test)
55 {
56 int valuleb = test_uleb();
57
58 CHECK_EQ(valuleb, 0);
59 }
60

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki