]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
x86/lib: Drop the unused return value from wbinvd_on_all_cpus()
authorSean Christopherson <seanjc@google.com>
Thu, 22 May 2025 23:37:26 +0000 (16:37 -0700)
committerBorislav Petkov (AMD) <bp@alien8.de>
Thu, 10 Jul 2025 11:13:26 +0000 (13:13 +0200)
Drop wbinvd_on_all_cpus()'s return value; both the "real" version and the
stub always return '0', and none of the callers check the return.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/20250522233733.3176144-3-seanjc@google.com
arch/x86/include/asm/smp.h
arch/x86/lib/cache-smp.c

index 0c1c68039d6f1ba69d9af9e165d8c976083a48cd..028f126018c940c1ed9834e31c114793a5cd0be1 100644 (file)
@@ -112,7 +112,7 @@ void __noreturn hlt_play_dead(void);
 void native_play_dead(void);
 void play_dead_common(void);
 void wbinvd_on_cpu(int cpu);
-int wbinvd_on_all_cpus(void);
+void wbinvd_on_all_cpus(void);
 
 void smp_kick_mwait_play_dead(void);
 void __noreturn mwait_play_dead(unsigned int eax_hint);
@@ -148,10 +148,9 @@ static inline struct cpumask *cpu_l2c_shared_mask(int cpu)
 
 #else /* !CONFIG_SMP */
 #define wbinvd_on_cpu(cpu)     wbinvd()
-static inline int wbinvd_on_all_cpus(void)
+static inline void wbinvd_on_all_cpus(void)
 {
        wbinvd();
-       return 0;
 }
 
 static inline struct cpumask *cpu_llc_shared_mask(int cpu)
index 7af743bd3b13099c50e0890910bcd34655a10843..079c3f3cd32c9daaf63dcfe81e3cdff62453b277 100644 (file)
@@ -14,9 +14,8 @@ void wbinvd_on_cpu(int cpu)
 }
 EXPORT_SYMBOL(wbinvd_on_cpu);
 
-int wbinvd_on_all_cpus(void)
+void wbinvd_on_all_cpus(void)
 {
        on_each_cpu(__wbinvd, NULL, 1);
-       return 0;
 }
 EXPORT_SYMBOL(wbinvd_on_all_cpus);