From: Tom Rix <trix@redhat.com>
Building with clang 13 reports this error
rvu_nix.c:4600:7: error: variable 'val' is used uninitialized whenever
'if' condition is false
if (!is_rvu_otx2(rvu))
^~~~~~~~~~~~~~~~~
So initialize val.
Fixes: 4b5a3ab17c6c ("octeontx2-af: Hardware configuration for inline IPsec")
Signed-off-by: Tom Rix <trix@redhat.com>
---
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Nick Desaulniers <ndesaulniers@google.com> Date: 2021-09-21 02:05:35
On Mon, Sep 20, 2021 at 9:54 AM [off-list ref] wrote:
From: Tom Rix <trix@redhat.com>
Building with clang 13 reports this error
rvu_nix.c:4600:7: error: variable 'val' is used uninitialized whenever
'if' condition is false
if (!is_rvu_otx2(rvu))
^~~~~~~~~~~~~~~~~
So initialize val.
Fixes: 4b5a3ab17c6c ("octeontx2-af: Hardware configuration for inline IPsec")
Signed-off-by: Tom Rix <trix@redhat.com>
Thanks for the patch, but it looks like Colin beat you to the punch.
In linux-next, I see:
commit d853f1d3c900 ("octeontx2-af: Fix uninitialized variable val")
From: Tom Rix <trix@redhat.com> Date: 2021-09-20 23:10:27
On 9/20/21 3:22 PM, Nick Desaulniers wrote:
On Mon, Sep 20, 2021 at 9:54 AM [off-list ref] wrote:
quoted
From: Tom Rix <trix@redhat.com>
Building with clang 13 reports this error
rvu_nix.c:4600:7: error: variable 'val' is used uninitialized whenever
'if' condition is false
if (!is_rvu_otx2(rvu))
^~~~~~~~~~~~~~~~~
So initialize val.
Fixes: 4b5a3ab17c6c ("octeontx2-af: Hardware configuration for inline IPsec")
Signed-off-by: Tom Rix <trix@redhat.com>
Thanks for the patch, but it looks like Colin beat you to the punch.
In linux-next, I see:
commit d853f1d3c900 ("octeontx2-af: Fix uninitialized variable val")
No worries, those allyesconfig breaks are easy to find :)
Tom