tree:
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git perf/hybrid
head: d8d36d49b08781039deaf70e63f661cf55d28d2a
commit: bfe6f62d7a8f3927461ac9615867b3654d438a02 [3/26] x86/cpu: Add helper function to
get the type of the current hybrid CPU
config: i386-randconfig-m031-20210414 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
#
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?...
git remote add peterz-queue
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue perf/hybrid
git checkout bfe6f62d7a8f3927461ac9615867b3654d438a02
# save the attached .config to linux build tree
make W=1 W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
> arch/x86/kernel/cpu/intel.c:95:4: warning: no previous prototype
for 'get_this_hybrid_cpu_type' [-Wmissing-prototypes]
95 | u8
get_this_hybrid_cpu_type(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~
vim +/get_this_hybrid_cpu_type +95 arch/x86/kernel/cpu/intel.c
88
89 /**
90 * get_this_hybrid_cpu_type() - Get the type of this hybrid CPU
91 *
92 * Returns the CPU type [31:24] (i.e., Atom or Core) of a CPU in
93 * a hybrid processor. If the processor is not hybrid, returns 0.
94 */
95 u8 get_this_hybrid_cpu_type(void)
96 {
97 if (!cpu_feature_enabled(X86_FEATURE_HYBRID_CPU))
98 return 0;
99
100 return cpuid_eax(0x0000001a) >> X86_HYBRID_CPU_TYPE_ID_SHIFT;
101 }
102
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org