Re: [PATCH v3 02/10] x86/cpu/topology: Add CPU type to struct cpuinfo_topology
From: kernel test robot
Date: Fri Aug 16 2024 - 16:00:28 EST
Hi Pawan,
kernel test robot noticed the following build warnings:
[auto build test WARNING on 7c626ce4bae1ac14f60076d00eafe71af30450ba]
url: https://github.com/intel-lab-lkp/linux/commits/Pawan-Gupta/x86-cpu-Prepend-0x-to-the-hex-values-in-cpu_debug_show/20240816-122157
base: 7c626ce4bae1ac14f60076d00eafe71af30450ba
patch link: https://lore.kernel.org/r/20240815-add-cpu-type-v3-2-234162352057%40linux.intel.com
patch subject: [PATCH v3 02/10] x86/cpu/topology: Add CPU type to struct cpuinfo_topology
config: x86_64-randconfig-013-20240816 (https://download.01.org/0day-ci/archive/20240817/202408170359.M7BAB0O0-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/20240817/202408170359.M7BAB0O0-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/202408170359.M7BAB0O0-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
In file included from arch/x86/power/cpu.c:25:
>> arch/x86/include/asm/cpu.h:55:12: warning: 'intel_hw_native_model_id' defined but not used [-Wunused-function]
55 | static u32 intel_hw_native_model_id(struct cpuinfo_x86 *c)
| ^~~~~~~~~~~~~~~~~~~~~~~~
vim +/intel_hw_native_model_id +55 arch/x86/include/asm/cpu.h
54
> 55 static u32 intel_hw_native_model_id(struct cpuinfo_x86 *c)
56 {
57 return 0;
58 }
59 #endif
60 #ifdef CONFIG_IA32_FEAT_CTL
61 void init_ia32_feat_ctl(struct cpuinfo_x86 *c);
62 #else
63 static inline void init_ia32_feat_ctl(struct cpuinfo_x86 *c) {}
64 #endif
65
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki