[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <bfb22382-c513-4135-9e24-dbf7595dbd72@redhat.com>
Date: Tue, 5 Aug 2025 11:50:00 +0200
From: Thomas Huth <thuth@...hat.com>
To: John Paul Adrian Glaubitz <glaubitz@...sik.fu-berlin.de>,
linux-kernel@...r.kernel.org
Cc: Arnd Bergmann <arnd@...db.de>, linux-arch@...r.kernel.org,
"David S. Miller" <davem@...emloft.net>,
Andreas Larsson <andreas@...sler.com>, sparclinux@...r.kernel.org
Subject: Re: [PATCH 34/41] sparc: Replace __ASSEMBLY__ with __ASSEMBLER__ in
non-uapi headers
On 03/08/2025 15.33, John Paul Adrian Glaubitz wrote:
> Hi Thomas,
>
> On Fri, 2025-03-14 at 08:10 +0100, Thomas Huth wrote:
>> While the GCC and Clang compilers already define __ASSEMBLER__
>> automatically when compiling assembly code, __ASSEMBLY__ is a
>> macro that only gets defined by the Makefiles in the kernel.
>> This can be very confusing when switching between userspace
>> and kernelspace coding, or when dealing with uapi headers that
>> rather should use __ASSEMBLER__ instead. So let's standardize on
>> the __ASSEMBLER__ macro that is provided by the compilers now.
...
> This causes the kernel build to fail:
>
> CC [M] drivers/gpu/drm/nouveau/nv04_fence.o
> CC [M] drivers/gpu/drm/nouveau/nv10_fence.o
> CC [M] drivers/gpu/drm/nouveau/nv17_fence.o
> CC [M] drivers/gpu/drm/nouveau/nv50_fence.o
> CC [M] drivers/gpu/drm/nouveau/nv84_fence.o
> CC [M] drivers/gpu/drm/nouveau/nvc0_fence.o
> LD [M] drivers/gpu/drm/nouveau/nouveau.o
> AR drivers/gpu/built-in.a
> AR drivers/built-in.a
> make: *** [Makefile:2026: .] Error 2
> glaubitz@...e54:/data/home/glaubitz/linux> make
> CALL scripts/checksyscalls.sh
> <stdin>:1519:2: warning: #warning syscall clone3 not implemented [-Wcpp]
> AS arch/sparc/kernel/head_64.o
> ./arch/sparc/include/uapi/asm/ptrace.h: Assembler messages:
> ./arch/sparc/include/uapi/asm/ptrace.h:22: Error: Unknown opcode: `struct'
Hi Adrian,
could you please give it another try, after applying this patch first:
https://lore.kernel.org/lkml/20250805092540.48334-1-thuth@redhat.com/
Thanks,
Thomas
Powered by blists - more mailing lists