From: Gonglei \(Arei\) Date: Thu, 8 Dec 2016 04:37:08 +0000 (+0800) Subject: sparc: fix a building error reported by kbuild X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=541cc39433a81d581f2738f59f7bd310ff1d512a;p=linux-beck.git 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 --- 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) {