[mcgrof:20220913-test-sysfs 9/11] fs/kernfs/kernfs-internal.h:239:43: warning: statement with no effect
From: kernel test robot
Date: Wed Sep 14 2022 - 06:43:04 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git 20220913-test-sysfs
head: fd13723170f4a2381aab0b6449920c121f01a10a
commit: 010fe7c173f104fbec6c1d56c3a92e2b88281ec8 [9/11] kernfs: add initial failure injection support
config: i386-randconfig-a001 (https://download.01.org/0day-ci/archive/20220914/202209141853.6zXXC9T7-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git/commit/?id=010fe7c173f104fbec6c1d56c3a92e2b88281ec8
git remote add mcgrof https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git
git fetch --no-tags mcgrof 20220913-test-sysfs
git checkout 010fe7c173f104fbec6c1d56c3a92e2b88281ec8
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash fs/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>
All warnings (new ones prefixed by >>):
In file included from fs/kernfs/file.c:19:
fs/kernfs/file.c: In function 'kernfs_fop_write_iter':
>> fs/kernfs/kernfs-internal.h:239:43: warning: statement with no effect [-Wunused-value]
239 | #define may_wait_kernfs_debug(func, when) (false)
| ^
fs/kernfs/file.c:320:9: note: in expansion of macro 'may_wait_kernfs_debug'
320 | may_wait_kernfs_debug(kernfs_fop_write_iter, at_start);
| ^~~~~~~~~~~~~~~~~~~~~
>> fs/kernfs/kernfs-internal.h:239:43: warning: statement with no effect [-Wunused-value]
239 | #define may_wait_kernfs_debug(func, when) (false)
| ^
fs/kernfs/file.c:343:9: note: in expansion of macro 'may_wait_kernfs_debug'
343 | may_wait_kernfs_debug(kernfs_fop_write_iter, before_mutex);
| ^~~~~~~~~~~~~~~~~~~~~
>> fs/kernfs/kernfs-internal.h:239:43: warning: statement with no effect [-Wunused-value]
239 | #define may_wait_kernfs_debug(func, when) (false)
| ^
fs/kernfs/file.c:351:9: note: in expansion of macro 'may_wait_kernfs_debug'
351 | may_wait_kernfs_debug(kernfs_fop_write_iter, after_mutex);
| ^~~~~~~~~~~~~~~~~~~~~
>> fs/kernfs/kernfs-internal.h:239:43: warning: statement with no effect [-Wunused-value]
239 | #define may_wait_kernfs_debug(func, when) (false)
| ^
fs/kernfs/file.c:359:9: note: in expansion of macro 'may_wait_kernfs_debug'
359 | may_wait_kernfs_debug(kernfs_fop_write_iter, after_active);
| ^~~~~~~~~~~~~~~~~~~~~
vim +239 fs/kernfs/kernfs-internal.h
233
234 #define may_wait_kernfs_debug(func, when) \
235 __kernfs_debug_should_wait_func_name(func)(__kernfs_config_wait_var(func, when))
236 void __kernfs_debug_should_wait_kernfs_fop_write_iter(bool evaluate);
237 #else
238 static inline void kernfs_init_failure_injection(void) {}
> 239 #define may_wait_kernfs_debug(func, when) (false)
240 #endif
241
--
0-DAY CI Kernel Test Service
https://01.org/lkp