[ebiggers:wip-blk-crypto-cleanup 5/6] block/blk-integrity.c:412:24: error: 'struct request_queue' has no member named 'ksm'

From: kernel test robot
Date: Fri Sep 10 2021 - 11:42:10 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git wip-blk-crypto-cleanup
head: 830b1ca866c2329b3f40b5910adab46823c27ccf
commit: 74a73f1cda07f0e35eecd61ce405a8c5c05ef19a [5/6] blk-crypto: rename blk_keyslot_manager to blk_crypto_profile
config: arc-randconfig-r032-20210910 (attached as .config)
compiler: arceb-elf-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/ebiggers/linux.git/commit/?id=74a73f1cda07f0e35eecd61ce405a8c5c05ef19a
git remote add ebiggers https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git
git fetch --no-tags ebiggers wip-blk-crypto-cleanup
git checkout 74a73f1cda07f0e35eecd61ce405a8c5c05ef19a
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

block/blk-integrity.c: In function 'blk_integrity_register':
>> block/blk-integrity.c:412:24: error: 'struct request_queue' has no member named 'ksm'
412 | if (disk->queue->ksm) {
| ^~
>> block/blk-integrity.c:414:17: error: implicit declaration of function 'blk_ksm_unregister'; did you mean 'class_unregister'? [-Werror=implicit-function-declaration]
414 | blk_ksm_unregister(disk->queue);
| ^~~~~~~~~~~~~~~~~~
| class_unregister
cc1: all warnings being treated as errors


vim +412 block/blk-integrity.c

4125a09b0a0d57 Dan Williams 2015-10-21 385
7ba1ba12eeef0a Martin K. Petersen 2008-06-30 386 /**
7ba1ba12eeef0a Martin K. Petersen 2008-06-30 387 * blk_integrity_register - Register a gendisk as being integrity-capable
7ba1ba12eeef0a Martin K. Petersen 2008-06-30 388 * @disk: struct gendisk pointer to make integrity-aware
25520d55cdb6ee Martin K. Petersen 2015-10-21 389 * @template: block integrity profile to register
7ba1ba12eeef0a Martin K. Petersen 2008-06-30 390 *
25520d55cdb6ee Martin K. Petersen 2015-10-21 391 * Description: When a device needs to advertise itself as being able to
25520d55cdb6ee Martin K. Petersen 2015-10-21 392 * send/receive integrity metadata it must use this function to register
25520d55cdb6ee Martin K. Petersen 2015-10-21 393 * the capability with the block layer. The template is a blk_integrity
25520d55cdb6ee Martin K. Petersen 2015-10-21 394 * struct with values appropriate for the underlying hardware. See
898bd37a92063e Mauro Carvalho Chehab 2019-04-18 395 * Documentation/block/data-integrity.rst.
7ba1ba12eeef0a Martin K. Petersen 2008-06-30 396 */
25520d55cdb6ee Martin K. Petersen 2015-10-21 397 void blk_integrity_register(struct gendisk *disk, struct blk_integrity *template)
7ba1ba12eeef0a Martin K. Petersen 2008-06-30 398 {
ac6fc48c9fb7d3 Dan Williams 2015-10-21 399 struct blk_integrity *bi = &disk->queue->integrity;
7ba1ba12eeef0a Martin K. Petersen 2008-06-30 400
25520d55cdb6ee Martin K. Petersen 2015-10-21 401 bi->flags = BLK_INTEGRITY_VERIFY | BLK_INTEGRITY_GENERATE |
25520d55cdb6ee Martin K. Petersen 2015-10-21 402 template->flags;
2859323e35ab5f Mike Snitzer 2017-04-22 403 bi->interval_exp = template->interval_exp ? :
2859323e35ab5f Mike Snitzer 2017-04-22 404 ilog2(queue_logical_block_size(disk->queue));
4125a09b0a0d57 Dan Williams 2015-10-21 405 bi->profile = template->profile ? template->profile : &nop_profile;
7ba1ba12eeef0a Martin K. Petersen 2008-06-30 406 bi->tuple_size = template->tuple_size;
7ba1ba12eeef0a Martin K. Petersen 2008-06-30 407 bi->tag_size = template->tag_size;
7ba1ba12eeef0a Martin K. Petersen 2008-06-30 408
1cb039f3dc1619 Christoph Hellwig 2020-09-24 409 blk_queue_flag_set(QUEUE_FLAG_STABLE_WRITES, disk->queue);
d145dc23030bbf Satya Tangirala 2020-05-14 410
d145dc23030bbf Satya Tangirala 2020-05-14 411 #ifdef CONFIG_BLK_INLINE_ENCRYPTION
d145dc23030bbf Satya Tangirala 2020-05-14 @412 if (disk->queue->ksm) {
d145dc23030bbf Satya Tangirala 2020-05-14 413 pr_warn("blk-integrity: Integrity and hardware inline encryption are not supported together. Disabling hardware inline encryption.\n");
d145dc23030bbf Satya Tangirala 2020-05-14 @414 blk_ksm_unregister(disk->queue);
d145dc23030bbf Satya Tangirala 2020-05-14 415 }
d145dc23030bbf Satya Tangirala 2020-05-14 416 #endif
7ba1ba12eeef0a Martin K. Petersen 2008-06-30 417 }
7ba1ba12eeef0a Martin K. Petersen 2008-06-30 418 EXPORT_SYMBOL(blk_integrity_register);
7ba1ba12eeef0a Martin K. Petersen 2008-06-30 419

:::::: The code at line 412 was first introduced by commit
:::::: d145dc23030bbf2de3a8ca5e0c29c2e568f69737 block: Make blk-integrity preclude hardware inline encryption

:::::: TO: Satya Tangirala <satyat@xxxxxxxxxx>
:::::: CC: Jens Axboe <axboe@xxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip