From: Corentin Labbe Date: Wed, 14 Feb 2018 12:17:47 +0000 (+0000) Subject: powerpc/pseries: Add empty update_numa_cpu_lookup_table() for NUMA=n X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=commitdiff_plain;h=3ea5e8ca5c4f15f1e8777dc12d345bab35746841;hp=6eab16489865086d2891939ea069d0983b9c44dd powerpc/pseries: Add empty update_numa_cpu_lookup_table() for NUMA=n commit c1e150ceb61e4a585bad156da15c33bfe89f5858 upstream. When CONFIG_NUMA is not set, the build fails with: arch/powerpc/platforms/pseries/hotplug-cpu.c:335:4: error: déclaration implicite de la fonction « update_numa_cpu_lookup_table » So we have to add update_numa_cpu_lookup_table() as an empty function when CONFIG_NUMA is not set. Fixes: 1d9a090783be ("powerpc/numa: Invalidate numa_cpu_lookup_table on cpu remove") Signed-off-by: Corentin Labbe Signed-off-by: Michael Ellerman Signed-off-by: Ben Hutchings --- diff --git a/arch/powerpc/include/asm/topology.h b/arch/powerpc/include/asm/topology.h index 996ed1654d97..60097b3beaf6 100644 --- a/arch/powerpc/include/asm/topology.h +++ b/arch/powerpc/include/asm/topology.h @@ -107,6 +107,9 @@ static inline void sysfs_remove_device_from_node(struct sys_device *dev, int nid) { } + +static inline void update_numa_cpu_lookup_table(unsigned int cpu, int node) {} + #endif /* CONFIG_NUMA */ #if defined(CONFIG_NUMA) && defined(CONFIG_PPC_SPLPAR)