From: "Tiwei Bie" <tiwei.btw@antgroup.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Johannes Berg <johannes@sipsolutions.net>,
linux-kernel@vger.kernel.org, linux-um@lists.infradead.org,
Richard Weinberger <richard@nod.at>,
Anton Ivanov <anton.ivanov@cambridgegreys.com>
Subject: Re: [GIT PULL] uml-for-6.16-rc4
Date: Thu, 26 Jun 2025 22:18:12 +0800 [thread overview]
Message-ID: <963cbbe7-8064-461e-b134-1a43e037c33a@antgroup.com> (raw)
In-Reply-To: <CAHk-=wh=_ZmpYtCx11wqsGGdrZRHsPorTzpzh2-QccT8PGKW1w@mail.gmail.com>
On 2025/6/26 11:48, Linus Torvalds wrote:
> On Wed, 25 Jun 2025 at 19:44, Tiwei Bie <tiwei.btw@antgroup.com> wrote:
>>
>> The behavior of gcc and clang differs. Clang's behavior appears to be
>> related to the volatile qualifier in arch_spinlock_t:
>
> Ahh. That kind of makes sense.
I also just noticed it today after taking a closer look.
>
> At the same time, I think clang is being stupid here. Yes, it makes
> sense to treat volatile specially in this way - just not for an
> initializer.
>
> I realize that initializers can be made to be their own data
> structures in modern C (ie taking the address of an initializer and
> using the initializer itself as an argument to a function call, for
> example), but when an initializer is used to set the value of a
> variable, the only real thing there is that variable.
That makes sense!
>
> Oh well. The patch certainly looks fine and I obviously already merged
> the pull request.
Yeah, I saw that. Thanks! :)
> It does make me go "I wonder how many other places
> clang just generates stupid code due to this".
+1.
Regards,
Tiwei
next prev parent reply other threads:[~2025-06-26 14:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-25 12:14 Johannes Berg
2025-06-25 18:17 ` Linus Torvalds
2025-06-26 2:44 ` Tiwei Bie
2025-06-26 3:48 ` Linus Torvalds
2025-06-26 14:18 ` Tiwei Bie [this message]
2025-06-25 18:23 ` 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=963cbbe7-8064-461e-b134-1a43e037c33a@antgroup.com \
--to=tiwei.btw@antgroup.com \
--cc=anton.ivanov@cambridgegreys.com \
--cc=johannes@sipsolutions.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-um@lists.infradead.org \
--cc=richard@nod.at \
--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
all inboxes | Powered by JetHome®