mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
74acfa996b
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: 5a1328d0c3
("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>
30 lines
782 B
Plaintext
30 lines
782 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
config BLK_DEV_RNBD
|
|
bool
|
|
|
|
config BLK_DEV_RNBD_CLIENT
|
|
tristate "RDMA Network Block Device driver client"
|
|
depends on INFINIBAND_RTRS_CLIENT
|
|
select BLK_DEV_RNBD
|
|
select SG_POOL
|
|
help
|
|
RNBD client is a network block device driver using rdma transport.
|
|
|
|
RNBD client allows for mapping of a remote block devices over
|
|
RTRS protocol from a target system where RNBD server is running.
|
|
|
|
If unsure, say N.
|
|
|
|
config BLK_DEV_RNBD_SERVER
|
|
tristate "RDMA Network Block Device driver server"
|
|
depends on INFINIBAND_RTRS_SERVER
|
|
select BLK_DEV_RNBD
|
|
help
|
|
RNBD server is the server side of RNBD using rdma transport.
|
|
|
|
RNBD server allows for exporting local block devices to a remote client
|
|
over RTRS protocol.
|
|
|
|
If unsure, say N.
|