tree:
https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git
fscache-iter
head: 59f33c90ef6c1a75d4af75e5f60d98c0d965b6a2
commit: 667b9011d562075c1d4e831862efa31f2f47fba0 [21/61] fscache: Replace the object
management state machine
config: i386-randconfig-a006-20200526 (attached as .config)
compiler: gcc-4.9 (Ubuntu 4.9.3-13ubuntu2) 4.9.3
reproduce (this is a W=1 build):
git checkout 667b9011d562075c1d4e831862efa31f2f47fba0
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from include/linux/export.h:43:0,
from include/linux/linkage.h:7,
from include/linux/kernel.h:8,
from include/linux/list.h:9,
from include/linux/module.h:12,
from fs/fscache/obj.c:12:
fs/fscache/obj.c: In function 'fscache_drop_object':
fs/fscache/obj.c:278:27: warning: comparison is always false due to limited range of data
type [-Wtype-limits]
ASSERTCMP(cookie->stage, ==, FSCACHE_COOKIE_STAGE_DEAD);
^
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) :
__trace_if_value(cond))
^
> fs/fscache/internal.h:352:2: note: in expansion of macro
'if'
if (unlikely(!((X) OP (Y)))) { ^
include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__'
# define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
^
> fs/fscache/internal.h:352:6: note: in expansion of macro
'unlikely'
if (unlikely(!((X) OP (Y)))) { ^
fs/fscache/obj.c:278:2: note: in expansion of macro 'ASSERTCMP'
ASSERTCMP(cookie->stage, ==, FSCACHE_COOKIE_STAGE_DEAD);
^
fs/fscache/obj.c:278:27: warning: comparison is always false due to limited range of data
type [-Wtype-limits]
ASSERTCMP(cookie->stage, ==, FSCACHE_COOKIE_STAGE_DEAD);
^
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) :
__trace_if_value(cond))
^
> fs/fscache/internal.h:352:2: note: in expansion of macro
'if'
if (unlikely(!((X) OP (Y)))) { ^
include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__'
# define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
^
> fs/fscache/internal.h:352:6: note: in expansion of macro
'unlikely'
if (unlikely(!((X) OP (Y)))) { ^
fs/fscache/obj.c:278:2: note: in expansion of macro 'ASSERTCMP'
ASSERTCMP(cookie->stage, ==, FSCACHE_COOKIE_STAGE_DEAD);
^
fs/fscache/obj.c:278:27: warning: comparison is always false due to limited range of data
type [-Wtype-limits]
ASSERTCMP(cookie->stage, ==, FSCACHE_COOKIE_STAGE_DEAD);
^
include/linux/compiler.h:58:61: note: in definition of macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) :
__trace_if_value(cond))
^
> fs/fscache/internal.h:352:2: note: in expansion of macro
'if'
if (unlikely(!((X) OP (Y)))) { ^
include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__'
# define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
^
> fs/fscache/internal.h:352:6: note: in expansion of macro
'unlikely'
if (unlikely(!((X) OP (Y)))) { ^
fs/fscache/obj.c:278:2: note: in expansion of macro 'ASSERTCMP'
ASSERTCMP(cookie->stage, ==, FSCACHE_COOKIE_STAGE_DEAD);
^
fs/fscache/obj.c:278:27: warning: comparison is always false due to limited range of data
type [-Wtype-limits]
ASSERTCMP(cookie->stage, ==, FSCACHE_COOKIE_STAGE_DEAD);
^
include/linux/compiler.h:58:61: note: in definition of macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) :
__trace_if_value(cond))
^
> fs/fscache/internal.h:352:2: note: in expansion of macro
'if'
if (unlikely(!((X) OP (Y)))) { ^
include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__'
# define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
^
> fs/fscache/internal.h:352:6: note: in expansion of macro
'unlikely'
if (unlikely(!((X) OP (Y)))) { ^
fs/fscache/obj.c:278:2: note: in expansion of macro 'ASSERTCMP'
ASSERTCMP(cookie->stage, ==, FSCACHE_COOKIE_STAGE_DEAD);
^
fs/fscache/obj.c:278:27: warning: comparison is always false due to limited range of data
type [-Wtype-limits]
ASSERTCMP(cookie->stage, ==, FSCACHE_COOKIE_STAGE_DEAD);
^
include/linux/compiler.h:69:3: note: in definition of macro '__trace_if_value'
(cond) ? ^
include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^
> fs/fscache/internal.h:352:2: note: in expansion of macro
'if'
if (unlikely(!((X) OP (Y)))) { ^
include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__'
# define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
^
> fs/fscache/internal.h:352:6: note: in expansion of macro
'unlikely'
if (unlikely(!((X) OP (Y)))) { ^
fs/fscache/obj.c:278:2: note: in expansion of macro 'ASSERTCMP'
ASSERTCMP(cookie->stage, ==, FSCACHE_COOKIE_STAGE_DEAD);
^
fs/fscache/obj.c:278:27: warning: comparison is always false due to limited range of data
type [-Wtype-limits]
ASSERTCMP(cookie->stage, ==, FSCACHE_COOKIE_STAGE_DEAD);
^
include/linux/compiler.h:69:3: note: in definition of macro '__trace_if_value'
(cond) ? ^
include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
^
> fs/fscache/internal.h:352:2: note: in expansion of macro
'if'
if (unlikely(!((X) OP (Y)))) { ^
include/linux/compiler.h:48:24: note: in expansion of macro '__branch_check__'
# define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
^
> fs/fscache/internal.h:352:6: note: in expansion of macro
'unlikely'
if (unlikely(!((X) OP (Y)))) { ^
fs/fscache/obj.c:278:2: note: in expansion of macro 'ASSERTCMP'
ASSERTCMP(cookie->stage, ==, FSCACHE_COOKIE_STAGE_DEAD);
^
vim +/if +352 fs/fscache/internal.h
06b3db1b9bccdc8 David Howells 2009-04-03 349
06b3db1b9bccdc8 David Howells 2009-04-03 350 #define ASSERTCMP(X, OP, Y) \
06b3db1b9bccdc8 David Howells 2009-04-03 351 do { \
06b3db1b9bccdc8 David Howells 2009-04-03 @352 if (unlikely(!((X) OP (Y)))) { \
36dfd116edd48fa Fabian Frederick 2014-06-04 353 pr_err("\n"); \
36dfd116edd48fa Fabian Frederick 2014-06-04 354 pr_err("Assertion
failed\n"); \
36dfd116edd48fa Fabian Frederick 2014-06-04 355 pr_err("%lx " #OP " %lx
is false\n", \
06b3db1b9bccdc8 David Howells 2009-04-03 356 (unsigned long)(X), (unsigned
long)(Y)); \
06b3db1b9bccdc8 David Howells 2009-04-03 357 BUG(); \
06b3db1b9bccdc8 David Howells 2009-04-03 358 } \
06b3db1b9bccdc8 David Howells 2009-04-03 359 } while (0)
06b3db1b9bccdc8 David Howells 2009-04-03 360
:::::: The code at line 352 was first introduced by commit
:::::: 06b3db1b9bccdc8c2c743122a89745279e5ecc46 FS-Cache: Add main configuration option,
module entry points and debugging
:::::: TO: David Howells <dhowells(a)redhat.com>
:::::: CC: David Howells <dhowells(a)redhat.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org