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