]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cifsd: Select SG_POOL for SMB_SERVER_SMBDIRECT
authorZhang Xiaoxu <zhangxiaoxu5@huawei.com>
Wed, 7 Apr 2021 04:08:07 +0000 (13:08 +0900)
committerNamjae Jeon <namjae.jeon@samsung.com>
Mon, 12 Apr 2021 05:32:40 +0000 (14:32 +0900)
commitd62899980df75b0c20884ad03ddeccee5b28eff1
tree1750634807ce1b028d92f95603e8a3d94791d172
parentb7b78628ef9a45a8bb0d61e4cac8461d8154f304
cifsd: Select SG_POOL for SMB_SERVER_SMBDIRECT

hulk-robot following build error:
 fs/cifsd/transport_rdma.c: In function 'read_write_done':
 fs/cifsd/transport_rdma.c:1297:2: error: implicit declaration of
function 'sg_free_table_chained'
[-Werror=implicit-function-declaration]
  1297 |  sg_free_table_chained(&msg->sgt, SG_CHUNK_SIZE);

The reason is CONFIG_SG_POOL is not enabled in the config, to
avoid such failure, select SG_POOL in Kconfig for SMB_SERVER_SMBDIRECT.

Signed-off-by: Zhang Xiaoxu <zhangxiaoxu5@huawei.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifsd/Kconfig