]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
x86/msr: Use u64 in rdmsrl_amd_safe() and wrmsrl_amd_safe()
authorIngo Molnar <mingo@kernel.org>
Wed, 9 Apr 2025 20:28:50 +0000 (22:28 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 10 Apr 2025 09:58:02 +0000 (11:58 +0200)
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Juergen Gross <jgross@suse.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Dave Hansen <dave.hansen@intel.com>
Cc: Xin Li <xin@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/kernel/cpu/amd.c

index 79569f72b8ee5006297e1912209c426b472ec771..b2ab2369c9cb4e71e813a558bc814834af18f86f 100644 (file)
@@ -31,7 +31,7 @@
 
 u16 invlpgb_count_max __ro_after_init;
 
-static inline int rdmsrl_amd_safe(unsigned msr, unsigned long long *p)
+static inline int rdmsrl_amd_safe(unsigned msr, u64 *p)
 {
        u32 gprs[8] = { 0 };
        int err;
@@ -49,7 +49,7 @@ static inline int rdmsrl_amd_safe(unsigned msr, unsigned long long *p)
        return err;
 }
 
-static inline int wrmsrl_amd_safe(unsigned msr, unsigned long long val)
+static inline int wrmsrl_amd_safe(unsigned msr, u64 val)
 {
        u32 gprs[8] = { 0 };