All of lore.kernel.org
 help / color / mirror / Atom feed
* [snitzer:wip 30/30] drivers/md/dm-linear.c:234:3: error: 'struct target_type' has no member named 'report_zones'
@ 2021-02-11  3:52 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-11  3:52 UTC (permalink / raw)
  To: kbuild-all

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

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: m68k-defconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.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/snitzer/linux.git/commit/?id=7defd0da9dd27ae6261617d0518d8b6c421703d1
        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
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k 

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 >>):

>> drivers/md/dm-linear.c:234:3: error: 'struct target_type' has no member named 'report_zones'
     234 |  .report_zones = linear_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/list.h:5,
                    from include/linux/wait.h:7,
                    from include/linux/wait_bit.h:8,
                    from include/linux/fs.h:6,
                    from drivers/md/dm.h:13,
                    from drivers/md/dm-linear.c:7:
   include/linux/stddef.h:8:14: warning: initialized field overwritten [-Woverride-init]
       8 | #define NULL ((void *)0)
         |              ^
   drivers/md/dm-linear.c:150:29: note: in expansion of macro 'NULL'
     150 | #define linear_report_zones NULL
         |                             ^~~~
   drivers/md/dm-linear.c:234:18: note: in expansion of macro 'linear_report_zones'
     234 |  .report_zones = linear_report_zones,
         |                  ^~~~~~~~~~~~~~~~~~~
   include/linux/stddef.h:8:14: note: (near initialization for 'linear_target.name')
       8 | #define NULL ((void *)0)
         |              ^
   drivers/md/dm-linear.c:150:29: note: in expansion of macro 'NULL'
     150 | #define linear_report_zones NULL
         |                             ^~~~
   drivers/md/dm-linear.c:234:18: note: in expansion of macro 'linear_report_zones'
     234 |  .report_zones = linear_report_zones,
         |                  ^~~~~~~~~~~~~~~~~~~
--
>> drivers/md/dm-crypt.c:3584:3: error: 'struct target_type' has no member named 'report_zones'
    3584 |  .report_zones = crypt_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/list.h:5,
                    from include/linux/swait.h:5,
                    from include/linux/completion.h:12,
                    from drivers/md/dm-crypt.c:10:
   include/linux/stddef.h:8:14: warning: initialized field overwritten [-Woverride-init]
       8 | #define NULL ((void *)0)
         |              ^
   drivers/md/dm-crypt.c:3148:28: note: in expansion of macro 'NULL'
    3148 | #define crypt_report_zones NULL
         |                            ^~~~
   drivers/md/dm-crypt.c:3584:18: note: in expansion of macro 'crypt_report_zones'
    3584 |  .report_zones = crypt_report_zones,
         |                  ^~~~~~~~~~~~~~~~~~
   include/linux/stddef.h:8:14: note: (near initialization for 'crypt_target.name')
       8 | #define NULL ((void *)0)
         |              ^
   drivers/md/dm-crypt.c:3148:28: note: in expansion of macro 'NULL'
    3148 | #define crypt_report_zones NULL
         |                            ^~~~
   drivers/md/dm-crypt.c:3584:18: note: in expansion of macro 'crypt_report_zones'
    3584 |  .report_zones = crypt_report_zones,
         |                  ^~~~~~~~~~~~~~~~~~


vim +234 drivers/md/dm-linear.c

976431b02c2ef9 Dan Williams          2018-03-29  228  
^1da177e4c3f41 Linus Torvalds        2005-04-16  229  static struct target_type linear_target = {
^1da177e4c3f41 Linus Torvalds        2005-04-16  230  	.name   = "linear",
0be12c1c7fce7e Damien Le Moal        2017-05-08  231  	.version = {1, 4, 0},
6abc49468eeaad Konstantin Khlebnikov 2020-09-23  232  	.features = DM_TARGET_PASSES_INTEGRITY | DM_TARGET_NOWAIT |
7e28f37ea16671 Satya Tangirala       2021-02-01  233  		    DM_TARGET_ZONED_HM | DM_TARGET_PASSES_CRYPTO,
e76239a3748c90 Christoph Hellwig     2018-10-12 @234  	.report_zones = linear_report_zones,
^1da177e4c3f41 Linus Torvalds        2005-04-16  235  	.module = THIS_MODULE,
^1da177e4c3f41 Linus Torvalds        2005-04-16  236  	.ctr    = linear_ctr,
^1da177e4c3f41 Linus Torvalds        2005-04-16  237  	.dtr    = linear_dtr,
^1da177e4c3f41 Linus Torvalds        2005-04-16  238  	.map    = linear_map,
^1da177e4c3f41 Linus Torvalds        2005-04-16  239  	.status = linear_status,
e56f81e0b01ef4 Christoph Hellwig     2015-10-15  240  	.prepare_ioctl = linear_prepare_ioctl,
af4874e03ed82f Mike Snitzer          2009-06-22  241  	.iterate_devices = linear_iterate_devices,
817bf402654595 Dan Williams          2017-04-12  242  	.direct_access = linear_dax_direct_access,
7e026c8c0a4200 Dan Williams          2017-05-29  243  	.dax_copy_from_iter = linear_dax_copy_from_iter,
b3a9a0c36e1f7b Dan Williams          2018-05-02  244  	.dax_copy_to_iter = linear_dax_copy_to_iter,
cdf6cdcd3b99a9 Vivek Goyal           2020-02-28  245  	.dax_zero_page_range = linear_dax_zero_page_range,
^1da177e4c3f41 Linus Torvalds        2005-04-16  246  };
^1da177e4c3f41 Linus Torvalds        2005-04-16  247  

:::::: The code at line 234 was first introduced by commit
:::::: e76239a3748c90a8b0e197f8f4544a8ce52f126e block: add a report_zones method

:::::: TO: Christoph Hellwig <hch@lst.de>
:::::: CC: Jens Axboe <axboe@kernel.dk>

---
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: 17037 bytes --]

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

only message in thread, other threads:[~2021-02-11  3:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-11  3:52 [snitzer:wip 30/30] drivers/md/dm-linear.c:234:3: error: 'struct target_type' has no member named 'report_zones' kernel test robot

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.