From: Uros Bizjak Date: Thu, 3 Apr 2025 07:30:49 +0000 (+0200) Subject: x86/idle: Change arguments of mwait_idle_with_hints() to u32 X-Git-Tag: v6.16-rc1~195^2~26^2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a17b37a3f416;p=thirdparty%2Flinux.git x86/idle: Change arguments of mwait_idle_with_hints() to u32 All functions in mwait_idle_with_hints() cast eax and ecx arguments to u32. Propagate argument type to the enclosing function. Suggested-by: Andrew Cooper Signed-off-by: Uros Bizjak Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/20250403073105.245987-1-ubizjak@gmail.com --- diff --git a/arch/x86/include/asm/mwait.h b/arch/x86/include/asm/mwait.h index 6a2ec20830436..44d3bb2a259de 100644 --- a/arch/x86/include/asm/mwait.h +++ b/arch/x86/include/asm/mwait.h @@ -110,7 +110,7 @@ static __always_inline void __sti_mwait(u32 eax, u32 ecx) * New with Core Duo processors, MWAIT can take some hints based on CPU * capability. */ -static __always_inline void mwait_idle_with_hints(unsigned long eax, unsigned long ecx) +static __always_inline void mwait_idle_with_hints(u32 eax, u32 ecx) { if (static_cpu_has_bug(X86_BUG_MONITOR) || !current_set_polling_and_test()) { const void *addr = ¤t_thread_info()->flags;