Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: Naresh Kamboju <naresh.kamboju@linaro.org>
To: open list <linux-kernel@vger.kernel.org>,
	lkft-triage@lists.linaro.org,
	 clang-built-linux <llvm@lists.linux.dev>
Cc: Nathan Chancellor <nathan@kernel.org>,
	Nick Desaulniers <ndesaulniers@google.com>,
	 Anders Roxell <anders.roxell@linaro.org>,
	Dan Carpenter <dan.carpenter@linaro.org>,
	 Borislav Petkov <bp@suse.de>, Borislav Petkov <bp@alien8.de>,
	Ingo Molnar <mingo@kernel.org>
Subject: clang: arch/x86/boot/printf.c:257:3: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]
Date: Fri, 17 May 2024 13:00:25 +0200	[thread overview]
Message-ID: <CA+G9fYuyPFBVyqqg0RVhaz4c0S+H4TMm1apxgwyTUOkge9NY7A@mail.gmail.com> (raw)

The following x86 build failed on Linux next-20240517 tag due to following
warnings / errors only seen with clang builds.

Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>

Build errors:
----
arch/x86/boot/printf.c:257:3: error: unannotated fall-through between
switch labels [-Werror,-Wimplicit-fallthrough]
  257 |                 case 'u':
      |                 ^
arch/x86/boot/printf.c:257:3: note: insert 'break;' to avoid fall-through
  257 |                 case 'u':
      |                 ^
      |                 break;
1 error generated.

The suspected patch,
x86/boot: Add a fallthrough annotation

metadata:
---
  git_describe: next-20240517
  git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next
  git_sha: c75962170e49f24399141276ae119e6a879f36dc
  git_short_log: c75962170e49 ("Add linux-next specific files for 20240517")
  build_name: clang-18-lkftconfig


Links:
 - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20240517/testrun/23951572/suite/build/test/clang-18-lkftconfig/log
 - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20240517/testrun/23951572/suite/build/test/clang-18-lkftconfig/details/
 - https://storage.tuxsuite.com/public/linaro/lkft/builds/2gZwb1q4GHgVCuOfQIMCJ6tqMFn/


--
Linaro LKFT
https://lkft.linaro.org

             reply	other threads:[~2024-05-17 11:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-17 11:00 Naresh Kamboju [this message]
2024-05-17 14:56 ` clang: arch/x86/boot/printf.c:257:3: error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough] Nathan Chancellor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+G9fYuyPFBVyqqg0RVhaz4c0S+H4TMm1apxgwyTUOkge9NY7A@mail.gmail.com \
    --to=naresh.kamboju@linaro.org \
    --cc=anders.roxell@linaro.org \
    --cc=bp@alien8.de \
    --cc=bp@suse.de \
    --cc=dan.carpenter@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkft-triage@lists.linaro.org \
    --cc=llvm@lists.linux.dev \
    --cc=mingo@kernel.org \
    --cc=nathan@kernel.org \
    --cc=ndesaulniers@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).