diff options
author | Tejun Heo <tj@kernel.org> | 2009-07-15 10:35:14 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-07-15 10:35:14 -0400 |
commit | a76761b621bcd8336065c4fe3a74f046858bc34c (patch) | |
tree | f9c7def7b55d97ffeb942a8240742397b767929e /include/linux | |
parent | 872fb6dd6b07986417964e089074e7acfd025f4c (diff) |
percpu: add dummy pcpu_lpage_remapped() for !CONFIG_SMP
!CONFIG_SMP was missing pcpu_lpage_remapped() definition causing build
failure. Add dummy implementation. This was discovered by linux-next
testing.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/percpu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/percpu.h b/include/linux/percpu.h index 8ce91af4aa19..e134c8229631 100644 --- a/include/linux/percpu.h +++ b/include/linux/percpu.h | |||
@@ -184,6 +184,11 @@ static inline void free_percpu(void *p) | |||
184 | 184 | ||
185 | static inline void __init setup_per_cpu_areas(void) { } | 185 | static inline void __init setup_per_cpu_areas(void) { } |
186 | 186 | ||
187 | static inline void *pcpu_lpage_remapped(void *kaddr) | ||
188 | { | ||
189 | return NULL; | ||
190 | } | ||
191 | |||
187 | #endif /* CONFIG_SMP */ | 192 | #endif /* CONFIG_SMP */ |
188 | 193 | ||
189 | #define alloc_percpu(type) (type *)__alloc_percpu(sizeof(type), \ | 194 | #define alloc_percpu(type) (type *)__alloc_percpu(sizeof(type), \ |