From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============0721002056530703145==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [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' Date: Sun, 16 Jan 2022 22:06:29 +0800 Message-ID: <202201162237.iIGwtk5T-lkp@intel.com> List-Id: --===============0721002056530703145== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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/20220= 116/202201162237.iIGwtk5T-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 650fc4= 0b6d8d9a5869b4fca525d5f237b0ee2803) reproduce (this is a W=3D1 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=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Dhexagon SHELL=3D/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/block/rnbd/rnbd-clt.c:1362:2: error: implicit declaration of fun= ction 'blk_queue_max_write_same_sectors' [-Werror,-Wimplicit-function-decla= ration] 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 fun= ction '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_pag= e'? 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(de= v->queue, dev->logical_block_size); f7a7a5c228d45e Jack Wang 2020-05-11 1360 blk_queue_physical_block_size(d= ev->queue, dev->physical_block_size); f7a7a5c228d45e Jack Wang 2020-05-11 1361 blk_queue_max_hw_sectors(dev->q= ueue, dev->max_hw_sectors); f7a7a5c228d45e Jack Wang 2020-05-11 @1362 blk_queue_max_write_same_sector= s(dev->queue, f7a7a5c228d45e Jack Wang 2020-05-11 1363 dev->max_write_same_sector= s); 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(d= ev->queue, dev->max_discard_sectors); f7a7a5c228d45e Jack Wang 2020-05-11 1372 dev->queue->limits.discard_gran= ularity =3D dev->discard_granularity; f7a7a5c228d45e Jack Wang 2020-05-11 1373 dev->queue->limits.discard_alig= nment =3D 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_S= AME_COMP, dev->queue); f7a7a5c228d45e Jack Wang 2020-05-11 1380 blk_queue_flag_set(QUEUE_FLAG_S= AME_FORCE, dev->queue); f7a7a5c228d45e Jack Wang 2020-05-11 1381 blk_queue_max_segments(dev->que= ue, dev->max_segments); f7a7a5c228d45e Jack Wang 2020-05-11 1382 blk_queue_io_opt(dev->queue, de= v->sess->max_io_size); f7a7a5c228d45e Jack Wang 2020-05-11 1383 blk_queue_virt_boundary(dev->qu= eue, SZ_4K - 1); 512c781fd28cb4 Gioh Kim 2020-12-10 1384 blk_queue_write_cache(dev->queu= e, 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 fu= nctionality :::::: TO: Jack Wang :::::: CC: Jason Gunthorpe --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============0721002056530703145==--