Skip to content

Commit 74acfa9

Browse files
jinpuwangaxboe
authored andcommitted
block/rnbd: Select SG_POOL for RNBD_CLIENT
lkp reboot following build error: drivers/block/rnbd/rnbd-clt.c: In function 'rnbd_softirq_done_fn': >> drivers/block/rnbd/rnbd-clt.c:387:2: error: implicit declaration of function 'sg_free_table_chained' [-Werror=implicit-function-declaration] 387 | sg_free_table_chained(&iu->sgt, RNBD_INLINE_SG_CNT); | ^~~~~~~~~~~~~~~~~~~~~ The reason is CONFIG_SG_POOL is not enabled in the config, to avoid such failure, select SG_POOL in Kconfig for RNBD_CLIENT. Fixes: 5a1328d ("block/rnbd-clt: Dynamically allocate sglist for rnbd_iu") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Jack Wang <jinpu.wang@cloud.ionos.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 2d2f6f1 commit 74acfa9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/block/rnbd/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ config BLK_DEV_RNBD_CLIENT
77
tristate "RDMA Network Block Device driver client"
88
depends on INFINIBAND_RTRS_CLIENT
99
select BLK_DEV_RNBD
10+
select SG_POOL
1011
help
1112
RNBD client is a network block device driver using rdma transport.
1213

0 commit comments

Comments
 (0)