From: Tejun Heo Date: Wed, 15 Jul 2009 14:35:14 +0000 (+0900) Subject: percpu: add dummy pcpu_lpage_remapped() for !CONFIG_SMP X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a76761b621bcd8336065c4fe3a74f046858bc34c;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Cc: Randy Dunlap Cc: Kamalesh Babulal Cc: Stephen Rothwell --- diff --git a/include/linux/percpu.h b/include/linux/percpu.h index 8ce91af4aa1..e134c822963 100644 --- a/include/linux/percpu.h +++ b/include/linux/percpu.h @@ -184,6 +184,11 @@ static inline void free_percpu(void *p) static inline void __init setup_per_cpu_areas(void) { } +static inline void *pcpu_lpage_remapped(void *kaddr) +{ + return NULL; +} + #endif /* CONFIG_SMP */ #define alloc_percpu(type) (type *)__alloc_percpu(sizeof(type), \