[tip:WIP.x86/apic 37/46] arch/x86/kernel/traps.c:892:4: note: in expansion of macro 'if'

From: kbuild test robot
Date: Sat Aug 26 2017 - 10:49:37 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.x86/apic
head: 6acaab8814cf6c7f77c1ee2e1ed266509573d5b4
commit: 8f1d566bc1f0f6e055a46728bfd906dd74a3f74c [37/46] x86/idt: Switch early trap init to IDT tables
config: x86_64-randconfig-x001-201734 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 8f1d566bc1f0f6e055a46728bfd906dd74a3f74c
# save the attached .config to linux build tree
make ARCH=x86_64

All error/warnings (new ones prefixed by >>):

arch/x86/kernel/traps.c: In function 'do_device_not_available':
arch/x86/kernel/traps.c:892:1: error: 'xo' undeclared (first use in this function)
xo if (WARN(cr0 & X86_CR0_TS, "CR0.TS was set")) {
^~
arch/x86/kernel/traps.c:892:1: note: each undeclared identifier is reported only once for each function it appears in
In file included from arch/x86/include/asm/current.h:4:0,
from include/linux/sched.h:11,
from include/linux/context_tracking.h:4,
from arch/x86/kernel/traps.c:15:
>> include/linux/compiler.h:156:2: error: expected ';' before 'if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^
include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~~~~~~~
>> arch/x86/kernel/traps.c:892:4: note: in expansion of macro 'if'
xo if (WARN(cr0 & X86_CR0_TS, "CR0.TS was set")) {
^~
arch/x86/kernel/traps.c: At top level:
arch/x86/kernel/traps.c:926:1: warning: data definition has no type or storage class
xovoid __init trap_init(void)
^~~~~~
arch/x86/kernel/traps.c:926:1: error: type defaults to 'int' in declaration of 'xovoid' [-Werror=implicit-int]
arch/x86/kernel/traps.c:926:1: warning: '__cold__' attribute ignored [-Wattributes]
arch/x86/kernel/traps.c:926:15: error: expected ',' or ';' before 'trap_init'
xovoid __init trap_init(void)
^~~~~~~~~
In file included from arch/x86/include/asm/current.h:4:0,
from include/linux/sched.h:11,
from include/linux/context_tracking.h:4,
from arch/x86/kernel/traps.c:15:
include/linux/compiler.h:162:4: warning: '______f' is static but declared in inline function 'strcpy' which is not static
______f = { \
^
include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~~~~~~~
include/linux/string.h:390:2: note: in expansion of macro 'if'
if (p_size == (size_t)-1 && q_size == (size_t)-1)
^~
include/linux/compiler.h:162:4: warning: '______f' is static but declared in inline function 'kmemdup' which is not static
______f = { \
^
include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~~~~~~~
include/linux/string.h:380:2: note: in expansion of macro 'if'
if (p_size < size)
^~
include/linux/compiler.h:162:4: warning: '______f' is static but declared in inline function 'kmemdup' which is not static
______f = { \
^
include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~~~~~~~
include/linux/string.h:378:2: note: in expansion of macro 'if'
if (__builtin_constant_p(size) && p_size < size)
^~
include/linux/compiler.h:162:4: warning: '______f' is static but declared in inline function 'memchr_inv' which is not static
______f = { \
^
include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~~~~~~~
include/linux/string.h:369:2: note: in expansion of macro 'if'
if (p_size < size)
^~
include/linux/compiler.h:162:4: warning: '______f' is static but declared in inline function 'memchr_inv' which is not static
______f = { \
^
include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~~~~~~~
include/linux/string.h:367:2: note: in expansion of macro 'if'
if (__builtin_constant_p(size) && p_size < size)
^~
include/linux/compiler.h:162:4: warning: '______f' is static but declared in inline function 'memchr' which is not static
______f = { \
^
include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~~~~~~~
include/linux/string.h:358:2: note: in expansion of macro 'if'
if (p_size < size)
^~
include/linux/compiler.h:162:4: warning: '______f' is static but declared in inline function 'memchr' which is not static
______f = { \
^
include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~~~~~~~
include/linux/string.h:356:2: note: in expansion of macro 'if'
if (__builtin_constant_p(size) && p_size < size)
^~
include/linux/compiler.h:162:4: warning: '______f' is static but declared in inline function 'memcmp' which is not static
______f = { \
^
include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~~~~~~~
include/linux/string.h:348:2: note: in expansion of macro 'if'
if (p_size < size || q_size < size)
^~
include/linux/compiler.h:162:4: warning: '______f' is static but declared in inline function 'memcmp' which is not static
______f = { \
^
include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~~~~~~~
include/linux/string.h:345:3: note: in expansion of macro 'if'
if (q_size < size)
^~
include/linux/compiler.h:162:4: warning: '______f' is static but declared in inline function 'memcmp' which is not static
______f = { \
^
include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
--
arch/x86//kernel/traps.c: In function 'do_device_not_available':
arch/x86//kernel/traps.c:892:1: error: 'xo' undeclared (first use in this function)
xo if (WARN(cr0 & X86_CR0_TS, "CR0.TS was set")) {
^~
arch/x86//kernel/traps.c:892:1: note: each undeclared identifier is reported only once for each function it appears in
In file included from arch/x86/include/asm/current.h:4:0,
from include/linux/sched.h:11,
from include/linux/context_tracking.h:4,
from arch/x86//kernel/traps.c:15:
>> include/linux/compiler.h:156:2: error: expected ';' before 'if'
if (__builtin_constant_p(!!(cond)) ? !!(cond) : \
^
include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~~~~~~~
arch/x86//kernel/traps.c:892:4: note: in expansion of macro 'if'
xo if (WARN(cr0 & X86_CR0_TS, "CR0.TS was set")) {
^~
arch/x86//kernel/traps.c: At top level:
arch/x86//kernel/traps.c:926:1: warning: data definition has no type or storage class
xovoid __init trap_init(void)
^~~~~~
arch/x86//kernel/traps.c:926:1: error: type defaults to 'int' in declaration of 'xovoid' [-Werror=implicit-int]
arch/x86//kernel/traps.c:926:1: warning: '__cold__' attribute ignored [-Wattributes]
arch/x86//kernel/traps.c:926:15: error: expected ',' or ';' before 'trap_init'
xovoid __init trap_init(void)
^~~~~~~~~
In file included from arch/x86/include/asm/current.h:4:0,
from include/linux/sched.h:11,
from include/linux/context_tracking.h:4,
from arch/x86//kernel/traps.c:15:
include/linux/compiler.h:162:4: warning: '______f' is static but declared in inline function 'strcpy' which is not static
______f = { \
^
include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~~~~~~~
include/linux/string.h:390:2: note: in expansion of macro 'if'
if (p_size == (size_t)-1 && q_size == (size_t)-1)
^~
include/linux/compiler.h:162:4: warning: '______f' is static but declared in inline function 'kmemdup' which is not static
______f = { \
^
include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~~~~~~~
include/linux/string.h:380:2: note: in expansion of macro 'if'
if (p_size < size)
^~
include/linux/compiler.h:162:4: warning: '______f' is static but declared in inline function 'kmemdup' which is not static
______f = { \
^
include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~~~~~~~
include/linux/string.h:378:2: note: in expansion of macro 'if'
if (__builtin_constant_p(size) && p_size < size)
^~
include/linux/compiler.h:162:4: warning: '______f' is static but declared in inline function 'memchr_inv' which is not static
______f = { \
^
include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~~~~~~~
include/linux/string.h:369:2: note: in expansion of macro 'if'
if (p_size < size)
^~
include/linux/compiler.h:162:4: warning: '______f' is static but declared in inline function 'memchr_inv' which is not static
______f = { \
^
include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~~~~~~~
include/linux/string.h:367:2: note: in expansion of macro 'if'
if (__builtin_constant_p(size) && p_size < size)
^~
include/linux/compiler.h:162:4: warning: '______f' is static but declared in inline function 'memchr' which is not static
______f = { \
^
include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~~~~~~~
include/linux/string.h:358:2: note: in expansion of macro 'if'
if (p_size < size)
^~
include/linux/compiler.h:162:4: warning: '______f' is static but declared in inline function 'memchr' which is not static
______f = { \
^
include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~~~~~~~
include/linux/string.h:356:2: note: in expansion of macro 'if'
if (__builtin_constant_p(size) && p_size < size)
^~
include/linux/compiler.h:162:4: warning: '______f' is static but declared in inline function 'memcmp' which is not static
______f = { \
^
include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~~~~~~~
include/linux/string.h:348:2: note: in expansion of macro 'if'
if (p_size < size || q_size < size)
^~
include/linux/compiler.h:162:4: warning: '______f' is static but declared in inline function 'memcmp' which is not static
______f = { \
^
include/linux/compiler.h:154:23: note: in expansion of macro '__trace_if'
#define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
^~~~~~~~~~
include/linux/string.h:345:3: note: in expansion of macro 'if'

vim +/if +892 arch/x86/kernel/traps.c

889
890 /* This should not happen. */
891 cr0 = read_cr0();
> 892 xo if (WARN(cr0 & X86_CR0_TS, "CR0.TS was set")) {
893 /* Try to fix it up and carry on. */
894 write_cr0(cr0 & ~X86_CR0_TS);
895 } else {
896 /*
897 * Something terrible happened, and we're better off trying
898 * to kill the task than getting stuck in a never-ending
899 * loop of #NM faults.
900 */
901 die("unexpected #NM exception", regs, error_code);
902 }
903 }
904 NOKPROBE_SYMBOL(do_device_not_available);
905

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

Attachment: .config.gz
Description: application/gzip