* Re: [PATCH 8/8] btrfs: turn on -Wmaybe-uninitialized
[not found] ` <Y6kgR4qnb23UdAEX@dev-arch.thelio-3990X>
@ 2022-12-26 14:04 ` Naresh Kamboju
2023-01-02 12:42 ` David Sterba
0 siblings, 1 reply; 2+ messages in thread
From: Naresh Kamboju @ 2022-12-26 14:04 UTC (permalink / raw)
To: Nathan Chancellor, open list, lkft-triage
Cc: Josef Bacik, linux-btrfs, kernel-team, llvm, Filipe Manana, David Sterba
On Mon, 26 Dec 2022 at 09:47, Nathan Chancellor <nathan@kernel.org> wrote:
>
> On Fri, Dec 16, 2022 at 03:15:58PM -0500, Josef Bacik wrote:
> > We had a recent bug that would have been caught by a newer compiler with
> > -Wmaybe-uninitialized and would have saved us a month of failing tests
> > that I didn't have time to investigate.
> >
> > Signed-off-by: Josef Bacik <josef@toxicpanda.com>
>
> This needs to be moved to the condflags section, as
> -Wmaybe-uninitialized is a GCC only flag, so this breaks our builds with
> clang on next-20221226:
>
> error: unknown warning option '-Wmaybe-uninitialized'; did you mean '-Wuninitialized'? [-Werror,-Wunknown-warning-option]
LKFT test farm also noticed these build breaks with clang on next-20221226.
Regressions found on arm64, riscv, s390 and powerpc
- build/clang-lkftconfig
- build/clang-15-lkftconfig
- build/clang-15-defconfig-40bc7ee5
- build/clang-15-defconfig
- build/clang-nightly-defconfig
- build/clang-15-lkftconfig-compat
- build/clang-nightly-defconfig-40bc7ee5
- build/clang-nightly-lkftconfig
make --silent --keep-going --jobs=8
O=/home/tuxbuild/.cache/tuxmake/builds/1/build LLVM=1 LLVM_IAS=1
ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- 'HOSTCC=sccache clang'
'CC=sccache clang'
error: unknown warning option '-Wmaybe-uninitialized'; did you mean
'-Wuninitialized'? [-Werror,-Wunknown-warning-option]
make[4]: *** [/builds/linux/scripts/Makefile.build:252:
fs/btrfs/super.o] Error 1
> I can send a patch on Tuesday unless the original commit can be amended.
ref:
https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20221226/testrun/13818773/suite/build/test/clang-15-defconfig/details/
- Naresh
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 8/8] btrfs: turn on -Wmaybe-uninitialized
2022-12-26 14:04 ` [PATCH 8/8] btrfs: turn on -Wmaybe-uninitialized Naresh Kamboju
@ 2023-01-02 12:42 ` David Sterba
0 siblings, 0 replies; 2+ messages in thread
From: David Sterba @ 2023-01-02 12:42 UTC (permalink / raw)
To: Naresh Kamboju
Cc: Nathan Chancellor, open list, lkft-triage, Josef Bacik,
linux-btrfs, kernel-team, llvm, Filipe Manana, David Sterba
On Mon, Dec 26, 2022 at 07:34:51PM +0530, Naresh Kamboju wrote:
> On Mon, 26 Dec 2022 at 09:47, Nathan Chancellor <nathan@kernel.org> wrote:
> >
> > On Fri, Dec 16, 2022 at 03:15:58PM -0500, Josef Bacik wrote:
> > > We had a recent bug that would have been caught by a newer compiler with
> > > -Wmaybe-uninitialized and would have saved us a month of failing tests
> > > that I didn't have time to investigate.
> > >
> > > Signed-off-by: Josef Bacik <josef@toxicpanda.com>
> >
> > This needs to be moved to the condflags section, as
> > -Wmaybe-uninitialized is a GCC only flag, so this breaks our builds with
> > clang on next-20221226:
> >
> > error: unknown warning option '-Wmaybe-uninitialized'; did you mean '-Wuninitialized'? [-Werror,-Wunknown-warning-option]
>
> LKFT test farm also noticed these build breaks with clang on next-20221226.
Fixed in our branch and for-next snapshot updated so the warnings will
be fixed once linux-next resumes.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-01-02 12:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <cover.1671221596.git.josef@toxicpanda.com>
[not found] ` <1d9deaa274c13665eca60dee0ccbc4b56b506d06.1671221596.git.josef@toxicpanda.com>
[not found] ` <Y6kgR4qnb23UdAEX@dev-arch.thelio-3990X>
2022-12-26 14:04 ` [PATCH 8/8] btrfs: turn on -Wmaybe-uninitialized Naresh Kamboju
2023-01-02 12:42 ` David Sterba
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®