Re: [PATCH v6 2/8] x86/hygon: Map CPU NodeIds to DF nodes

From: Lin Wang

Date: Wed Sep 30 2026 - 03:14:53 EST


On 9/30/2026 11:00 AM, Borislav Petkov wrote:
arch/x86/include/asm/hygon/node.h:81: * hygon_cpu_to_df_node() - Map CPU to dense DF CDD index
arch/x86/include/asm/hygon/node.h:95:int hygon_cpu_to_df_node(unsigned int cpu);
arch/x86/include/asm/hygon/node.h:138:static inline int hygon_cpu_to_df_node(unsigned int cpu)
arch/x86/kernel/hygon_node.c:586:int hygon_cpu_to_df_node(unsigned int cpu)
arch/x86/kernel/hygon_node.c:600:EXPORT_SYMBOL_GPL(hygon_cpu_to_df_node);

So why is this function in a header and exported to no one?

Pls export it only when you need it and until then, keep it in the .c file
only.
Right, there is no caller yet. I'll remove the declaration and stub
from node.h and the symbol export. I'll keep the translation code
private to hygon_node.c until a consumer needs it.

Thanks!

Lin