From: Zhang Xiaoxu Date: Wed, 7 Apr 2021 04:08:07 +0000 (+0900) Subject: cifsd: Select SG_POOL for SMB_SERVER_SMBDIRECT X-Git-Tag: accepted/tizen/unified/20230118.172025~6553^2~46 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ab777453f80341f0eb2aa1b569523636708f5d6;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Namjae Jeon Signed-off-by: Steve French --- diff --git a/fs/cifsd/Kconfig b/fs/cifsd/Kconfig index d1ac53c..b94cf11 100644 --- a/fs/cifsd/Kconfig +++ b/fs/cifsd/Kconfig @@ -43,6 +43,7 @@ config SMB_SERVER config SMB_SERVER_SMBDIRECT bool "Support for SMB Direct protocol" depends on SMB_SERVER=m && INFINIBAND && INFINIBAND_ADDR_TRANS || SMB_SERVER=y && INFINIBAND=y && INFINIBAND_ADDR_TRANS=y + select SG_POOL default n help