tree:
https://git.kernel.org/pub/scm/linux/kernel/git/snitzer/linux.git wip
head: 7defd0da9dd27ae6261617d0518d8b6c421703d1
commit: 7defd0da9dd27ae6261617d0518d8b6c421703d1 [30/30] dm: simplify target code
conditional on CONFIG_BLK_DEV_ZONED
config: x86_64-randconfig-s022-20210209 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-215-g0fb77bb6-dirty
#
https://git.kernel.org/pub/scm/linux/kernel/git/snitzer/linux.git/commit/...
git remote add snitzer
https://git.kernel.org/pub/scm/linux/kernel/git/snitzer/linux.git
git fetch --no-tags snitzer wip
git checkout 7defd0da9dd27ae6261617d0518d8b6c421703d1
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> drivers/md/dm-flakey.c:487:3: error: 'struct target_type'
has no member named 'report_zones'
487 | .report_zones =
flakey_report_zones,
| ^~~~~~~~~~~~
In file included from include/uapi/linux/posix_types.h:5,
from include/uapi/linux/types.h:14,
from include/linux/types.h:6,
from include/linux/kasan-checks.h:5,
from include/asm-generic/rwonce.h:26,
from ./arch/x86/include/generated/asm/rwonce.h:1,
from include/linux/compiler.h:246,
from include/linux/export.h:43,
from include/linux/linkage.h:7,
from include/linux/fs.h:5,
from include/linux/highmem.h:5,
from include/linux/bio.h:8,
from include/linux/device-mapper.h:11,
from drivers/md/dm-flakey.c:8:
include/linux/stddef.h:8:14: warning: initialized field overwritten [-Woverride-init]
8 | #define NULL ((void *)0)
| ^
drivers/md/dm-flakey.c:473:29: note: in expansion of macro 'NULL'
473 | #define flakey_report_zones NULL
| ^~~~
drivers/md/dm-flakey.c:487:18: note: in expansion of macro
'flakey_report_zones'
487 | .report_zones = flakey_report_zones,
| ^~~~~~~~~~~~~~~~~~~
include/linux/stddef.h:8:14: note: (near initialization for
'flakey_target.name')
8 | #define NULL ((void *)0)
| ^
drivers/md/dm-flakey.c:473:29: note: in expansion of macro 'NULL'
473 | #define flakey_report_zones NULL
| ^~~~
drivers/md/dm-flakey.c:487:18: note: in expansion of macro
'flakey_report_zones'
487 | .report_zones = flakey_report_zones,
| ^~~~~~~~~~~~~~~~~~~
vim +487 drivers/md/dm-flakey.c
3407ef5262b55c Josef Bacik 2011-03-24 482
3407ef5262b55c Josef Bacik 2011-03-24 483 static struct target_type flakey_target
= {
3407ef5262b55c Josef Bacik 2011-03-24 484 .name = "flakey",
124c44546d0cbf Damien Le Moal 2017-05-08 485 .version = {1, 5, 0},
7e28f37ea16671 Satya Tangirala 2021-02-01 486 .features = DM_TARGET_ZONED_HM |
DM_TARGET_PASSES_CRYPTO,
e76239a3748c90 Christoph Hellwig 2018-10-12 @487 .report_zones = flakey_report_zones,
3407ef5262b55c Josef Bacik 2011-03-24 488 .module = THIS_MODULE,
3407ef5262b55c Josef Bacik 2011-03-24 489 .ctr = flakey_ctr,
3407ef5262b55c Josef Bacik 2011-03-24 490 .dtr = flakey_dtr,
3407ef5262b55c Josef Bacik 2011-03-24 491 .map = flakey_map,
a3998799fb4df0 Mike Snitzer 2011-08-02 492 .end_io = flakey_end_io,
3407ef5262b55c Josef Bacik 2011-03-24 493 .status = flakey_status,
e56f81e0b01ef4 Christoph Hellwig 2015-10-15 494 .prepare_ioctl = flakey_prepare_ioctl,
3407ef5262b55c Josef Bacik 2011-03-24 495 .iterate_devices =
flakey_iterate_devices,
3407ef5262b55c Josef Bacik 2011-03-24 496 };
3407ef5262b55c Josef Bacik 2011-03-24 497
:::::: The code at line 487 was first introduced by commit
:::::: e76239a3748c90a8b0e197f8f4544a8ce52f126e block: add a report_zones method
:::::: TO: Christoph Hellwig <hch(a)lst.de>
:::::: CC: Jens Axboe <axboe(a)kernel.dk>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org