From: Nathan Chancellor <nathan@kernel.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org, llvm@lists.linux.dev
Subject: [GIT PULL] Clang build fix for 7.1 #2
Date: Fri, 29 May 2026 14:00:55 -0700 [thread overview]
Message-ID: <20260529210055.GA2415550@ax162> (raw)
Hi Linus,
Please consider pulling this small fix to disable -Wattribute-alias for
clang in the few places it is already disabled for GCC, now that tip of
tree clang has implemented -Wattribute-alias as GCC has. If you would
prefer for this to wait until the next merge window given your recent
comments on the 7.1-rc5 announcement, I can resend later. Given how
simple it is coupled with just expanding what already exists, I figured
it was not unreasonable to send it as a fix now, especially since it is
showing up in our stable builds as well.
This has been in -next for several cycles in one form with no reported
issues but I updated it yesterday to avoid breaking the build for other
versions of clang-23 that do not have this flag implemented, as this can
be rough on vendored toolchains or people like myself that have to
bisect LLVM between releases and it was rather simple to do with another
pragma line.
Please let me know if there are any issues or objections.
Cheers,
Nathan
The following changes since commit 5d6919055dec134de3c40167a490f33c74c12581:
Linux 7.1-rc3 (2026-05-10 14:08:09 -0700)
are available in the Git repository at:
https://git.kernel.org/pub/scm/linux/kernel/git/nathan/linux.git tags/clang-fixes-7.1-2
for you to fetch changes up to 175db11786bde9061db526bf1ac5107d915f5163:
Disable -Wattribute-alias for clang-23 and newer (2026-05-28 06:51:30 -0700)
----------------------------------------------------------------
Clang build fixes for 7.1 #2
- Account for recently implemented -Wattribute-alias in clang by
disabling it in the same places it is disabled for GCC.
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
----------------------------------------------------------------
Nathan Chancellor (1):
Disable -Wattribute-alias for clang-23 and newer
arch/riscv/include/asm/syscall_wrapper.h | 4 ++++
include/linux/compat.h | 4 ++++
include/linux/compiler-clang.h | 6 ++++++
include/linux/compiler_types.h | 4 ++++
include/linux/syscalls.h | 4 ++++
5 files changed, 22 insertions(+)
next reply other threads:[~2026-05-29 21:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-29 21:00 Nathan Chancellor [this message]
2026-05-29 23:40 ` [GIT PULL] Clang build fix for 7.1 #2 pr-tracker-bot
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=20260529210055.GA2415550@ax162 \
--to=nathan@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=torvalds@linux-foundation.org \
/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