From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: Re: linux-next: build warning after merge of the rdma tree Date: Wed, 25 Jul 2018 21:05:03 -0600 Message-ID: <20180726030503.GA18170@mellanox.com> References: <20180726105553.00a36e3c@canb.auug.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20180726105553.00a36e3c@canb.auug.org.au> Sender: linux-kernel-owner@vger.kernel.org To: Stephen Rothwell Cc: Doug Ledford , Linux-Next Mailing List , Linux Kernel Mailing List , Bart Van Assche , Chuck Lever List-Id: linux-next.vger.kernel.org On Thu, Jul 26, 2018 at 10:55:53AM +1000, Stephen Rothwell wrote: > Hi all, > > After merging the rdma tree, today's linux-next build (powerpc > ppc64_defconfig) produced this warning: > > net/sunrpc/xprtrdma/svc_rdma_rw.c: In function 'svc_rdma_post_chunk_ctxt': > net/sunrpc/xprtrdma/svc_rdma_rw.c:350:5: warning: 'bad_wr' may be used uninitialized in this function [-Wmaybe-uninitialized] > if (bad_wr != first_wr) > ^ Huh. I'm quite surprised 0-day build service didn't warn on this. > Introduced by commit > > ed288d74a9e5 ("net/xprtrdma: Simplify ib_post_(send|recv|srq_recv)() calls") > > This is an actual problem. Yes, for sure. Bart? Thanks, Jason