From 541cc39433a81d581f2738f59f7bd310ff1d512a Mon Sep 17 00:00:00 2001 From: "Gonglei \\(Arei\\)" Date: Thu, 8 Dec 2016 12:37:08 +0800 Subject: sparc: fix a building error reported by kbuild >> arch/sparc/include/asm/topology_64.h:44:44: error: implicit declaration of function 'cpu_data' [-Werror=implicit-function-declaration] #define topology_physical_package_id(cpu) (cpu_data(cpu).proc_id) ^ Let's include cpudata.h in topology_64.h. Cc: Sam Ravnborg Cc: David S. Miller Cc: sparclinux@vger.kernel.org Suggested-by: Sam Ravnborg Signed-off-by: Gonglei Acked-by: Sam Ravnborg Signed-off-by: David S. Miller --- arch/sparc/include/asm/topology_64.h | 1 + 1 file changed, 1 insertion(+) (limited to 'arch/sparc') diff --git a/arch/sparc/include/asm/topology_64.h b/arch/sparc/include/asm/topology_64.h index 7b4898a36eee..225543000122 100644 --- a/arch/sparc/include/asm/topology_64.h +++ b/arch/sparc/include/asm/topology_64.h @@ -4,6 +4,7 @@ #ifdef CONFIG_NUMA #include +#include static inline int cpu_to_node(int cpu) { -- cgit v1.2.3