public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [mcgrof:20211028-test-sysfs 4/6] fs/kernfs/kernfs-internal.h:217:43: error: statement with no effect
@ 2021-10-29  9:11 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-10-29  9:11 UTC (permalink / raw)
  To: Luis Chamberlain; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 3473 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git 20211028-test-sysfs
head:   5512bad275fe74b7a34993a557f37d999bf6e669
commit: d59251217420767e765f11ef912a26e5cf7a24be [4/6] kernfs: add initial failure injection support
config: arm-buildonly-randconfig-r006-20211028 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git/commit/?id=d59251217420767e765f11ef912a26e5cf7a24be
        git remote add mcgrof https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git
        git fetch --no-tags mcgrof 20211028-test-sysfs
        git checkout d59251217420767e765f11ef912a26e5cf7a24be
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=arm 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (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:217:43: error: statement with no effect [-Werror=unused-value]
     217 | #define may_wait_kernfs_debug(func, when) (false)
         |                                           ^
   fs/kernfs/file.c:262:9: note: in expansion of macro 'may_wait_kernfs_debug'
     262 |         may_wait_kernfs_debug(kernfs_fop_write_iter, at_start);
         |         ^~~~~~~~~~~~~~~~~~~~~
>> fs/kernfs/kernfs-internal.h:217:43: error: statement with no effect [-Werror=unused-value]
     217 | #define may_wait_kernfs_debug(func, when) (false)
         |                                           ^
   fs/kernfs/file.c:285:9: note: in expansion of macro 'may_wait_kernfs_debug'
     285 |         may_wait_kernfs_debug(kernfs_fop_write_iter, before_mutex);
         |         ^~~~~~~~~~~~~~~~~~~~~
>> fs/kernfs/kernfs-internal.h:217:43: error: statement with no effect [-Werror=unused-value]
     217 | #define may_wait_kernfs_debug(func, when) (false)
         |                                           ^
   fs/kernfs/file.c:293:9: note: in expansion of macro 'may_wait_kernfs_debug'
     293 |         may_wait_kernfs_debug(kernfs_fop_write_iter, after_mutex);
         |         ^~~~~~~~~~~~~~~~~~~~~
>> fs/kernfs/kernfs-internal.h:217:43: error: statement with no effect [-Werror=unused-value]
     217 | #define may_wait_kernfs_debug(func, when) (false)
         |                                           ^
   fs/kernfs/file.c:301:9: note: in expansion of macro 'may_wait_kernfs_debug'
     301 |         may_wait_kernfs_debug(kernfs_fop_write_iter, after_active);
         |         ^~~~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors


vim +217 fs/kernfs/kernfs-internal.h

   211	
   212	#define may_wait_kernfs_debug(func, when) \
   213		__kernfs_debug_should_wait_func_name(func)(__kernfs_config_wait_var(func, when))
   214	void __kernfs_debug_should_wait_kernfs_fop_write_iter(bool evaluate);
   215	#else
   216	static inline void kernfs_init_failure_injection(void) {}
 > 217	#define may_wait_kernfs_debug(func, when) (false)
   218	#endif
   219	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 35097 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-29  9:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-29  9:11 [mcgrof:20211028-test-sysfs 4/6] fs/kernfs/kernfs-internal.h:217:43: error: statement with no effect kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox