Re: [PATCH v3 41/44] x86/cpu: <asm/processor.h>: Do not include CPUID API header
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.x86-cpuid,dev.linux.lists.oe-kbuild-all,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
Hi Ahmed, kernel test robot noticed the following build errors: [auto build test ERROR on 19272b37aa4f83ca52bdf9c16d5d81bdd1354494] url: https://github.com/intel-lab-lkp/linux/commits/Ahmed-S-Darwish/x86-cpuid-Remove-transitional-asm-cpuid-h-header/20250613-075051 base: 19272b37aa4f83ca52bdf9c16d5d81bdd1354494 patch link: https://lore.kernel.org/r/20250612234010.572636-42-darwi%40linutronix.de patch subject: [PATCH v3 41/44] x86/cpu: <asm/processor.h>: Do not include CPUID API header config: i386-randconfig-004-20250613 (https://download.01.org/0day-ci/archive/20250613/[email protected]/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/20250613/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All errors (new ones prefixed by >>): drivers/cpufreq/longrun.c: In function 'longrun_get': >> drivers/cpufreq/longrun.c:143:9: error: implicit declaration of function 'cpuid' [-Werror=implicit-function-declaration] 143 | cpuid(0x80860007, &eax, &ebx, &ecx, &edx); | ^~~~~ cc1: some warnings being treated as errors vim +/cpuid +143 drivers/cpufreq/longrun.c ^1da177e4c3f41 arch/i386/kernel/cpu/cpufreq/longrun.c Linus Torvalds 2005-04-16 135 ^1da177e4c3f41 arch/i386/kernel/cpu/cpufreq/longrun.c Linus Torvalds 2005-04-16 136 static unsigned int longrun_get(unsigned int cpu) ^1da177e4c3f41 arch/i386/kernel/cpu/cpufreq/longrun.c Linus Torvalds 2005-04-16 137 { ^1da177e4c3f41 arch/i386/kernel/cpu/cpufreq/longrun.c Linus Torvalds 2005-04-16 138 u32 eax, ebx, ecx, edx; ^1da177e4c3f41 arch/i386/kernel/cpu/cpufreq/longrun.c Linus Torvalds 2005-04-16 139 ^1da177e4c3f41 arch/i386/kernel/cpu/cpufreq/longrun.c Linus Torvalds 2005-04-16 140 if (cpu) ^1da177e4c3f41 arch/i386/kernel/cpu/cpufreq/longrun.c Linus Torvalds 2005-04-16 141 return 0; ^1da177e4c3f41 arch/i386/kernel/cpu/cpufreq/longrun.c Linus Torvalds 2005-04-16 142 ^1da177e4c3f41 arch/i386/kernel/cpu/cpufreq/longrun.c Linus Torvalds 2005-04-16 @143 cpuid(0x80860007, &eax, &ebx, &ecx, &edx); 2d06d8c49afdcc arch/x86/kernel/cpu/cpufreq/longrun.c Dominik Brodowski 2011-03-27 144 pr_debug("cpuid eax is %u\n", eax); ^1da177e4c3f41 arch/i386/kernel/cpu/cpufreq/longrun.c Linus Torvalds 2005-04-16 145 48ee923a666d4c arch/x86/kernel/cpu/cpufreq/longrun.c Dave Jones 2009-01-17 146 return eax * 1000; ^1da177e4c3f41 arch/i386/kernel/cpu/cpufreq/longrun.c Linus Torvalds 2005-04-16 147 } ^1da177e4c3f41 arch/i386/kernel/cpu/cpufreq/longrun.c Linus Torvalds 2005-04-16 148 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki