Skip to contentSkip to conversation

arch/x86/kernel/cpu/intel_epb.c:208:2: error: use of undeclared identifier 'INTEL_FAM6_RAPTORLAKE_P'

DISCUSSION Compostella 1 participant 2 messages Jul 5, 2022 – Jul 6, 2022 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Compostella

#1 lore raw

I submitted a patch earlier today to linux-power-mgmt(a)eclists.intel.com and linux-drivers-review(a)eclists.intel.com (cf. x86: intel_epb: Set RaptorLake appropriate EPB.

I received the following robot build error. The information shared below does not provide the version of the kernel it applied the patch to and that it tried to build. My understanding is that the family declaration my patch rely on has been introduced in 5.18. Which version is the robot using ? I there way to make it use a 5.18 ?

Regards,
Jeremy

Quoted 33 lines · kernel test robot
tree:   internal-linux-review/Compostella-Jeremy/x86-intel_epb-Set-RaptorLake-desired-normal-EPB/20220706-012133
head:   be007fa090c5cd552460eb38cca02eb3918afd1c
commit: be007fa090c5cd552460eb38cca02eb3918afd1c x86: intel_epb: Set RaptorLake desired normal EPB
date:   2 hours ago
config: i386-randconfig-a014-20220704 (attached as .config)
compiler: clang version 15.0.0 (<https://github.com/llvm/llvm-project> 142aca7741d5b06207e87bf4880fbe308c8d6823)

reproduce (this is a W=1 build):
wget <https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross> -O ~/bin/make.cross chmod +x ~/bin/make.cross
git checkout be007fa090c5cd552460eb38cca02eb3918afd1c
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable

All errors (new ones prefixed by >>):

Quoted 1 line
Quoted 1 line

arch/x86/kernel/cpu/intel_epb.c:208:2: error: use of undeclared identifier 'INTEL_FAM6_RAPTORLAKE_P'

           X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_P, 7),
           ^
   arch/x86/include/asm/cpu_device_id.h:161:39: note: expanded from macro 'X86_MATCH_INTEL_FAM6_MODEL'
           X86_MATCH_VENDOR_FAM_MODEL(INTEL, 6, INTEL_FAM6_##model, data)
                                                ^

<scratch space>:13:1: note: expanded from here
INTEL_FAM6_RAPTORLAKE_P
^
1 error generated.

vim +/INTEL_FAM6_RAPTORLAKE_P +208 arch/x86/kernel/cpu/intel_epb.c

Quoted 7 lines
   205	
   206	static const struct x86_cpu_id intel_epb_normal[] = {
   207		X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_L, 7),
Quoted 1 line

208 X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_P, 7),

209 {}

   210	};
   211	

--
Jeremy
One Emacs to rule them all

#2 lore raw

Hi Jeremy,

The bot applied the patch to tip/x86/core according to the information in MAINTAINERS files, but the tip/x86/core branch seems old.

21578 X86 ARCHITECTURE (32-BIT AND 64-BIT)
21579 M:› Thomas Gleixner <[email protected]>
21580 M:› Ingo Molnar <[email protected]>
21581 M:› Borislav Petkov <[email protected]>
21582 M:› Dave Hansen <[email protected]> 21583 M:› x86(a)kernel.org
21584 R:› "H. Peter Anvin" <[email protected]>
21585 L:› linux-kernel(a)vger.kernel.org
21586 S:› Maintained
21587 T:› git
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/core
21588 F:› Documentation/devicetree/bindings/x86/ 21589 F:› Documentation/x86/
21590 F:› arch/x86/

we suggest to use '--base' to provide the base info as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information

Best Regards,
Rong Chen

Quoted 65 lines · Jeremy

I submitted a patch earlier today to linux-power-mgmt(a)eclists.intel.com and linux-drivers-review(a)eclists.intel.com (cf. x86: intel_epb: Set RaptorLake appropriate EPB.

I received the following robot build error. The information shared below does not provide the version of the kernel it applied the patch to and that it tried to build. My understanding is that the family declaration my patch rely on has been introduced in 5.18. Which version is the robot using ? I there way to make it use a 5.18 ?

Regards,
Jeremy

Quoted 33 lines · kernel test robot
tree:   internal-linux-review/Compostella-Jeremy/x86-intel_epb-Set-RaptorLake-desired-normal-EPB/20220706-012133
head:   be007fa090c5cd552460eb38cca02eb3918afd1c
commit: be007fa090c5cd552460eb38cca02eb3918afd1c x86: intel_epb: Set RaptorLake desired normal EPB
date:   2 hours ago
config: i386-randconfig-a014-20220704 (attached as .config)
compiler: clang version 15.0.0 (<https://github.com/llvm/llvm-project> 142aca7741d5b06207e87bf4880fbe308c8d6823)

reproduce (this is a W=1 build):
wget <https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross> -O ~/bin/make.cross chmod +x ~/bin/make.cross
git checkout be007fa090c5cd552460eb38cca02eb3918afd1c
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable

All errors (new ones prefixed by >>):

Quoted 1 line
Quoted 1 line

arch/x86/kernel/cpu/intel_epb.c:208:2: error: use of undeclared identifier 'INTEL_FAM6_RAPTORLAKE_P'

            X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_P, 7),
            ^
    arch/x86/include/asm/cpu_device_id.h:161:39: note: expanded from macro 'X86_MATCH_INTEL_FAM6_MODEL'
            X86_MATCH_VENDOR_FAM_MODEL(INTEL, 6, INTEL_FAM6_##model, data)
                                                 ^
    <scratch space>:13:1: note: expanded from here
    INTEL_FAM6_RAPTORLAKE_P
    ^
    1 error generated.

vim +/INTEL_FAM6_RAPTORLAKE_P +208 arch/x86/kernel/cpu/intel_epb.c

Quoted 7 lines
    205	
    206	static const struct x86_cpu_id intel_epb_normal[] = {
    207		X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_L, 7),
Quoted 1 line

208 X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_P, 7),

    209		{}
    210	};
    211	

--
Jeremy
One Emacs to rule them all

_______________________________________________
LKP mailing list -- lkp(a)lists.01.org
To unsubscribe send an email to lkp-leave(a)lists.01.org