From: kernel test robot <lkp@intel.com>
To: "Christoph Böhmwalder" <christoph.boehmwalder@linbit.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
linux-kernel@vger.kernel.org, Jens Axboe <axboe@kernel.dk>
Subject: drivers/block/drbd/drbd_bitmap.c:451:7: warning: expression result unused
Date: Sat, 27 May 2023 03:58:20 +0800 [thread overview]
Message-ID: <202305270319.WZP0J28B-lkp@intel.com> (raw)
Hi Christoph,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 0d85b27b0cc6b5cf54567c5ad913a247a71583ce
commit: aa034695971124f673d4ccdd39cd7f269904ea86 drbd: introduce dynamic debug
date: 6 months ago
config: i386-randconfig-i011-20230526 (https://download.01.org/0day-ci/archive/20230527/202305270319.WZP0J28B-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build):
mkdir -p ~/bin
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/torvalds/linux.git/commit/?id=aa034695971124f673d4ccdd39cd7f269904ea86
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout aa034695971124f673d4ccdd39cd7f269904ea86
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=i386 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ~/bin/make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/block/drbd/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202305270319.WZP0J28B-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/block/drbd/drbd_bitmap.c:451:7: warning: expression result unused [-Wunused-value]
if (!expect(device->bitmap))
~~~~~^~~~~~~~~~~~~~~~~~~~~~~
drivers/block/drbd/drbd_polymorph_printk.h:128:4: note: expanded from macro 'expect'
drbd_err(device, "ASSERTION %s FAILED in %s\n", \
^
drivers/block/drbd/drbd_polymorph_printk.h:104:2: note: expanded from macro 'drbd_err'
drbd_printk(KERN_ERR, device, fmt, ## args)
^
drivers/block/drbd/drbd_polymorph_printk.h:65:4: note: expanded from macro 'drbd_printk'
__drbd_printk_if_same_type(obj, drbd_device, level, fmt, ## args), \
^
drivers/block/drbd/drbd_polymorph_printk.h:55:47: note: expanded from macro '__drbd_printk_if_same_type'
__drbd_printk_choose_cond(obj, struct_name), \
^
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:58:52: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
>> drivers/block/drbd/drbd_bitmap.c:451:7: warning: expression result unused [-Wunused-value]
if (!expect(device->bitmap))
~~~~~^~~~~~~~~~~~~~~~~~~~~~~
drivers/block/drbd/drbd_polymorph_printk.h:128:4: note: expanded from macro 'expect'
drbd_err(device, "ASSERTION %s FAILED in %s\n", \
^
drivers/block/drbd/drbd_polymorph_printk.h:104:2: note: expanded from macro 'drbd_err'
drbd_printk(KERN_ERR, device, fmt, ## args)
^
drivers/block/drbd/drbd_polymorph_printk.h:65:4: note: expanded from macro 'drbd_printk'
__drbd_printk_if_same_type(obj, drbd_device, level, fmt, ## args), \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:58:86: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
~~~~~~~~~~~~~~~~~^~~~~
include/linux/compiler.h:69:3: note: expanded from macro '__trace_if_value'
(cond) ? \
^~~~
drivers/block/drbd/drbd_bitmap.c:460:7: warning: expression result unused [-Wunused-value]
if (!expect(device->bitmap))
~~~~~^~~~~~~~~~~~~~~~~~~~~~~
drivers/block/drbd/drbd_polymorph_printk.h:128:4: note: expanded from macro 'expect'
drbd_err(device, "ASSERTION %s FAILED in %s\n", \
^
drivers/block/drbd/drbd_polymorph_printk.h:104:2: note: expanded from macro 'drbd_err'
drbd_printk(KERN_ERR, device, fmt, ## args)
^
drivers/block/drbd/drbd_polymorph_printk.h:65:4: note: expanded from macro 'drbd_printk'
__drbd_printk_if_same_type(obj, drbd_device, level, fmt, ## args), \
^
drivers/block/drbd/drbd_polymorph_printk.h:55:47: note: expanded from macro '__drbd_printk_if_same_type'
__drbd_printk_choose_cond(obj, struct_name), \
^
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:58:52: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
drivers/block/drbd/drbd_bitmap.c:460:7: warning: expression result unused [-Wunused-value]
if (!expect(device->bitmap))
~~~~~^~~~~~~~~~~~~~~~~~~~~~~
drivers/block/drbd/drbd_polymorph_printk.h:128:4: note: expanded from macro 'expect'
drbd_err(device, "ASSERTION %s FAILED in %s\n", \
^
drivers/block/drbd/drbd_polymorph_printk.h:104:2: note: expanded from macro 'drbd_err'
drbd_printk(KERN_ERR, device, fmt, ## args)
^
drivers/block/drbd/drbd_polymorph_printk.h:65:4: note: expanded from macro 'drbd_printk'
__drbd_printk_if_same_type(obj, drbd_device, level, fmt, ## args), \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:58:86: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
~~~~~~~~~~~~~~~~~^~~~~
include/linux/compiler.h:69:3: note: expanded from macro '__trace_if_value'
(cond) ? \
^~~~
drivers/block/drbd/drbd_bitmap.c:639:7: warning: expression result unused [-Wunused-value]
if (!expect(b))
~~~~~^~~~~~~~~~
drivers/block/drbd/drbd_polymorph_printk.h:128:4: note: expanded from macro 'expect'
drbd_err(device, "ASSERTION %s FAILED in %s\n", \
^
drivers/block/drbd/drbd_polymorph_printk.h:104:2: note: expanded from macro 'drbd_err'
drbd_printk(KERN_ERR, device, fmt, ## args)
^
drivers/block/drbd/drbd_polymorph_printk.h:65:4: note: expanded from macro 'drbd_printk'
__drbd_printk_if_same_type(obj, drbd_device, level, fmt, ## args), \
^
drivers/block/drbd/drbd_polymorph_printk.h:55:47: note: expanded from macro '__drbd_printk_if_same_type'
__drbd_printk_choose_cond(obj, struct_name), \
^
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:58:52: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
drivers/block/drbd/drbd_bitmap.c:639:7: warning: expression result unused [-Wunused-value]
if (!expect(b))
~~~~~^~~~~~~~~~
drivers/block/drbd/drbd_polymorph_printk.h:128:4: note: expanded from macro 'expect'
drbd_err(device, "ASSERTION %s FAILED in %s\n", \
^
drivers/block/drbd/drbd_polymorph_printk.h:104:2: note: expanded from macro 'drbd_err'
drbd_printk(KERN_ERR, device, fmt, ## args)
^
drivers/block/drbd/drbd_polymorph_printk.h:65:4: note: expanded from macro 'drbd_printk'
__drbd_printk_if_same_type(obj, drbd_device, level, fmt, ## args), \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
--
>> drivers/block/drbd/drbd_receiver.c:416:7: warning: expression result unused [-Wunused-value]
if (!expect(!(peer_req->flags & EE_CALL_AL_COMPLETE_IO))) {
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/block/drbd/drbd_polymorph_printk.h:128:4: note: expanded from macro 'expect'
drbd_err(device, "ASSERTION %s FAILED in %s\n", \
^
drivers/block/drbd/drbd_polymorph_printk.h:104:2: note: expanded from macro 'drbd_err'
drbd_printk(KERN_ERR, device, fmt, ## args)
^
drivers/block/drbd/drbd_polymorph_printk.h:65:4: note: expanded from macro 'drbd_printk'
__drbd_printk_if_same_type(obj, drbd_device, level, fmt, ## args), \
^
drivers/block/drbd/drbd_polymorph_printk.h:55:47: note: expanded from macro '__drbd_printk_if_same_type'
__drbd_printk_choose_cond(obj, struct_name), \
^
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:58:52: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
>> drivers/block/drbd/drbd_receiver.c:416:7: warning: expression result unused [-Wunused-value]
if (!expect(!(peer_req->flags & EE_CALL_AL_COMPLETE_IO))) {
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/block/drbd/drbd_polymorph_printk.h:128:4: note: expanded from macro 'expect'
drbd_err(device, "ASSERTION %s FAILED in %s\n", \
^
drivers/block/drbd/drbd_polymorph_printk.h:104:2: note: expanded from macro 'drbd_err'
drbd_printk(KERN_ERR, device, fmt, ## args)
^
drivers/block/drbd/drbd_polymorph_printk.h:65:4: note: expanded from macro 'drbd_printk'
__drbd_printk_if_same_type(obj, drbd_device, level, fmt, ## args), \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:58:86: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
~~~~~~~~~~~~~~~~~^~~~~
include/linux/compiler.h:69:3: note: expanded from macro '__trace_if_value'
(cond) ? \
^~~~
drivers/block/drbd/drbd_receiver.c:1876:8: warning: expression result unused [-Wunused-value]
if (!expect(data_size == 0))
~~~~~^~~~~~~~~~~~~~~~~~~~~~~
drivers/block/drbd/drbd_polymorph_printk.h:128:4: note: expanded from macro 'expect'
drbd_err(device, "ASSERTION %s FAILED in %s\n", \
^
drivers/block/drbd/drbd_polymorph_printk.h:104:2: note: expanded from macro 'drbd_err'
drbd_printk(KERN_ERR, device, fmt, ## args)
^
drivers/block/drbd/drbd_polymorph_printk.h:65:4: note: expanded from macro 'drbd_printk'
__drbd_printk_if_same_type(obj, drbd_device, level, fmt, ## args), \
^
drivers/block/drbd/drbd_polymorph_printk.h:55:47: note: expanded from macro '__drbd_printk_if_same_type'
__drbd_printk_choose_cond(obj, struct_name), \
^
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:58:52: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
drivers/block/drbd/drbd_receiver.c:1876:8: warning: expression result unused [-Wunused-value]
if (!expect(data_size == 0))
~~~~~^~~~~~~~~~~~~~~~~~~~~~~
drivers/block/drbd/drbd_polymorph_printk.h:128:4: note: expanded from macro 'expect'
drbd_err(device, "ASSERTION %s FAILED in %s\n", \
^
drivers/block/drbd/drbd_polymorph_printk.h:104:2: note: expanded from macro 'drbd_err'
drbd_printk(KERN_ERR, device, fmt, ## args)
^
drivers/block/drbd/drbd_polymorph_printk.h:65:4: note: expanded from macro 'drbd_printk'
__drbd_printk_if_same_type(obj, drbd_device, level, fmt, ## args), \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:58:86: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
~~~~~~~~~~~~~~~~~^~~~~
include/linux/compiler.h:69:3: note: expanded from macro '__trace_if_value'
(cond) ? \
^~~~
drivers/block/drbd/drbd_receiver.c:1880:8: warning: expression result unused [-Wunused-value]
if (!expect(data_size == 0))
~~~~~^~~~~~~~~~~~~~~~~~~~~~~
drivers/block/drbd/drbd_polymorph_printk.h:128:4: note: expanded from macro 'expect'
drbd_err(device, "ASSERTION %s FAILED in %s\n", \
^
drivers/block/drbd/drbd_polymorph_printk.h:104:2: note: expanded from macro 'drbd_err'
drbd_printk(KERN_ERR, device, fmt, ## args)
^
drivers/block/drbd/drbd_polymorph_printk.h:65:4: note: expanded from macro 'drbd_printk'
__drbd_printk_if_same_type(obj, drbd_device, level, fmt, ## args), \
^
drivers/block/drbd/drbd_polymorph_printk.h:55:47: note: expanded from macro '__drbd_printk_if_same_type'
__drbd_printk_choose_cond(obj, struct_name), \
^
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:58:52: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
drivers/block/drbd/drbd_receiver.c:1880:8: warning: expression result unused [-Wunused-value]
if (!expect(data_size == 0))
~~~~~^~~~~~~~~~~~~~~~~~~~~~~
drivers/block/drbd/drbd_polymorph_printk.h:128:4: note: expanded from macro 'expect'
drbd_err(device, "ASSERTION %s FAILED in %s\n", \
^
drivers/block/drbd/drbd_polymorph_printk.h:104:2: note: expanded from macro 'drbd_err'
drbd_printk(KERN_ERR, device, fmt, ## args)
^
drivers/block/drbd/drbd_polymorph_printk.h:65:4: note: expanded from macro 'drbd_printk'
__drbd_printk_if_same_type(obj, drbd_device, level, fmt, ## args), \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
--
>> drivers/block/drbd/drbd_actlog.c:871:7: warning: expression result unused [-Wunused-value]
if (!expect(sector < nr_sectors))
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/block/drbd/drbd_polymorph_printk.h:128:4: note: expanded from macro 'expect'
drbd_err(device, "ASSERTION %s FAILED in %s\n", \
^
drivers/block/drbd/drbd_polymorph_printk.h:104:2: note: expanded from macro 'drbd_err'
drbd_printk(KERN_ERR, device, fmt, ## args)
^
drivers/block/drbd/drbd_polymorph_printk.h:65:4: note: expanded from macro 'drbd_printk'
__drbd_printk_if_same_type(obj, drbd_device, level, fmt, ## args), \
^
drivers/block/drbd/drbd_polymorph_printk.h:55:47: note: expanded from macro '__drbd_printk_if_same_type'
__drbd_printk_choose_cond(obj, struct_name), \
^
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:58:52: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
>> drivers/block/drbd/drbd_actlog.c:871:7: warning: expression result unused [-Wunused-value]
if (!expect(sector < nr_sectors))
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/block/drbd/drbd_polymorph_printk.h:128:4: note: expanded from macro 'expect'
drbd_err(device, "ASSERTION %s FAILED in %s\n", \
^
drivers/block/drbd/drbd_polymorph_printk.h:104:2: note: expanded from macro 'drbd_err'
drbd_printk(KERN_ERR, device, fmt, ## args)
^
drivers/block/drbd/drbd_polymorph_printk.h:65:4: note: expanded from macro 'drbd_printk'
__drbd_printk_if_same_type(obj, drbd_device, level, fmt, ## args), \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:58:86: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
~~~~~~~~~~~~~~~~~^~~~~
include/linux/compiler.h:69:3: note: expanded from macro '__trace_if_value'
(cond) ? \
^~~~
drivers/block/drbd/drbd_actlog.c:873:7: warning: expression result unused [-Wunused-value]
if (!expect(esector < nr_sectors))
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/block/drbd/drbd_polymorph_printk.h:128:4: note: expanded from macro 'expect'
drbd_err(device, "ASSERTION %s FAILED in %s\n", \
^
drivers/block/drbd/drbd_polymorph_printk.h:104:2: note: expanded from macro 'drbd_err'
drbd_printk(KERN_ERR, device, fmt, ## args)
^
drivers/block/drbd/drbd_polymorph_printk.h:65:4: note: expanded from macro 'drbd_printk'
__drbd_printk_if_same_type(obj, drbd_device, level, fmt, ## args), \
^
drivers/block/drbd/drbd_polymorph_printk.h:55:47: note: expanded from macro '__drbd_printk_if_same_type'
__drbd_printk_choose_cond(obj, struct_name), \
^
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:58:52: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
^~~~
drivers/block/drbd/drbd_actlog.c:873:7: warning: expression result unused [-Wunused-value]
if (!expect(esector < nr_sectors))
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/block/drbd/drbd_polymorph_printk.h:128:4: note: expanded from macro 'expect'
drbd_err(device, "ASSERTION %s FAILED in %s\n", \
^
drivers/block/drbd/drbd_polymorph_printk.h:104:2: note: expanded from macro 'drbd_err'
drbd_printk(KERN_ERR, device, fmt, ## args)
^
drivers/block/drbd/drbd_polymorph_printk.h:65:4: note: expanded from macro 'drbd_printk'
__drbd_printk_if_same_type(obj, drbd_device, level, fmt, ## args), \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler.h:56:47: note: expanded from macro 'if'
#define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:58:86: note: expanded from macro '__trace_if_var'
#define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
~~~~~~~~~~~~~~~~~^~~~~
include/linux/compiler.h:69:3: note: expanded from macro '__trace_if_value'
(cond) ? \
^~~~
4 warnings generated.
..
vim +451 drivers/block/drbd/drbd_bitmap.c
b411b3637fa71fc Philipp Reisner 2009-09-25 448
b30ab7913b0a7b1 Andreas Gruenbacher 2011-07-03 449 sector_t drbd_bm_capacity(struct drbd_device *device)
b411b3637fa71fc Philipp Reisner 2009-09-25 450 {
b30ab7913b0a7b1 Andreas Gruenbacher 2011-07-03 @451 if (!expect(device->bitmap))
841ce241fa35504 Andreas Gruenbacher 2010-12-15 452 return 0;
b30ab7913b0a7b1 Andreas Gruenbacher 2011-07-03 453 return device->bitmap->bm_dev_capacity;
b411b3637fa71fc Philipp Reisner 2009-09-25 454 }
b411b3637fa71fc Philipp Reisner 2009-09-25 455
:::::: The code at line 451 was first introduced by commit
:::::: b30ab7913b0a7b1d3b1091c8cb3abb1a9f1e0824 drbd: Rename "mdev" to "device"
:::::: TO: Andreas Gruenbacher <agruen@linbit.com>
:::::: CC: Philipp Reisner <philipp.reisner@linbit.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2023-05-26 19:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-26 19:58 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-06-29 11:52 drivers/block/drbd/drbd_bitmap.c:451:7: warning: expression result unused kernel test robot
2023-02-26 22:09 kernel test robot
2023-01-16 12:15 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=202305270319.WZP0J28B-lkp@intel.com \
--to=lkp@intel.com \
--cc=axboe@kernel.dk \
--cc=christoph.boehmwalder@linbit.com \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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