[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211103131901.28695-1-guozhengkui@vivo.com>
Date: Wed, 3 Nov 2021 21:19:01 +0800
From: Guo Zhengkui <guozhengkui@...o.com>
To: Namjae Jeon <linkinjeon@...nel.org>,
Sergey Senozhatsky <senozhatsky@...omium.org>,
Steve French <sfrench@...ba.org>,
Hyunchul Lee <hyc.lee@...il.com>, linux-cifs@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: kernel@...o.com, Guo Zhengkui <guozhengkui@...o.com>
Subject: [PATCH] ksmbd: fix flexible_array.cocci warnings
Fix following coccicheck warning:
./fs/ksmbd/transport_rdma.c:201:20-27: WARNING use flexible-array
member instead.
Signed-off-by: Guo Zhengkui <guozhengkui@...o.com>
---
fs/ksmbd/transport_rdma.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ksmbd/transport_rdma.c b/fs/ksmbd/transport_rdma.c
index 6330dfc302ff..ca62060acd2b 100644
--- a/fs/ksmbd/transport_rdma.c
+++ b/fs/ksmbd/transport_rdma.c
@@ -198,7 +198,7 @@ struct smb_direct_rdma_rw_msg {
struct completion *completion;
struct rdma_rw_ctx rw_ctx;
struct sg_table sgt;
- struct scatterlist sg_list[0];
+ struct scatterlist sg_list[];
};
static inline int get_buf_page_count(void *buf, int size)
--
2.20.1
Powered by blists - more mailing lists