Re: [PATCH] x86/tsc: Add tsc_guess flag disabling CPUID.16h use for tsc calibration

From: kbuild test robot
Date: Thu Jan 16 2020 - 04:42:46 EST


Hi Krzysztof,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on tip/auto-latest]
[also build test ERROR on linux/master tip/x86/core linus/master v5.5-rc6 next-20200110]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url: https://github.com/0day-ci/linux/commits/Krzysztof-Piecuch/x86-tsc-Add-tsc_guess-flag-disabling-CPUID-16h-use-for-tsc-calibration/20200115-111400
base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 425cc0b850aaaa121b4ddf32c029a72e7a260dfb
config: i386-randconfig-a003-20200115 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.2-10+deb8u1) 4.9.2
reproduce:
# save the attached .config to linux build tree
make ARCH=i386

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

arch/x86/kernel/tsc.c:62:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'tsc_guess'
static bool _read_mostly tsc_guess = 1;
^
arch/x86/kernel/tsc.c: In function 'tsc_guess_setup':
>> arch/x86/kernel/tsc.c:65:25: error: 'tsc_guess' undeclared (first use in this function)
return strtobool(buf, &tsc_guess);
^
arch/x86/kernel/tsc.c:65:25: note: each undeclared identifier is reported only once for each function it appears in
arch/x86/kernel/tsc.c: In function 'native_calibrate_tsc':
arch/x86/kernel/tsc.c:664:26: error: 'tsc_guess' undeclared (first use in this function)
if (crystal_khz == 0 && tsc_guess &&
^
arch/x86/kernel/tsc.c: In function 'cpu_khz_from_cpuid':
arch/x86/kernel/tsc.c:703:43: error: 'tsc_guess' undeclared (first use in this function)
if (boot_cpu_data.cpuid_level < 0x16 || !tsc_guess)
^
arch/x86/kernel/tsc.c: In function 'tsc_guess_setup':
arch/x86/kernel/tsc.c:66:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^

vim +/tsc_guess +65 arch/x86/kernel/tsc.c

61
62 static bool _read_mostly tsc_guess = 1;
63 static int __init tsc_guess_setup(char *buf)
64 {
> 65 return strtobool(buf, &tsc_guess);
66 }
67 early_param("tsc_guess", tsc_guess_setup);
68

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx Intel Corporation

Attachment: .config.gz
Description: application/gzip