From: Peter Zijlstra Date: Thu, 16 Oct 2025 10:58:34 +0000 (+0200) Subject: sched/topology,x86: Fix build warning X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=73cbcfe255f7edca915d978a7d1b0a11f2d62812;p=thirdparty%2Flinux.git sched/topology,x86: Fix build warning A compile warning slipped through: arch/x86/kernel/smpboot.c:548:5: warning: no previous prototype for function 'arch_sched_node_distance' [-Wmissing-prototypes] Fixes: 4d6dd05d07d0 ("sched/topology: Fix sched domain build error for GNR, CWF in SNC-3 mode") Reported-by: Borislav Petkov Signed-off-by: Peter Zijlstra (Intel) --- diff --git a/arch/x86/include/asm/topology.h b/arch/x86/include/asm/topology.h index 21041898157a1..df943881f15ba 100644 --- a/arch/x86/include/asm/topology.h +++ b/arch/x86/include/asm/topology.h @@ -325,4 +325,6 @@ static inline void freq_invariance_set_perf_ratio(u64 ratio, bool turbo_disabled extern void arch_scale_freq_tick(void); #define arch_scale_freq_tick arch_scale_freq_tick +extern int arch_sched_node_distance(int from, int to); + #endif /* _ASM_X86_TOPOLOGY_H */