]> git.baikalelectronics.ru Git - kernel.git/commit
block/rnbd: Select SG_POOL for RNBD_CLIENT
authorJack Wang <jinpu.wang@cloud.ionos.com>
Fri, 8 Jan 2021 14:36:30 +0000 (15:36 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 8 Jan 2021 15:19:18 +0000 (08:19 -0700)
commitd1be9cfad4a181ea1eb3dddd617d23e114bbb0c2
tree4209e144f27078c2b29acf1813e7413eff5c7893
parent2ce7f0aaa4553ac2a85ed580c3c0584a4dea9a4f
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: 3d67799ff926 ("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>
drivers/block/rnbd/Kconfig