:::::: :::::: Manual check reason: "low confidence static check warning: arch/loongarch/kernel/module-sections.c:92:17: sparse: sparse: statement expected after case label" ::::::
CC: [email protected] BCC: [email protected] In-Reply-To: <[email protected]> References: <[email protected]> TO: Xi Ruoyao <[email protected]> TO: [email protected] CC: [email protected] CC: WANG Xuerui <[email protected]> CC: Huacai Chen <[email protected]> Hi Xi, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on kees/for-next/execve] [also build test WARNING on linus/master v5.19-rc8 next-20220727] [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#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Xi-Ruoyao/LoongArch-Support-new-relocation-types/20220728-004805 base: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git for-next/execve :::::: branch date: 13 hours ago :::::: commit date: 13 hours ago config: loongarch-randconfig-s051-20220727 (https://download.01.org/0day-ci/archive/20220728/[email protected]/config) compiler: loongarch64-linux-gcc (GCC) 12.1.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://github.com/intel-lab-lkp/linux/commit/befc276145cba2e7aaf88a302986cb3882f75aec git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Xi-Ruoyao/LoongArch-Support-new-relocation-types/20220728-004805 git checkout befc276145cba2e7aaf88a302986cb3882f75aec # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=loongarch SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <[email protected]> sparse warnings: (new ones prefixed by >>) >> arch/loongarch/kernel/module-sections.c:92:17: sparse: sparse: statement >> expected after case label vim +92 arch/loongarch/kernel/module-sections.c fcdfe9d22bed084 Huacai Chen 2022-05-31 71 8e6c412c34a1a98 Xi Ruoyao 2022-07-28 72 static void count_max_entries(Elf_Rela *relas, int num, 8e6c412c34a1a98 Xi Ruoyao 2022-07-28 73 unsigned int *plts, unsigned int *gots) fcdfe9d22bed084 Huacai Chen 2022-05-31 74 { fcdfe9d22bed084 Huacai Chen 2022-05-31 75 unsigned int i, type; fcdfe9d22bed084 Huacai Chen 2022-05-31 76 fcdfe9d22bed084 Huacai Chen 2022-05-31 77 for (i = 0; i < num; i++) { fcdfe9d22bed084 Huacai Chen 2022-05-31 78 type = ELF_R_TYPE(relas[i].r_info); befc276145cba2e Xi Ruoyao 2022-07-28 79 switch (type) { befc276145cba2e Xi Ruoyao 2022-07-28 80 case R_LARCH_SOP_PUSH_PLT_PCREL: befc276145cba2e Xi Ruoyao 2022-07-28 81 case R_LARCH_B26: fcdfe9d22bed084 Huacai Chen 2022-05-31 82 if (!duplicate_rela(relas, i)) fcdfe9d22bed084 Huacai Chen 2022-05-31 83 (*plts)++; befc276145cba2e Xi Ruoyao 2022-07-28 84 break; befc276145cba2e Xi Ruoyao 2022-07-28 85 case R_LARCH_SOP_PUSH_GPREL: befc276145cba2e Xi Ruoyao 2022-07-28 86 case R_LARCH_GOT_PC_HI20: 8e6c412c34a1a98 Xi Ruoyao 2022-07-28 87 if (!duplicate_rela(relas, i)) 8e6c412c34a1a98 Xi Ruoyao 2022-07-28 88 (*gots)++; befc276145cba2e Xi Ruoyao 2022-07-28 89 break; befc276145cba2e Xi Ruoyao 2022-07-28 90 default: befc276145cba2e Xi Ruoyao 2022-07-28 91 /* Do nothing. */ befc276145cba2e Xi Ruoyao 2022-07-28 @92 } fcdfe9d22bed084 Huacai Chen 2022-05-31 93 } fcdfe9d22bed084 Huacai Chen 2022-05-31 94 } fcdfe9d22bed084 Huacai Chen 2022-05-31 95 -- 0-DAY CI Kernel Test Service https://01.org/lkp _______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
