tree:
https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git
btree-private-unions
head: 30d91fbcef11ed07350f943fd3f695e0fb0635dd
commit: 35137236b91e958ca683fd4a045a29c0b5310938 [52/72] xfs: don't crash with
assfail
config: x86_64-randconfig-s0-20200312 (attached as .config)
compiler: gcc-4.9 (Debian 4.9.2-10+deb8u1) 4.9.2
reproduce:
git checkout 35137236b91e958ca683fd4a045a29c0b5310938
# 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(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from include/linux/string.h:6:0,
from include/linux/uuid.h:12,
from fs/xfs/xfs_linux.h:10,
from fs/xfs/xfs.h:22,
from fs/xfs/xfs_trace.c:6:
arch/x86/include/asm/atomic.h: In function 'arch_atomic_try_cmpxchg':
> include/linux/compiler.h:25:18: warning: missing initializer for
field 'file' of 'struct ftrace_branch_data' [-Wmissing-field-initializers]
static struct ftrace_likely_data \
^
include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__'
# define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
^
> arch/x86/include/asm/cmpxchg.h:216:6: note: in expansion of macro
'unlikely'
if (unlikely(!success)) \
^
> arch/x86/include/asm/cmpxchg.h:222:2: note: in expansion of macro
'__raw_try_cmpxchg'
__raw_try_cmpxchg((ptr), (pold), (new), (size),
LOCK_PREFIX)
^
> arch/x86/include/asm/cmpxchg.h:225:2: note: in expansion of macro
'__try_cmpxchg'
__try_cmpxchg((ptr), (pold), (new), sizeof(*(ptr)))
^
> arch/x86/include/asm/atomic.h:200:9: note: in expansion of macro
'try_cmpxchg'
return try_cmpxchg(&v->counter, old, new);
^
In file included from <command-line>:0:0:
include/linux/compiler_types.h:87:14: note: 'file' declared here
const char *file;
^
In file included from include/linux/string.h:6:0,
from include/linux/uuid.h:12,
from fs/xfs/xfs_linux.h:10,
from fs/xfs/xfs.h:22,
from fs/xfs/xfs_trace.c:6:
> include/linux/compiler.h:25:18: warning: missing initializer for
field 'line' of 'struct ftrace_branch_data' [-Wmissing-field-initializers]
static struct ftrace_likely_data \
^
include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__'
# define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
^
> arch/x86/include/asm/cmpxchg.h:216:6: note: in expansion of macro
'unlikely'
if (unlikely(!success)) \
^
> arch/x86/include/asm/cmpxchg.h:222:2: note: in expansion of macro
'__raw_try_cmpxchg'
__raw_try_cmpxchg((ptr), (pold), (new), (size),
LOCK_PREFIX)
^
> arch/x86/include/asm/cmpxchg.h:225:2: note: in expansion of macro
'__try_cmpxchg'
__try_cmpxchg((ptr), (pold), (new), sizeof(*(ptr)))
^
> arch/x86/include/asm/atomic.h:200:9: note: in expansion of macro
'try_cmpxchg'
return try_cmpxchg(&v->counter, old, new);
^
In file included from <command-line>:0:0:
include/linux/compiler_types.h:88:11: note: 'line' declared here
unsigned line;
^
In file included from include/linux/string.h:6:0,
from include/linux/uuid.h:12,
from fs/xfs/xfs_linux.h:10,
from fs/xfs/xfs.h:22,
from fs/xfs/xfs_trace.c:6:
> include/linux/compiler.h:25:18: warning: missing initializer for
field '({anonymous})' of 'struct ftrace_branch_data'
[-Wmissing-field-initializers]
static struct ftrace_likely_data \
^
include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__'
# define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
^
> arch/x86/include/asm/cmpxchg.h:216:6: note: in expansion of macro
'unlikely'
if (unlikely(!success)) \
^
> arch/x86/include/asm/cmpxchg.h:222:2: note: in expansion of macro
'__raw_try_cmpxchg'
__raw_try_cmpxchg((ptr), (pold), (new), (size),
LOCK_PREFIX)
^
> arch/x86/include/asm/cmpxchg.h:225:2: note: in expansion of macro
'__try_cmpxchg'
__try_cmpxchg((ptr), (pold), (new), sizeof(*(ptr)))
^
> arch/x86/include/asm/atomic.h:200:9: note: in expansion of macro
'try_cmpxchg'
return try_cmpxchg(&v->counter, old, new);
^
In file included from <command-line>:0:0:
include/linux/compiler_types.h:99:2: note: '({anonymous})' declared here
};
^
In file included from include/linux/string.h:6:0,
from include/linux/uuid.h:12,
from fs/xfs/xfs_linux.h:10,
from fs/xfs/xfs.h:22,
from fs/xfs/xfs_trace.c:6:
> include/linux/compiler.h:25:18: warning: missing initializer for
field 'file' of 'struct ftrace_branch_data' [-Wmissing-field-initializers]
static struct ftrace_likely_data \
^
include/linux/compiler.h:45:22: note: in expansion of macro '__branch_check__'
# define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x)))
^
> arch/x86/include/asm/cmpxchg.h:218:2: note: in expansion of macro
'likely'
likely(success); \
^
> arch/x86/include/asm/cmpxchg.h:222:2: note: in expansion of macro
'__raw_try_cmpxchg'
__raw_try_cmpxchg((ptr), (pold), (new), (size),
LOCK_PREFIX)
^
> arch/x86/include/asm/cmpxchg.h:225:2: note: in expansion of macro
'__try_cmpxchg'
__try_cmpxchg((ptr), (pold), (new), sizeof(*(ptr)))
^
> arch/x86/include/asm/atomic.h:200:9: note: in expansion of macro
'try_cmpxchg'
return try_cmpxchg(&v->counter, old, new);
^
In file included from <command-line>:0:0:
include/linux/compiler_types.h:87:14: note: 'file' declared here
const char *file;
^
In file included from include/linux/string.h:6:0,
from include/linux/uuid.h:12,
from fs/xfs/xfs_linux.h:10,
from fs/xfs/xfs.h:22,
from fs/xfs/xfs_trace.c:6:
include/linux/compiler.h:25:18: warning: missing initializer for field 'line'
of 'struct ftrace_branch_data' [-Wmissing-field-initializers]
static struct ftrace_likely_data \
^
include/linux/compiler.h:45:22: note: in expansion of macro '__branch_check__'
# define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x)))
^
arch/x86/include/asm/cmpxchg.h:218:2: note: in expansion of macro 'likely'
likely(success); \
^
arch/x86/include/asm/cmpxchg.h:222:2: note: in expansion of macro
'__raw_try_cmpxchg'
__raw_try_cmpxchg((ptr), (pold), (new), (size), LOCK_PREFIX)
^
arch/x86/include/asm/cmpxchg.h:225:2: note: in expansion of macro
'__try_cmpxchg'
__try_cmpxchg((ptr), (pold), (new), sizeof(*(ptr)))
^
arch/x86/include/asm/atomic.h:200:9: note: in expansion of macro 'try_cmpxchg'
return try_cmpxchg(&v->counter, old, new);
^
In file included from <command-line>:0:0:
include/linux/compiler_types.h:88:11: note: 'line' declared here
unsigned line;
^
In file included from include/linux/string.h:6:0,
from include/linux/uuid.h:12,
from fs/xfs/xfs_linux.h:10,
from fs/xfs/xfs.h:22,
from fs/xfs/xfs_trace.c:6:
include/linux/compiler.h:25:18: warning: missing initializer for field
'({anonymous})' of 'struct ftrace_branch_data'
[-Wmissing-field-initializers]
static struct ftrace_likely_data \
^
include/linux/compiler.h:45:22: note: in expansion of macro '__branch_check__'
# define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x)))
^
arch/x86/include/asm/cmpxchg.h:218:2: note: in expansion of macro 'likely'
likely(success); \
^
arch/x86/include/asm/cmpxchg.h:222:2: note: in expansion of macro
'__raw_try_cmpxchg'
__raw_try_cmpxchg((ptr), (pold), (new), (size), LOCK_PREFIX)
^
arch/x86/include/asm/cmpxchg.h:225:2: note: in expansion of macro
'__try_cmpxchg'
__try_cmpxchg((ptr), (pold), (new), sizeof(*(ptr)))
^
arch/x86/include/asm/atomic.h:200:9: note: in expansion of macro 'try_cmpxchg'
return try_cmpxchg(&v->counter, old, new);
^
In file included from <command-line>:0:0:
include/linux/compiler_types.h:99:2: note: '({anonymous})' declared here
};
^
In file included from include/linux/string.h:6:0,
from include/linux/uuid.h:12,
from fs/xfs/xfs_linux.h:10,
from fs/xfs/xfs.h:22,
from fs/xfs/xfs_trace.c:6:
arch/x86/include/asm/atomic64_64.h: In function 'arch_atomic64_try_cmpxchg':
include/linux/compiler.h:25:18: warning: missing initializer for field 'file'
of 'struct ftrace_branch_data' [-Wmissing-field-initializers]
static struct ftrace_likely_data \
^
include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__'
# define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
^
arch/x86/include/asm/cmpxchg.h:216:6: note: in expansion of macro 'unlikely'
if (unlikely(!success)) \
^
arch/x86/include/asm/cmpxchg.h:222:2: note: in expansion of macro
'__raw_try_cmpxchg'
__raw_try_cmpxchg((ptr), (pold), (new), (size), LOCK_PREFIX)
^
arch/x86/include/asm/cmpxchg.h:225:2: note: in expansion of macro
'__try_cmpxchg'
__try_cmpxchg((ptr), (pold), (new), sizeof(*(ptr)))
^
arch/x86/include/asm/atomic64_64.h:186:9: note: in expansion of macro
'try_cmpxchg'
return try_cmpxchg(&v->counter, old, new);
^
In file included from <command-line>:0:0:
include/linux/compiler_types.h:87:14: note: 'file' declared here
const char *file;
^
In file included from include/linux/string.h:6:0,
from include/linux/uuid.h:12,
from fs/xfs/xfs_linux.h:10,
from fs/xfs/xfs.h:22,
from fs/xfs/xfs_trace.c:6:
include/linux/compiler.h:25:18: warning: missing initializer for field 'line'
of 'struct ftrace_branch_data' [-Wmissing-field-initializers]
static struct ftrace_likely_data \
^
include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__'
# define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
^
arch/x86/include/asm/cmpxchg.h:216:6: note: in expansion of macro 'unlikely'
--
In file included from include/linux/string.h:6:0,
from include/linux/uuid.h:12,
from fs/xfs/xfs_linux.h:10,
from fs/xfs/xfs.h:22,
from fs/xfs/libxfs/xfs_ag.c:8:
arch/x86/include/asm/atomic.h: In function 'arch_atomic_try_cmpxchg':
> include/linux/compiler.h:25:18: warning: missing initializer for
field 'file' of 'struct ftrace_branch_data' [-Wmissing-field-initializers]
static struct ftrace_likely_data \
^
include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__'
# define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
^
> arch/x86/include/asm/cmpxchg.h:216:6: note: in expansion of macro
'unlikely'
if (unlikely(!success)) \
^
> arch/x86/include/asm/cmpxchg.h:222:2: note: in expansion of macro
'__raw_try_cmpxchg'
__raw_try_cmpxchg((ptr), (pold), (new), (size),
LOCK_PREFIX)
^
> arch/x86/include/asm/cmpxchg.h:225:2: note: in expansion of macro
'__try_cmpxchg'
__try_cmpxchg((ptr), (pold), (new), sizeof(*(ptr)))
^
> arch/x86/include/asm/atomic.h:200:9: note: in expansion of macro
'try_cmpxchg'
return try_cmpxchg(&v->counter, old, new);
^
In file included from <command-line>:0:0:
include/linux/compiler_types.h:87:14: note: 'file' declared here
const char *file;
^
In file included from include/linux/string.h:6:0,
from include/linux/uuid.h:12,
from fs/xfs/xfs_linux.h:10,
from fs/xfs/xfs.h:22,
from fs/xfs/libxfs/xfs_ag.c:8:
> include/linux/compiler.h:25:18: warning: missing initializer for
field 'line' of 'struct ftrace_branch_data' [-Wmissing-field-initializers]
static struct ftrace_likely_data \
^
include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__'
# define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
^
> arch/x86/include/asm/cmpxchg.h:216:6: note: in expansion of macro
'unlikely'
if (unlikely(!success)) \
^
> arch/x86/include/asm/cmpxchg.h:222:2: note: in expansion of macro
'__raw_try_cmpxchg'
__raw_try_cmpxchg((ptr), (pold), (new), (size),
LOCK_PREFIX)
^
> arch/x86/include/asm/cmpxchg.h:225:2: note: in expansion of macro
'__try_cmpxchg'
__try_cmpxchg((ptr), (pold), (new), sizeof(*(ptr)))
^
> arch/x86/include/asm/atomic.h:200:9: note: in expansion of macro
'try_cmpxchg'
return try_cmpxchg(&v->counter, old, new);
^
In file included from <command-line>:0:0:
include/linux/compiler_types.h:88:11: note: 'line' declared here
unsigned line;
^
In file included from include/linux/string.h:6:0,
from include/linux/uuid.h:12,
from fs/xfs/xfs_linux.h:10,
from fs/xfs/xfs.h:22,
from fs/xfs/libxfs/xfs_ag.c:8:
> include/linux/compiler.h:25:18: warning: missing initializer for
field '({anonymous})' of 'struct ftrace_branch_data'
[-Wmissing-field-initializers]
static struct ftrace_likely_data \
^
include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__'
# define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
^
> arch/x86/include/asm/cmpxchg.h:216:6: note: in expansion of macro
'unlikely'
if (unlikely(!success)) \
^
> arch/x86/include/asm/cmpxchg.h:222:2: note: in expansion of macro
'__raw_try_cmpxchg'
__raw_try_cmpxchg((ptr), (pold), (new), (size),
LOCK_PREFIX)
^
> arch/x86/include/asm/cmpxchg.h:225:2: note: in expansion of macro
'__try_cmpxchg'
__try_cmpxchg((ptr), (pold), (new), sizeof(*(ptr)))
^
> arch/x86/include/asm/atomic.h:200:9: note: in expansion of macro
'try_cmpxchg'
return try_cmpxchg(&v->counter, old, new);
^
In file included from <command-line>:0:0:
include/linux/compiler_types.h:99:2: note: '({anonymous})' declared here
};
^
In file included from include/linux/string.h:6:0,
from include/linux/uuid.h:12,
from fs/xfs/xfs_linux.h:10,
from fs/xfs/xfs.h:22,
from fs/xfs/libxfs/xfs_ag.c:8:
> include/linux/compiler.h:25:18: warning: missing initializer for
field 'file' of 'struct ftrace_branch_data' [-Wmissing-field-initializers]
static struct ftrace_likely_data \
^
include/linux/compiler.h:45:22: note: in expansion of macro '__branch_check__'
# define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x)))
^
> arch/x86/include/asm/cmpxchg.h:218:2: note: in expansion of macro
'likely'
likely(success); \
^
> arch/x86/include/asm/cmpxchg.h:222:2: note: in expansion of macro
'__raw_try_cmpxchg'
__raw_try_cmpxchg((ptr), (pold), (new), (size),
LOCK_PREFIX)
^
> arch/x86/include/asm/cmpxchg.h:225:2: note: in expansion of macro
'__try_cmpxchg'
__try_cmpxchg((ptr), (pold), (new), sizeof(*(ptr)))
^
> arch/x86/include/asm/atomic.h:200:9: note: in expansion of macro
'try_cmpxchg'
return try_cmpxchg(&v->counter, old, new);
^
In file included from <command-line>:0:0:
include/linux/compiler_types.h:87:14: note: 'file' declared here
const char *file;
^
In file included from include/linux/string.h:6:0,
from include/linux/uuid.h:12,
from fs/xfs/xfs_linux.h:10,
from fs/xfs/xfs.h:22,
from fs/xfs/libxfs/xfs_ag.c:8:
include/linux/compiler.h:25:18: warning: missing initializer for field 'line'
of 'struct ftrace_branch_data' [-Wmissing-field-initializers]
static struct ftrace_likely_data \
^
include/linux/compiler.h:45:22: note: in expansion of macro '__branch_check__'
# define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x)))
^
arch/x86/include/asm/cmpxchg.h:218:2: note: in expansion of macro 'likely'
likely(success); \
^
arch/x86/include/asm/cmpxchg.h:222:2: note: in expansion of macro
'__raw_try_cmpxchg'
__raw_try_cmpxchg((ptr), (pold), (new), (size), LOCK_PREFIX)
^
arch/x86/include/asm/cmpxchg.h:225:2: note: in expansion of macro
'__try_cmpxchg'
__try_cmpxchg((ptr), (pold), (new), sizeof(*(ptr)))
^
arch/x86/include/asm/atomic.h:200:9: note: in expansion of macro 'try_cmpxchg'
return try_cmpxchg(&v->counter, old, new);
^
In file included from <command-line>:0:0:
include/linux/compiler_types.h:88:11: note: 'line' declared here
unsigned line;
^
In file included from include/linux/string.h:6:0,
from include/linux/uuid.h:12,
from fs/xfs/xfs_linux.h:10,
from fs/xfs/xfs.h:22,
from fs/xfs/libxfs/xfs_ag.c:8:
include/linux/compiler.h:25:18: warning: missing initializer for field
'({anonymous})' of 'struct ftrace_branch_data'
[-Wmissing-field-initializers]
static struct ftrace_likely_data \
^
include/linux/compiler.h:45:22: note: in expansion of macro '__branch_check__'
# define likely(x) (__branch_check__(x, 1, __builtin_constant_p(x)))
^
arch/x86/include/asm/cmpxchg.h:218:2: note: in expansion of macro 'likely'
likely(success); \
^
arch/x86/include/asm/cmpxchg.h:222:2: note: in expansion of macro
'__raw_try_cmpxchg'
__raw_try_cmpxchg((ptr), (pold), (new), (size), LOCK_PREFIX)
^
arch/x86/include/asm/cmpxchg.h:225:2: note: in expansion of macro
'__try_cmpxchg'
__try_cmpxchg((ptr), (pold), (new), sizeof(*(ptr)))
^
arch/x86/include/asm/atomic.h:200:9: note: in expansion of macro 'try_cmpxchg'
return try_cmpxchg(&v->counter, old, new);
^
In file included from <command-line>:0:0:
include/linux/compiler_types.h:99:2: note: '({anonymous})' declared here
};
^
In file included from include/linux/string.h:6:0,
from include/linux/uuid.h:12,
from fs/xfs/xfs_linux.h:10,
from fs/xfs/xfs.h:22,
from fs/xfs/libxfs/xfs_ag.c:8:
arch/x86/include/asm/atomic64_64.h: In function 'arch_atomic64_try_cmpxchg':
include/linux/compiler.h:25:18: warning: missing initializer for field 'file'
of 'struct ftrace_branch_data' [-Wmissing-field-initializers]
static struct ftrace_likely_data \
^
include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__'
# define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
^
arch/x86/include/asm/cmpxchg.h:216:6: note: in expansion of macro 'unlikely'
if (unlikely(!success)) \
^
arch/x86/include/asm/cmpxchg.h:222:2: note: in expansion of macro
'__raw_try_cmpxchg'
__raw_try_cmpxchg((ptr), (pold), (new), (size), LOCK_PREFIX)
^
arch/x86/include/asm/cmpxchg.h:225:2: note: in expansion of macro
'__try_cmpxchg'
__try_cmpxchg((ptr), (pold), (new), sizeof(*(ptr)))
^
arch/x86/include/asm/atomic64_64.h:186:9: note: in expansion of macro
'try_cmpxchg'
return try_cmpxchg(&v->counter, old, new);
^
In file included from <command-line>:0:0:
include/linux/compiler_types.h:87:14: note: 'file' declared here
const char *file;
^
In file included from include/linux/string.h:6:0,
from include/linux/uuid.h:12,
from fs/xfs/xfs_linux.h:10,
from fs/xfs/xfs.h:22,
from fs/xfs/libxfs/xfs_ag.c:8:
include/linux/compiler.h:25:18: warning: missing initializer for field 'line'
of 'struct ftrace_branch_data' [-Wmissing-field-initializers]
static struct ftrace_likely_data \
^
include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__'
# define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
^
arch/x86/include/asm/cmpxchg.h:216:6: note: in expansion of macro 'unlikely'
..
vim +25 include/linux/compiler.h
1f0d69a9fc815d Steven Rostedt 2008-11-12 22
d45ae1f7041ac5 Steven Rostedt (VMware 2017-01-17 23) #define __branch_check__(x, expect,
is_constant) ({ \
2026d35741f2c3 Mikulas Patocka 2018-05-30 24 long ______r; \
134e6a034cb004 Steven Rostedt (VMware 2017-01-19 @25) static struct
ftrace_likely_data \
e04462fb82f8dd Miguel Ojeda 2018-09-03 26 __aligned(4) \
bfafddd8de426d Nick Desaulniers 2019-08-28 27
__section(_ftrace_annotated_branch) \
1f0d69a9fc815d Steven Rostedt 2008-11-12 28 ______f = { \
134e6a034cb004 Steven Rostedt (VMware 2017-01-19 29) .data.func = __func__, \
134e6a034cb004 Steven Rostedt (VMware 2017-01-19 30) .data.file = __FILE__, \
134e6a034cb004 Steven Rostedt (VMware 2017-01-19 31) .data.line = __LINE__, \
1f0d69a9fc815d Steven Rostedt 2008-11-12 32 }; \
d45ae1f7041ac5 Steven Rostedt (VMware 2017-01-17 33) ______r =
__builtin_expect(!!(x), expect); \
d45ae1f7041ac5 Steven Rostedt (VMware 2017-01-17 34)
ftrace_likely_update(&______f, ______r, \
d45ae1f7041ac5 Steven Rostedt (VMware 2017-01-17 35) expect, is_constant); \
1f0d69a9fc815d Steven Rostedt 2008-11-12 36 ______r; \
1f0d69a9fc815d Steven Rostedt 2008-11-12 37 })
1f0d69a9fc815d Steven Rostedt 2008-11-12 38
:::::: The code at line 25 was first introduced by commit
:::::: 134e6a034cb004ed5acd3048792de70ced1c6cf5 tracing: Show number of constants profiled
in likely profiler
:::::: TO: Steven Rostedt (VMware) <rostedt(a)goodmis.org>
:::::: CC: Steven Rostedt (VMware) <rostedt(a)goodmis.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org