Re: [PATCH] x86/current: Annotate get_cpu_info() as attr_const

2025-08-12 Thread Jan Beulich
On 12.08.2025 12:30, Andrew Cooper wrote: > The result of this calculation will always be identical, even across context > switch in x86. Tell the compiler. Or if it ended up different (e.g. due to stack pointer corruption) we're hosed anyway. > Signed-off-by: Andrew Cooper Reviewed-by: Jan Be

[PATCH] x86/current: Annotate get_cpu_info() as attr_const

2025-08-12 Thread Andrew Cooper
The result of this calculation will always be identical, even across context switch in x86. Tell the compiler. Signed-off-by: Andrew Cooper --- CC: Jan Beulich CC: Roger Pau Monné add/remove: 0/0 grow/shrink: 0/15 up/down: 0/-300 (-300) Function old