From: Thomas Huth <thuth@redhat.com>
To: "Thomas Weißschuh" <linux@weissschuh.net>
Cc: Arnd Bergmann <arnd@arndb.de>,
Nathan Chancellor <nathan@kernel.org>,
Nicolas Schier <nsc@kernel.org>,
"Maciej W. Rozycki" <macro@orcam.me.uk>,
Nick Huang <sef1548@gmail.com>,
linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org
Subject: Re: [PATCH] scripts: headers_install.sh: Normalize __ASSEMBLY__ to __ASSEMBLER__
Date: Thu, 16 Jul 2026 20:52:19 +0200 [thread overview]
Message-ID: <2030a963-33bc-43fe-9a2b-9c626d7d8360@redhat.com> (raw)
In-Reply-To: <5e05be8c-e9b7-4da7-a182-eefc5043cd2e@t-8ch.de>
On 16/07/2026 18.40, Thomas Weißschuh wrote:
> Hi Thomas,
>
> On 2026-07-16 12:24:07+0200, Thomas Huth wrote:
>> On 09/03/2026 16.58, Thomas Weißschuh wrote:
>>> There is an ongoing effort to replace the usage of __ASSEMBLER__ with
>>> __ASSEMBLY__ throughout the kernel tree, see for example
>>> commit 287d163322b7 ("arm64: Replace __ASSEMBLY__ with __ASSEMBLER__ in
>>> non-uapi headers"). The latter is automatically provided by all compilers
>>> and preprocessors supported by the kernel, so the explicit definitions
>>> of __ASSEMBLER__ can be removed.
>>>
>>> However the UAPI headers might be used with older (< GCC 3.0) or
>>> non-GCC-compatible compilers, which do not define __ASSEMBLY__
>>> automatically.
>>
>> I just had a try with gcc 2.95.4 from a Debian Woody installation, and it
>> defines __ASSEMBLER__ automatically when compiling *.S files, i.e. gcc 2.95
>> does not seem to be a problem. So can you point me to a real case where
>> someone tried to use a user space compiler where __ASSEMBLER__ was not
>> defined automatically? Otherwise, I think this patch could be reverted
>> again.
>
> I don't have a specific case I can point you to. My goal was
> consistency. Therefore I am against reverting the patch as long as
> both __ASSEMBLER__ and __ASSEMBLY__ are used in the UAPI headers.
I've got patches for all files ready and posted them a couple of times
already - the problem is, some maintainers are not responsive / ignoring me
... so I'm afraid but I guess we'll be in this inconsistent state for a
little bit longer...
> If we want to switch to __ASSEMBLER__ for the UAPI headers today,
> we should instead invert the logic of this patch to consistently use it
> everywhere. After all UAPI headers are migrated, the normalization can
> then be removed.
That sounds like the better idea to me. Could you maybe send a patch, or
want me to do it?
Thanks,
Thomas
next prev parent reply other threads:[~2026-07-16 18:52 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-09 15:58 Thomas Weißschuh
2026-03-13 23:56 ` Nathan Chancellor
2026-03-24 17:05 ` Thomas Weißschuh
2026-03-24 18:35 ` Nathan Chancellor
2026-03-24 19:58 ` Thomas Weißschuh
2026-06-13 10:13 ` Nicolas Schier
2026-06-13 16:57 ` Nathan Chancellor
2026-07-16 10:24 ` Thomas Huth
2026-07-16 16:40 ` Thomas Weißschuh
2026-07-16 18:16 ` Maciej W. Rozycki
2026-07-17 15:25 ` Thomas Weißschuh
2026-07-20 15:31 ` Maciej W. Rozycki
2026-07-16 18:52 ` Thomas Huth [this message]
2026-07-17 15:28 ` Thomas Weißschuh
2026-07-20 10:10 Thomas Huth
2026-07-21 11:14 ` Nicolas Schier
2026-07-21 20:54 ` Nathan Chancellor
2026-07-21 21:32 ` Thomas Weißschuh
2026-07-22 7:34 ` Thomas Huth
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=2030a963-33bc-43fe-9a2b-9c626d7d8360@redhat.com \
--to=thuth@redhat.com \
--cc=arnd@arndb.de \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@weissschuh.net \
--cc=macro@orcam.me.uk \
--cc=nathan@kernel.org \
--cc=nsc@kernel.org \
--cc=sef1548@gmail.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
all inboxes | Powered by JetHome®