diff mbox series

[for-rc,1/5] block/rnbd: Select SG_POOL for RNBD_CLIENT

Message ID 20210108143634.175394-2-jinpu.wang@cloud.ionos.com (mailing list archive)
State New, archived
Headers show
Series some bugfix for rnbd | expand

Commit Message

Jack Wang Jan. 8, 2021, 2:36 p.m. UTC
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: 5a1328d0c3a7 ("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>
 drivers/block/rnbd/Kconfig | 1 +
 1 file changed, 1 insertion(+)
diff mbox series


diff --git a/drivers/block/rnbd/Kconfig b/drivers/block/rnbd/Kconfig
index 4b6d3d816d1f..2ff05a0d2646 100644
--- a/drivers/block/rnbd/Kconfig
+++ b/drivers/block/rnbd/Kconfig
@@ -7,6 +7,7 @@  config BLK_DEV_RNBD_CLIENT
 	tristate "RDMA Network Block Device driver client"
 	select BLK_DEV_RNBD
+	select SG_POOL
 	  RNBD client is a network block device driver using rdma transport.