[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87fsi3ce28.fsf@mpe.ellerman.id.au>
Date: Thu, 11 Aug 2022 19:41:35 +1000
From: Michael Ellerman <mpe@...erman.id.au>
To: Anders Roxell <anders.roxell@...aro.org>, nathan@...nel.org,
ndesaulniers@...gle.com
Cc: llvm@...ts.linux.dev, linuxppc-dev@...ts.ozlabs.org,
linux-kernel@...r.kernel.org,
Anders Roxell <anders.roxell@...aro.org>,
Arnd Bergmann <arnd@...db.de>,
Christophe Leroy <christophe.leroy@...roup.eu>
Subject: Re: [PATCHv3, resend] powerpc: mm: radix_tlb: rearrange the if-else
block
Anders Roxell <anders.roxell@...aro.org> writes:
> Clang warns:
>
> arch/powerpc/mm/book3s64/radix_tlb.c:1191:23: error: variable 'hstart' is uninitialized when used here [-Werror,-Wuninitialized]
> __tlbiel_va_range(hstart, hend, pid,
> ^~~~~~
> arch/powerpc/mm/book3s64/radix_tlb.c:1175:23: note: initialize the variable 'hstart' to silence this warning
> unsigned long hstart, hend;
> ^
> = 0
> arch/powerpc/mm/book3s64/radix_tlb.c:1191:31: error: variable 'hend' is uninitialized when used here [-Werror,-Wuninitialized]
> __tlbiel_va_range(hstart, hend, pid,
> ^~~~
> arch/powerpc/mm/book3s64/radix_tlb.c:1175:29: note: initialize the variable 'hend' to silence this warning
> unsigned long hstart, hend;
> ^
> = 0
> 2 errors generated.
Which version & config are you building?
I don't see this warning in my test builds.
cheers
Powered by blists - more mailing lists