* Re: [PATCH] LoongArch: Show CPU vulnerabilites correctly
[not found] <20260409122348.2438400-1-chenhuacai@loongson.cn>
@ 2026-04-10 22:25 ` kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-04-10 22:25 UTC (permalink / raw)
To: Huacai Chen, Huacai Chen
Cc: llvm, oe-kbuild-all, loongarch, Xuefeng Li, Guo Ren, Xuerui Wang,
Jiaxun Yang, linux-kernel, stable
Hi Huacai,
kernel test robot noticed the following build warnings:
[auto build test WARNING on linus/master]
[also build test WARNING on v7.0-rc7 next-20260410]
[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/Huacai-Chen/LoongArch-Show-CPU-vulnerabilites-correctly/20260411-011556
base: linus/master
patch link: https://lore.kernel.org/r/20260409122348.2438400-1-chenhuacai%40loongson.cn
patch subject: [PATCH] LoongArch: Show CPU vulnerabilites correctly
config: loongarch-allnoconfig (https://download.01.org/0day-ci/archive/20260411/202604110604.ckBnAnTg-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project ae825cb8cea7f3ac8e5e4096f22713845cf5e501)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260411/202604110604.ckBnAnTg-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202604110604.ckBnAnTg-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> arch/loongarch/kernel/cpu-probe.c:407:15: warning: declaration of 'struct device_attribute' will not be visible outside of this function [-Wvisibility]
407 | struct device_attribute *attr, char *buf)
| ^
>> arch/loongarch/kernel/cpu-probe.c:406:9: warning: no previous prototype for function 'cpu_show_spectre_v1' [-Wmissing-prototypes]
406 | ssize_t cpu_show_spectre_v1(struct device *dev,
| ^
arch/loongarch/kernel/cpu-probe.c:406:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
406 | ssize_t cpu_show_spectre_v1(struct device *dev,
| ^
| static
2 warnings generated.
vim +407 arch/loongarch/kernel/cpu-probe.c
405
> 406 ssize_t cpu_show_spectre_v1(struct device *dev,
> 407 struct device_attribute *attr, char *buf)
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread