[tip:x86/entry 19/19] arch/x86/kernel/idt.c:177:43: error: expected ';' before ')' token

From: kbuild test robot
Date: Sun May 31 2020 - 19:37:08 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/entry
head: 5980d208e5ef28455e9e8b08f6250b443a2f0893
commit: 5980d208e5ef28455e9e8b08f6250b443a2f0893 [19/19] x86/idt: Consolidate idt functionality
config: i386-randconfig-c001-20200529 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0

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

All errors (new ones prefixed by >>, old ones prefixed by <<):

arch/x86/kernel/idt.c: In function 'idt_is_f00f_address':
>> arch/x86/kernel/idt.c:177:43: error: expected ';' before ')' token
177 | return (address - idt_descr.address) >> 3) == 6;
| ^
| ;
>> arch/x86/kernel/idt.c:177:43: error: expected statement before ')' token
>> arch/x86/kernel/idt.c:177:45: error: expected expression before '==' token
177 | return (address - idt_descr.address) >> 3) == 6;
| ^~

vim +177 arch/x86/kernel/idt.c

173
174 #ifdef CONFIG_X86_F00F_BUG
175 bool idt_is_f00f_address(unsigned long address)
176 {
> 177 return (address - idt_descr.address) >> 3) == 6;
178 }
179 #endif
180

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip