Skip to content

Commit 5d7d807

Browse files
committed
powerpc/pseries: Fix build of topology stuff without CONFIG_NUMA
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
1 parent 39bf990 commit 5d7d807

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

arch/powerpc/include/asm/topology.h

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -93,19 +93,6 @@ extern void __init dump_numa_cpu_topology(void);
9393
extern int sysfs_add_device_to_node(struct sys_device *dev, int nid);
9494
extern void sysfs_remove_device_from_node(struct sys_device *dev, int nid);
9595

96-
#ifdef CONFIG_PPC_SPLPAR
97-
extern int start_topology_update(void);
98-
extern int stop_topology_update(void);
99-
#else
100-
static inline int start_topology_update(void)
101-
{
102-
return 0;
103-
}
104-
static inline int stop_topology_update(void)
105-
{
106-
return 0;
107-
}
108-
#endif /* CONFIG_PPC_SPLPAR */
10996
#else
11097

11198
static inline void dump_numa_cpu_topology(void) {}
@@ -121,6 +108,20 @@ static inline void sysfs_remove_device_from_node(struct sys_device *dev,
121108
}
122109
#endif /* CONFIG_NUMA */
123110

111+
#if defined(CONFIG_NUMA) && defined(CONFIG_PPC_SPLPAR)
112+
extern int start_topology_update(void);
113+
extern int stop_topology_update(void);
114+
#else
115+
static inline int start_topology_update(void)
116+
{
117+
return 0;
118+
}
119+
static inline int stop_topology_update(void)
120+
{
121+
return 0;
122+
}
123+
#endif /* CONFIG_NUMA && CONFIG_PPC_SPLPAR */
124+
124125
#include <asm-generic/topology.h>
125126

126127
#ifdef CONFIG_SMP

arch/powerpc/mm/numa.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,6 @@ static u8 vphn_cpu_change_counts[NR_CPUS][VPHN_NR_CHANGE_CTRS];
12961296
static cpumask_t cpu_associativity_changes_mask;
12971297
static int vphn_enabled;
12981298
static void set_topology_timer(void);
1299-
int stop_topology_update(void);
13001299

13011300
/*
13021301
* Store the current values of the associativity change counters in the

0 commit comments

Comments
 (0)