From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [mcgrof:20211028-test-sysfs 4/6] fs/kernfs/kernfs-internal.h:217:43: error: statement with no effect
Date: Fri, 29 Oct 2021 17:11:41 +0800 [thread overview]
Message-ID: <202110291733.aTC2p8Z2-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3539 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(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 35097 bytes --]
WARNING: multiple messages have this Message-ID (diff)
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:20211028-test-sysfs 4/6] fs/kernfs/kernfs-internal.h:217:43: error: statement with no effect
Date: Fri, 29 Oct 2021 17:11:41 +0800 [thread overview]
Message-ID: <202110291733.aTC2p8Z2-lkp@intel.com> (raw)
[-- 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 --]
next reply other threads:[~2021-10-29 9:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-29 9:11 kernel test robot [this message]
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
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=202110291733.aTC2p8Z2-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.