* [hch-block:delete-write-same.5 7/8] drivers/block/rnbd/rnbd-clt.c:1362:2: error: implicit declaration of function 'blk_queue_max_write_same_sectors'
@ 2022-01-16 14:06 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-01-16 14:06 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 5523 bytes --]
tree: git://git.infradead.org/users/hch/block.git delete-write-same.5
head: 5d500312cfdcd8162a0cf8c7351b0310cf458487
commit: 6f35eac1647aebeda65c4ed0b83bb2f9b5dfb156 [7/8] block: remove REQ_OP_WRITE_SAME support
config: hexagon-allyesconfig (https://download.01.org/0day-ci/archive/20220116/202201162237.iIGwtk5T-lkp(a)intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 650fc40b6d8d9a5869b4fca525d5f237b0ee2803)
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
git remote add hch-block git://git.infradead.org/users/hch/block.git
git fetch --no-tags hch-block delete-write-same.5
git checkout 6f35eac1647aebeda65c4ed0b83bb2f9b5dfb156
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash
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/block/rnbd/rnbd-clt.c:1362:2: error: implicit declaration of function 'blk_queue_max_write_same_sectors' [-Werror,-Wimplicit-function-declaration]
blk_queue_max_write_same_sectors(dev->queue,
^
drivers/block/rnbd/rnbd-clt.c:1362:2: note: did you mean 'blk_queue_max_write_zeroes_sectors'?
include/linux/blkdev.h:695:13: note: 'blk_queue_max_write_zeroes_sectors' declared here
extern void blk_queue_max_write_zeroes_sectors(struct request_queue *q,
^
1 error generated.
--
>> drivers/block/rnbd/rnbd-srv.c:562:15: error: implicit declaration of function 'bdev_write_same' [-Werror,-Wimplicit-function-declaration]
cpu_to_le32(bdev_write_same(rnbd_dev->bdev));
^
include/linux/byteorder/generic.h:88:21: note: expanded from macro 'cpu_to_le32'
#define cpu_to_le32 __cpu_to_le32
^
drivers/block/rnbd/rnbd-srv.c:562:15: note: did you mean 'bdev_write_page'?
include/linux/byteorder/generic.h:88:21: note: expanded from macro 'cpu_to_le32'
#define cpu_to_le32 __cpu_to_le32
^
include/linux/blkdev.h:1221:12: note: 'bdev_write_page' declared here
extern int bdev_write_page(struct block_device *, sector_t, struct page *,
^
1 error generated.
vim +/blk_queue_max_write_same_sectors +1362 drivers/block/rnbd/rnbd-clt.c
f7a7a5c228d45e Jack Wang 2020-05-11 1356
f7a7a5c228d45e Jack Wang 2020-05-11 1357 static void setup_request_queue(struct rnbd_clt_dev *dev)
f7a7a5c228d45e Jack Wang 2020-05-11 1358 {
f7a7a5c228d45e Jack Wang 2020-05-11 1359 blk_queue_logical_block_size(dev->queue, dev->logical_block_size);
f7a7a5c228d45e Jack Wang 2020-05-11 1360 blk_queue_physical_block_size(dev->queue, dev->physical_block_size);
f7a7a5c228d45e Jack Wang 2020-05-11 1361 blk_queue_max_hw_sectors(dev->queue, dev->max_hw_sectors);
f7a7a5c228d45e Jack Wang 2020-05-11 @1362 blk_queue_max_write_same_sectors(dev->queue,
f7a7a5c228d45e Jack Wang 2020-05-11 1363 dev->max_write_same_sectors);
f7a7a5c228d45e Jack Wang 2020-05-11 1364
f7a7a5c228d45e Jack Wang 2020-05-11 1365 /*
f7a7a5c228d45e Jack Wang 2020-05-11 1366 * we don't support discards to "discontiguous" segments
f7a7a5c228d45e Jack Wang 2020-05-11 1367 * in on request
f7a7a5c228d45e Jack Wang 2020-05-11 1368 */
f7a7a5c228d45e Jack Wang 2020-05-11 1369 blk_queue_max_discard_segments(dev->queue, 1);
f7a7a5c228d45e Jack Wang 2020-05-11 1370
f7a7a5c228d45e Jack Wang 2020-05-11 1371 blk_queue_max_discard_sectors(dev->queue, dev->max_discard_sectors);
f7a7a5c228d45e Jack Wang 2020-05-11 1372 dev->queue->limits.discard_granularity = dev->discard_granularity;
f7a7a5c228d45e Jack Wang 2020-05-11 1373 dev->queue->limits.discard_alignment = dev->discard_alignment;
f7a7a5c228d45e Jack Wang 2020-05-11 1374 if (dev->max_discard_sectors)
f7a7a5c228d45e Jack Wang 2020-05-11 1375 blk_queue_flag_set(QUEUE_FLAG_DISCARD, dev->queue);
f7a7a5c228d45e Jack Wang 2020-05-11 1376 if (dev->secure_discard)
f7a7a5c228d45e Jack Wang 2020-05-11 1377 blk_queue_flag_set(QUEUE_FLAG_SECERASE, dev->queue);
f7a7a5c228d45e Jack Wang 2020-05-11 1378
f7a7a5c228d45e Jack Wang 2020-05-11 1379 blk_queue_flag_set(QUEUE_FLAG_SAME_COMP, dev->queue);
f7a7a5c228d45e Jack Wang 2020-05-11 1380 blk_queue_flag_set(QUEUE_FLAG_SAME_FORCE, dev->queue);
f7a7a5c228d45e Jack Wang 2020-05-11 1381 blk_queue_max_segments(dev->queue, dev->max_segments);
f7a7a5c228d45e Jack Wang 2020-05-11 1382 blk_queue_io_opt(dev->queue, dev->sess->max_io_size);
f7a7a5c228d45e Jack Wang 2020-05-11 1383 blk_queue_virt_boundary(dev->queue, SZ_4K - 1);
512c781fd28cb4 Gioh Kim 2020-12-10 1384 blk_queue_write_cache(dev->queue, dev->wc, dev->fua);
f7a7a5c228d45e Jack Wang 2020-05-11 1385 }
f7a7a5c228d45e Jack Wang 2020-05-11 1386
:::::: The code at line 1362 was first introduced by commit
:::::: f7a7a5c228d45efc45d6e26a199a3ea13d2f8754 block/rnbd: client: main functionality
:::::: TO: Jack Wang <jinpu.wang@cloud.ionos.com>
:::::: CC: Jason Gunthorpe <jgg@mellanox.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-16 14:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-16 14:06 [hch-block:delete-write-same.5 7/8] drivers/block/rnbd/rnbd-clt.c:1362:2: error: implicit declaration of function 'blk_queue_max_write_same_sectors' 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.