Skip to content

Commit 73cbcfe

Browse files
author
Peter Zijlstra
committed
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: 4d6dd05 ("sched/topology: Fix sched domain build error for GNR, CWF in SNC-3 mode") Reported-by: Borislav Petkov <bp@alien8.de> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
1 parent 4c95380 commit 73cbcfe

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

arch/x86/include/asm/topology.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,4 +325,6 @@ static inline void freq_invariance_set_perf_ratio(u64 ratio, bool turbo_disabled
325325
extern void arch_scale_freq_tick(void);
326326
#define arch_scale_freq_tick arch_scale_freq_tick
327327

328+
extern int arch_sched_node_distance(int from, int to);
329+
328330
#endif /* _ASM_X86_TOPOLOGY_H */

0 commit comments

Comments
 (0)