[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <948808.1731950408@warthog.procyon.org.uk>
Date: Mon, 18 Nov 2024 17:20:08 +0000
From: David Howells <dhowells@...hat.com>
To: Nathan Chancellor <nathan@...nel.org>
Cc: dhowells@...hat.com, Christian Brauner <brauner@...nel.org>,
Steve French <smfrench@...il.com>,
Matthew Wilcox <willy@...radead.org>,
Jeff Layton <jlayton@...nel.org>,
Gao Xiang <hsiangkao@...ux.alibaba.com>,
Dominique Martinet <asmadeus@...ewreck.org>,
Marc Dionne <marc.dionne@...istor.com>,
Paulo Alcantara <pc@...guebit.com>,
Shyam Prasad N <sprasad@...rosoft.com>, Tom Talpey <tom@...pey.com>,
Eric Van Hensbergen <ericvh@...nel.org>,
Ilya Dryomov <idryomov@...il.com>, netfs@...ts.linux.dev,
linux-afs@...ts.infradead.org, linux-cifs@...r.kernel.org,
linux-nfs@...r.kernel.org, ceph-devel@...r.kernel.org,
v9fs@...ts.linux.dev, linux-erofs@...ts.ozlabs.org,
linux-fsdevel@...r.kernel.org, linux-mm@...ck.org,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v4 28/33] netfs: Change the read result collector to only use one work item
Nathan Chancellor <nathan@...nel.org> wrote:
> This change as commit 1bd9011ee163 ("netfs: Change the read result
> collector to only use one work item") in next-20241114 causes a clang
> warning:
>
> fs/netfs/read_retry.c:235:20: error: variable 'subreq' is uninitialized when used here [-Werror,-Wuninitialized]
> 235 | if (list_is_last(&subreq->rreq_link, &stream->subrequests))
> | ^~~~~~
> fs/netfs/read_retry.c:28:36: note: initialize the variable 'subreq' to silence this warning
> 28 | struct netfs_io_subrequest *subreq;
> | ^
> | = NULL
>
> May be a shadowing issue, as adding KCFLAGS=-Wshadow shows:
Yep. I'll remove both shadowing variables (there's also one at line 45 in the
bit that deals with the non-renegotiation case) and use the outermost one.
Thanks,
David
Powered by blists - more mailing lists