Re: [PATCH 6.18 2/2] sched/topology: Fix sched domain build error for GNR, CWF in SNC-3 mode

From: K Prateek Nayak

Date: Sun Feb 08 2026 - 22:59:21 EST


Hello Greg,

On 2/7/2026 8:59 PM, Greg KH wrote:
> This breaks the build:
> CC arch/x86/kernel/smpboot.o
> arch/x86/kernel/smpboot.c:548:5: error: no previous prototype for ‘arch_sched_node_distance’ [-Werror=missing-prototypes]
> 548 | int arch_sched_node_distance(int from, int to)
> | ^~~~~~~~~~~~~~~~~~~~~~~~
> cc1: all warnings being treated as errors
>
> How was it tested?

I believe this build issue was fixed by upstream commit 73cbcfe255f7
("sched/topology,x86: Fix build warning")

(Full upstream SHA: 73cbcfe255f7edca915d978a7d1b0a11f2d62812)

P.S. It cherry-picks cleanly on top of "Linux 6.18.9".

--
Thanks and Regards,
Prateek