mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Luis Chamberlain <mcgrof@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [mcgrof:20220913-test-sysfs 9/11] fs/kernfs/kernfs-internal.h:239:43: warning: statement with no effect
Date: Wed, 14 Sep 2022 18:42:08 +0800	[thread overview]
Message-ID: <202209141853.6zXXC9T7-lkp@intel.com> (raw)

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@intel.com/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@intel.com>

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

                 reply	other threads:[~2022-09-14 10:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202209141853.6zXXC9T7-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mcgrof@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®