Re: [PATCH] x86/split_lock: add split lock counter

From: kernel test robot
Date: Fri Dec 15 2023 - 22:30:19 EST


Hi Maksim,

kernel test robot noticed the following build warnings:

[auto build test WARNING on tip/x86/core]
[also build test WARNING on tip/master tip/sched/core linus/master tip/auto-latest v6.7-rc5 next-20231215]
[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/Maksim-Davydov/x86-split_lock-add-split-lock-counter/20231215-220639
base: tip/x86/core
patch link: https://lore.kernel.org/r/20231215140113.57173-1-davydov-max%40yandex-team.ru
patch subject: [PATCH] x86/split_lock: add split lock counter
config: um-defconfig (https://download.01.org/0day-ci/archive/20231216/202312161122.4Y1qkw0S-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231216/202312161122.4Y1qkw0S-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/202312161122.4Y1qkw0S-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

In file included from fs/proc/base.c:101:
>> arch/x86/include/asm/cpu.h:36:31: warning: 'struct cpuinfo_x86' declared inside parameter list will not be visible outside of this definition or declaration
36 | int mwait_usable(const struct cpuinfo_x86 *);
| ^~~~~~~~~~~
arch/x86/include/asm/cpu.h:42:37: warning: 'struct cpuinfo_x86' declared inside parameter list will not be visible outside of this definition or declaration
42 | extern void __init sld_setup(struct cpuinfo_x86 *c);
| ^~~~~~~~~~~
arch/x86/include/asm/cpu.h:85:32: warning: 'struct cpuinfo_x86' declared inside parameter list will not be visible outside of this definition or declaration
85 | void init_ia32_feat_ctl(struct cpuinfo_x86 *c);
| ^~~~~~~~~~~


vim +36 arch/x86/include/asm/cpu.h

bb6e89df9028b2 Thomas Gleixner 2022-04-15 35
1c9d16e3591109 Borislav Petkov 2011-02-11 @36 int mwait_usable(const struct cpuinfo_x86 *);
6d652ea1d05639 Jaswinder Singh Rajput 2009-01-07 37

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