[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240829175411.GA22324@breakpoint.cc>
Date: Thu, 29 Aug 2024 19:54:11 +0200
From: Florian Westphal <fw@...len.de>
To: Nathan Chancellor <nathan@...nel.org>
Cc: Steffen Klassert <steffen.klassert@...unet.com>,
Herbert Xu <herbert@...dor.apana.org.au>,
Florian Westphal <fw@...len.de>, netdev@...r.kernel.org,
llvm@...ts.linux.dev, patches@...ts.linux.dev
Subject: Re: [PATCH] xfrm: policy: Restore dir assignment in
xfrm_hash_rebuild()
Nathan Chancellor <nathan@...nel.org> wrote:
> Clang warns (or errors with CONFIG_WERROR):
>
> net/xfrm/xfrm_policy.c:1286:8: error: variable 'dir' is uninitialized when used here [-Werror,-Wuninitialized]
> 1286 | if ((dir & XFRM_POLICY_MASK) == XFRM_POLICY_OUT) {
> | ^~~
> net/xfrm/xfrm_policy.c:1257:9: note: initialize the variable 'dir' to silence this warning
> 1257 | int dir;
> | ^
> | = 0
> 1 error generated.
Ugh, my bad.
Acked-by: Florian Westphal <fw@...len.de>
Powered by blists - more mailing lists