[tip:ras/core 6/6] arch/x86/include/asm/mce.h:259:89: error: expected ';' before '}' token

From: kbuild test robot
Date: Mon Nov 21 2016 - 04:05:56 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git ras/core
head: c698decd333b67b3814682cf65e9069e6db2ecd1
commit: c698decd333b67b3814682cf65e9069e6db2ecd1 [6/6] x86/mce/AMD: Add system physical address translation for AMD Fam17h
config: i386-tinyconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout c698decd333b67b3814682cf65e9069e6db2ecd1
# save the attached .config to linux build tree
make ARCH=i386

All errors (new ones prefixed by >>):

In file included from arch/x86/kernel/cpu/common.c:42:0:
arch/x86/include/asm/mce.h: In function 'umc_normaddr_to_sysaddr':
>> arch/x86/include/asm/mce.h:259:89: error: expected ';' before '}' token
umc_normaddr_to_sysaddr(u64 norm_addr, u16 nid, u8 umc, u64 *sys_addr) { return -EINVAL };
^

vim +259 arch/x86/include/asm/mce.h

253 #ifdef CONFIG_X86_MCE_AMD
254 void mce_amd_feature_init(struct cpuinfo_x86 *c);
255 int umc_normaddr_to_sysaddr(u64 norm_addr, u16 nid, u8 umc, u64 *sys_addr);
256 #else
257 static inline void mce_amd_feature_init(struct cpuinfo_x86 *c) { }
258 static inline int
> 259 umc_normaddr_to_sysaddr(u64 norm_addr, u16 nid, u8 umc, u64 *sys_addr) { return -EINVAL };
260 #endif
261
262 int mce_available(struct cpuinfo_x86 *c);

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

Attachment: .config.gz
Description: application/gzip