[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <58486755-0AA7-47DC-B914-1DF92483F69E@linux.dev>
Date: Mon, 27 Oct 2025 17:23:02 +0100
From: Thorsten Blum <thorsten.blum@...ux.dev>
To: Waiman Long <llong@...hat.com>
Cc: Peter Zijlstra <peterz@...radead.org>,
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>,
linux-kernel@...r.kernel.org,
x86@...nel.org
Subject: Re: x86/smpboot: Question regarding native_play_dead() __noreturn
warning
On 27. Oct 2025, at 16:48, Waiman Long wrote:
> On 10/27/25 8:50 AM, Peter Zijlstra wrote:
>> On Mon, Oct 27, 2025 at 01:23:02PM +0100, Thorsten Blum wrote:
>>> [...]
>> I'm not sure either, it wasn't there in v2 but appeared in v3.
>>
>> v2: 20230620140625.1001886-3-longman@...hat.com
>> v3: 20230622003603.1188364-2-longman@...hat.com
>>
>> The difference is that v2 tried to restore the msr after 'play_dead'
>> which is silly, since it would never reach that code. v3 removed that
>> dead restore code and added the confusing comment.
>>
>> There is a clue here though:
>>
>> 20230622054053.uy577qezu5a65buc@...ble
>>
>> Josh suggests play_dead() should be marked noreturn (which it is in
>> current kernels).
>>
>> Waiman then replies:
>>
>> 921e1b98-af36-1f51-5abe-dea36425b706@...hat.com
>>
>> which is utterly confused again.
>
> I don't remember exactly how I got the warning when __noreturn is added to native_play_dead(). It may be a limitation of the objtool or gcc that I was using at that time. If Thorsten doesn't have problem adding __noreturn, I won't mind him doing that and taking out the the comment. We can see if there is other issue coming up in the future.
Thanks for the quick replies!
I submitted the patch adding __noreturn here:
https://lore.kernel.org/lkml/20251027155107.183136-1-thorsten.blum@linux.dev/
Powered by blists - more mailing lists