Re: linux-next: build warning after merge of the nfsd tree

From: Chuck Lever
Date: Thu May 10 2018 - 10:21:19 EST




> On May 9, 2018, at 8:42 PM, Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> wrote:
>
> Hi all,
>
> After merging the nfsd tree, today's linux-next build (powerpc
> ppc64_defconfig) produced this warning:
>
> net/sunrpc/xprtrdma/svc_rdma_transport.c: In function 'rdma_listen_handler':
> net/sunrpc/xprtrdma/svc_rdma_transport.c:299:23: warning: unused variable 'rdma' [-Wunused-variable]
> struct svcxprt_rdma *rdma = cma_id->context;
> ^~~~

Needs to be wrapped with "#if IS_ENABLED(CONFIG_SUNRPC_DEBUG)"
Would you like me to send a patch?


> Introduced by commit
>
> d1ab72afe681 ("svcrdma: Trace key RDMA API events")

--
Chuck Lever