Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: Andreas Larsson <andreas@gaisler.com>
To: Sasha Levin <sashal@kernel.org>,
	patches@lists.linux.dev, stable@vger.kernel.org
Cc: Thomas Huth <thuth@redhat.com>,
	"David S. Miller" <davem@davemloft.net>,
	sparclinux@vger.kernel.org, nathan@kernel.org,
	alexandre.f.demers@gmail.com, alexander.deucher@amd.com,
	llvm@lists.linux.dev
Subject: Re: [PATCH AUTOSEL 6.17-5.4] sparc: Replace __ASSEMBLY__ with __ASSEMBLER__ in uapi headers
Date: Mon, 27 Oct 2025 09:09:17 +0100	[thread overview]
Message-ID: <62e049c9-cb92-4eaa-b069-e96ddafaad03@gaisler.com> (raw)
In-Reply-To: <20251025160905.3857885-242-sashal@kernel.org>

On 2025-10-25 17:57, Sasha Levin wrote:
> From: Thomas Huth <thuth@redhat.com>
> 
> [ Upstream commit d6fb6511de74bd0d4cb4cabddae9b31d533af1c1 ]
> 
> __ASSEMBLY__ is only defined by the Makefile of the kernel, so
> this is not really useful for uapi headers (unless the userspace
> Makefile defines it, too). Let's switch to __ASSEMBLER__ which
> gets set automatically by the compiler when compiling assembly
> code.
> 
> This is a completely mechanical patch (done with a simple "sed -i"
> statement).
> 
> Cc: David S. Miller <davem@davemloft.net>
> Cc: Andreas Larsson <andreas@gaisler.com>
> Cc: sparclinux@vger.kernel.org
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> Reviewed-by: Andreas Larsson <andreas@gaisler.com>
> Signed-off-by: Andreas Larsson <andreas@gaisler.com>
> Signed-off-by: Sasha Levin <sashal@kernel.org>
> ---

The upstream commit dc356bf3c173 ("sparc: Drop the "-ansi" from the asflags") is
a prerequisite to d6fb6511de74 ("sparc: Replace __ASSEMBLY__ with __ASSEMBLER__
in uapi headers") that here is planned to be picked up to stable branches. If
this prerequisite is not picked up first the kernel will not compile [1].

[1] https://lore.kernel.org/all/810a8ec4-e416-42b6-97bf-8a56f41deea1@redhat.com/

Cheers,
Andreas


  reply	other threads:[~2025-10-27  8:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20251025160905.3857885-1-sashal@kernel.org>
2025-10-25 15:54 ` [PATCH AUTOSEL 6.17-5.4] selftests/net: Replace non-standard __WORDSIZE with sizeof(long) * 8 Sasha Levin
2025-10-25 15:57 ` [PATCH AUTOSEL 6.17-5.4] sparc: Replace __ASSEMBLY__ with __ASSEMBLER__ in uapi headers Sasha Levin
2025-10-27  8:09   ` Andreas Larsson [this message]
2025-11-04 14:14     ` Sasha Levin
2025-10-25 16:01 ` [PATCH AUTOSEL 6.17-5.4] sparc/module: Add R_SPARC_UA64 relocation handling Sasha Levin

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=62e049c9-cb92-4eaa-b069-e96ddafaad03@gaisler.com \
    --to=andreas@gaisler.com \
    --cc=alexander.deucher@amd.com \
    --cc=alexandre.f.demers@gmail.com \
    --cc=davem@davemloft.net \
    --cc=llvm@lists.linux.dev \
    --cc=nathan@kernel.org \
    --cc=patches@lists.linux.dev \
    --cc=sashal@kernel.org \
    --cc=sparclinux@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=thuth@redhat.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