Re: [tip: x86/cpu] x86/cpu/intel: Fix rename fallout

From: kbuild test robot
Date: Mon Aug 26 2019 - 22:01:52 EST


Hi tip-bot2,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on linus/master]
[cannot apply to v5.3-rc6 next-20190826]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/tip-bot2-for-Ingo-Molnar/x86-cpu-intel-Fix-rename-fallout/20190827-083739
config: x86_64-lkp (attached as .config)
compiler: gcc-7 (Debian 7.4.0-10) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64

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

All errors (new ones prefixed by >>):

In file included from drivers/idle/intel_idle.c:53:0:
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_HASWELL' undeclared here (not in a function); did you mean 'INTEL_FAM6_HASWELL_X'?
INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
^
arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 'INTEL_CPU_FAM_ANY'
.model = _model, \
^~~~~~
drivers/idle/intel_idle.c:1075:2: note: in expansion of macro 'INTEL_CPU_FAM6'
INTEL_CPU_FAM6(HASWELL, idle_cpu_hsw),
^~~~~~~~~~~~~~
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_HASWELL_L' undeclared here (not in a function); did you mean 'INTEL_FAM6_HASWELL_X'?
INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
^
arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 'INTEL_CPU_FAM_ANY'
.model = _model, \
^~~~~~
drivers/idle/intel_idle.c:1077:2: note: in expansion of macro 'INTEL_CPU_FAM6'
INTEL_CPU_FAM6(HASWELL_L, idle_cpu_hsw),
^~~~~~~~~~~~~~
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_HASWELL_G' undeclared here (not in a function); did you mean 'INTEL_FAM6_HASWELL_L'?
INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
^
arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 'INTEL_CPU_FAM_ANY'
.model = _model, \
^~~~~~
drivers/idle/intel_idle.c:1078:2: note: in expansion of macro 'INTEL_CPU_FAM6'
INTEL_CPU_FAM6(HASWELL_G, idle_cpu_hsw),
^~~~~~~~~~~~~~
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_ATOM_SILVERMONT_D' undeclared here (not in a function); did you mean 'INTEL_FAM6_ATOM_SILVERMONT_X'?
INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
^
arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 'INTEL_CPU_FAM_ANY'
.model = _model, \
^~~~~~
drivers/idle/intel_idle.c:1079:2: note: in expansion of macro 'INTEL_CPU_FAM6'
INTEL_CPU_FAM6(ATOM_SILVERMONT_D, idle_cpu_avn),
^~~~~~~~~~~~~~
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_BROADWELL' undeclared here (not in a function); did you mean 'INTEL_FAM6_BROADWELL_X'?
INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
^
arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 'INTEL_CPU_FAM_ANY'
.model = _model, \
^~~~~~
drivers/idle/intel_idle.c:1080:2: note: in expansion of macro 'INTEL_CPU_FAM6'
INTEL_CPU_FAM6(BROADWELL, idle_cpu_bdw),
^~~~~~~~~~~~~~
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_BROADWELL_G' undeclared here (not in a function); did you mean 'INTEL_FAM6_BROADWELL_X'?
INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
^
arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 'INTEL_CPU_FAM_ANY'
.model = _model, \
^~~~~~
drivers/idle/intel_idle.c:1081:2: note: in expansion of macro 'INTEL_CPU_FAM6'
INTEL_CPU_FAM6(BROADWELL_G, idle_cpu_bdw),
^~~~~~~~~~~~~~
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_BROADWELL_D' undeclared here (not in a function); did you mean 'INTEL_FAM6_BROADWELL_G'?
INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
^
arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 'INTEL_CPU_FAM_ANY'
.model = _model, \
^~~~~~
drivers/idle/intel_idle.c:1083:2: note: in expansion of macro 'INTEL_CPU_FAM6'
INTEL_CPU_FAM6(BROADWELL_D, idle_cpu_bdw),
^~~~~~~~~~~~~~
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_SKYLAKE_L' undeclared here (not in a function); did you mean 'INTEL_FAM6_SKYLAKE_X'?
INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
^
arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 'INTEL_CPU_FAM_ANY'
.model = _model, \
^~~~~~
drivers/idle/intel_idle.c:1084:2: note: in expansion of macro 'INTEL_CPU_FAM6'
INTEL_CPU_FAM6(SKYLAKE_L, idle_cpu_skl),
^~~~~~~~~~~~~~
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_SKYLAKE' undeclared here (not in a function); did you mean 'INTEL_FAM6_SKYLAKE_L'?
INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
^
arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 'INTEL_CPU_FAM_ANY'
.model = _model, \
^~~~~~
drivers/idle/intel_idle.c:1085:2: note: in expansion of macro 'INTEL_CPU_FAM6'
INTEL_CPU_FAM6(SKYLAKE, idle_cpu_skl),
^~~~~~~~~~~~~~
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_KABYLAKE_L' undeclared here (not in a function); did you mean 'INTEL_FAM6_SKYLAKE_L'?
INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
^
arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 'INTEL_CPU_FAM_ANY'
.model = _model, \
^~~~~~
drivers/idle/intel_idle.c:1086:2: note: in expansion of macro 'INTEL_CPU_FAM6'
INTEL_CPU_FAM6(KABYLAKE_L, idle_cpu_skl),
^~~~~~~~~~~~~~
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_KABYLAKE' undeclared here (not in a function); did you mean 'INTEL_FAM6_KABYLAKE_L'?
INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
^
arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 'INTEL_CPU_FAM_ANY'
.model = _model, \
^~~~~~
drivers/idle/intel_idle.c:1087:2: note: in expansion of macro 'INTEL_CPU_FAM6'
INTEL_CPU_FAM6(KABYLAKE, idle_cpu_skl),
^~~~~~~~~~~~~~
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_ATOM_GOLDMONT_D' undeclared here (not in a function); did you mean 'INTEL_FAM6_ATOM_GOLDMONT_X'?
INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
^
arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 'INTEL_CPU_FAM_ANY'
.model = _model, \
^~~~~~
drivers/idle/intel_idle.c:1093:2: note: in expansion of macro 'INTEL_CPU_FAM6'
INTEL_CPU_FAM6(ATOM_GOLDMONT_D, idle_cpu_dnv),
^~~~~~~~~~~~~~
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_ATOM_TREMONT_D' undeclared here (not in a function); did you mean 'INTEL_FAM6_ATOM_TREMONT_X'?
INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
^
arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 'INTEL_CPU_FAM_ANY'
.model = _model, \
^~~~~~
drivers/idle/intel_idle.c:1094:2: note: in expansion of macro 'INTEL_CPU_FAM6'
INTEL_CPU_FAM6(ATOM_TREMONT_D, idle_cpu_dnv),
^~~~~~~~~~~~~~
--
In file included from drivers//idle/intel_idle.c:53:0:
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_HASWELL' undeclared here (not in a function); did you mean 'INTEL_FAM6_HASWELL_X'?
INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
^
arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 'INTEL_CPU_FAM_ANY'
.model = _model, \
^~~~~~
drivers//idle/intel_idle.c:1075:2: note: in expansion of macro 'INTEL_CPU_FAM6'
INTEL_CPU_FAM6(HASWELL, idle_cpu_hsw),
^~~~~~~~~~~~~~
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_HASWELL_L' undeclared here (not in a function); did you mean 'INTEL_FAM6_HASWELL_X'?
INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
^
arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 'INTEL_CPU_FAM_ANY'
.model = _model, \
^~~~~~
drivers//idle/intel_idle.c:1077:2: note: in expansion of macro 'INTEL_CPU_FAM6'
INTEL_CPU_FAM6(HASWELL_L, idle_cpu_hsw),
^~~~~~~~~~~~~~
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_HASWELL_G' undeclared here (not in a function); did you mean 'INTEL_FAM6_HASWELL_L'?
INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
^
arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 'INTEL_CPU_FAM_ANY'
.model = _model, \
^~~~~~
drivers//idle/intel_idle.c:1078:2: note: in expansion of macro 'INTEL_CPU_FAM6'
INTEL_CPU_FAM6(HASWELL_G, idle_cpu_hsw),
^~~~~~~~~~~~~~
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_ATOM_SILVERMONT_D' undeclared here (not in a function); did you mean 'INTEL_FAM6_ATOM_SILVERMONT_X'?
INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
^
arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 'INTEL_CPU_FAM_ANY'
.model = _model, \
^~~~~~
drivers//idle/intel_idle.c:1079:2: note: in expansion of macro 'INTEL_CPU_FAM6'
INTEL_CPU_FAM6(ATOM_SILVERMONT_D, idle_cpu_avn),
^~~~~~~~~~~~~~
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_BROADWELL' undeclared here (not in a function); did you mean 'INTEL_FAM6_BROADWELL_X'?
INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
^
arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 'INTEL_CPU_FAM_ANY'
.model = _model, \
^~~~~~
drivers//idle/intel_idle.c:1080:2: note: in expansion of macro 'INTEL_CPU_FAM6'
INTEL_CPU_FAM6(BROADWELL, idle_cpu_bdw),
^~~~~~~~~~~~~~
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_BROADWELL_G' undeclared here (not in a function); did you mean 'INTEL_FAM6_BROADWELL_X'?
INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
^
arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 'INTEL_CPU_FAM_ANY'
.model = _model, \
^~~~~~
drivers//idle/intel_idle.c:1081:2: note: in expansion of macro 'INTEL_CPU_FAM6'
INTEL_CPU_FAM6(BROADWELL_G, idle_cpu_bdw),
^~~~~~~~~~~~~~
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_BROADWELL_D' undeclared here (not in a function); did you mean 'INTEL_FAM6_BROADWELL_G'?
INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
^
arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 'INTEL_CPU_FAM_ANY'
.model = _model, \
^~~~~~
drivers//idle/intel_idle.c:1083:2: note: in expansion of macro 'INTEL_CPU_FAM6'
INTEL_CPU_FAM6(BROADWELL_D, idle_cpu_bdw),
^~~~~~~~~~~~~~
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_SKYLAKE_L' undeclared here (not in a function); did you mean 'INTEL_FAM6_SKYLAKE_X'?
INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
^
arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 'INTEL_CPU_FAM_ANY'
.model = _model, \
^~~~~~
drivers//idle/intel_idle.c:1084:2: note: in expansion of macro 'INTEL_CPU_FAM6'
INTEL_CPU_FAM6(SKYLAKE_L, idle_cpu_skl),
^~~~~~~~~~~~~~
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_SKYLAKE' undeclared here (not in a function); did you mean 'INTEL_FAM6_SKYLAKE_L'?
INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
^
arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 'INTEL_CPU_FAM_ANY'
.model = _model, \
^~~~~~
drivers//idle/intel_idle.c:1085:2: note: in expansion of macro 'INTEL_CPU_FAM6'
INTEL_CPU_FAM6(SKYLAKE, idle_cpu_skl),
^~~~~~~~~~~~~~
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_KABYLAKE_L' undeclared here (not in a function); did you mean 'INTEL_FAM6_SKYLAKE_L'?
INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
^
arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 'INTEL_CPU_FAM_ANY'
.model = _model, \
^~~~~~
drivers//idle/intel_idle.c:1086:2: note: in expansion of macro 'INTEL_CPU_FAM6'
INTEL_CPU_FAM6(KABYLAKE_L, idle_cpu_skl),
^~~~~~~~~~~~~~
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_KABYLAKE' undeclared here (not in a function); did you mean 'INTEL_FAM6_KABYLAKE_L'?
INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
^
arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 'INTEL_CPU_FAM_ANY'
.model = _model, \
^~~~~~
drivers//idle/intel_idle.c:1087:2: note: in expansion of macro 'INTEL_CPU_FAM6'
INTEL_CPU_FAM6(KABYLAKE, idle_cpu_skl),
^~~~~~~~~~~~~~
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_ATOM_GOLDMONT_D' undeclared here (not in a function); did you mean 'INTEL_FAM6_ATOM_GOLDMONT_X'?
INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
^
arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 'INTEL_CPU_FAM_ANY'
.model = _model, \
^~~~~~
drivers//idle/intel_idle.c:1093:2: note: in expansion of macro 'INTEL_CPU_FAM6'
INTEL_CPU_FAM6(ATOM_GOLDMONT_D, idle_cpu_dnv),
^~~~~~~~~~~~~~
>> arch/x86/include/asm/intel-family.h:114:23: error: 'INTEL_FAM6_ATOM_TREMONT_D' undeclared here (not in a function); did you mean 'INTEL_FAM6_ATOM_TREMONT_X'?
INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
^
arch/x86/include/asm/intel-family.h:108:12: note: in definition of macro 'INTEL_CPU_FAM_ANY'
.model = _model, \
^~~~~~
drivers//idle/intel_idle.c:1094:2: note: in expansion of macro 'INTEL_CPU_FAM6'
INTEL_CPU_FAM6(ATOM_TREMONT_D, idle_cpu_dnv),
^~~~~~~~~~~~~~

vim +114 arch/x86/include/asm/intel-family.h

e2ce67b2b34b6e Andy Shevchenko 2018-06-29 112
e2ce67b2b34b6e Andy Shevchenko 2018-06-29 113 #define INTEL_CPU_FAM6(_model, _driver_data) \
e2ce67b2b34b6e Andy Shevchenko 2018-06-29 @114 INTEL_CPU_FAM_ANY(6, INTEL_FAM6_##_model, _driver_data)
e2ce67b2b34b6e Andy Shevchenko 2018-06-29 115

:::::: The code at line 114 was first introduced by commit
:::::: e2ce67b2b34b6e9d77da2f375dba5b525508f7df x86/cpu: Introduce INTEL_CPU_FAM*() helper macros

:::::: TO: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
:::::: CC: Thomas Gleixner <tglx@xxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip