[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <47A8B84B-2685-4DA2-B39B-E55812374426@linux.dev>
Date: Mon, 27 Oct 2025 13:23:02 +0100
From: Thorsten Blum <thorsten.blum@...ux.dev>
To: Waiman Long <longman@...hat.com>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>,
Borislav Petkov <bp@...en8.de>,
Dave Hansen <dave.hansen@...ux.intel.com>,
"H. Peter Anvin" <hpa@...or.com>
Cc: linux-kernel@...r.kernel.org,
x86@...nel.org
Subject: x86/smpboot: Question regarding native_play_dead() __noreturn warning
Hi,
I just came across this comment in arch/x86/kernel/smpboot.c:
/*
* native_play_dead() is essentially a __noreturn function, but it can't
* be marked as such as the compiler may complain about it.
*/
void native_play_dead(void) {
...
}
and when I mark native_play_dead() as __noreturn, neither gcc nor clang
complain about it.
The commit message 2743fe89d4d4 ("x86/idle: Disable IBRS when CPU is
offline to improve single-threaded performance") says:
"Add a comment to say that native_play_dead() is a __noreturn function,
but it can't be marked as such to avoid confusion about the missing
MSR restoration code."
Unfortunately, that doesn't really help me either. Can someone explain
what the issue was and if the comment is still valid? Otherwise, I'd
like to submit a patch adding __noreturn and removing the comment.
Thanks,
Thorsten
Powered by blists - more mailing lists