lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CADYN=9L_Sgd8HTkhtM5t0eoN7ict8zX6fRCJsVvYcgp9H_QsSg@mail.gmail.com>
Date:   Thu, 11 Aug 2022 14:35:08 +0200
From:   Anders Roxell <anders.roxell@...aro.org>
To:     Michael Ellerman <mpe@...erman.id.au>
Cc:     nathan@...nel.org, ndesaulniers@...gle.com, llvm@...ts.linux.dev,
        linuxppc-dev@...ts.ozlabs.org, linux-kernel@...r.kernel.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

On Thu, 11 Aug 2022 at 11:41, Michael Ellerman <mpe@...erman.id.au> wrote:
>
> 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?

clang-13, clang-14 and clang-nightly, configs are cell_defconfig and
maple_defconfig

I'm building with tuxmake [1] like this:
$ tuxmake --runtime podman --target-arch powerpc --toolchain clang-14
--kconfig cell_defconfig

Cheers,
Anders
[1] https://tuxmake.org/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ