__percpu_alloc_mask() has to be __always_inline in UP case
PATCH 1/1 __percpu_alloc_mask() has to be __always_inline in UP case
... or we'll end up with cpu_online_map being evaluated on UP. In modules. cpumask.h is very careful to avoid that, and for a very good reason. So should we...
PS: yes, it really triggers (on alpha).
Signed-off-by Al Viro <[email protected]>
--- include/linux/percpu.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/percpu.h +1 -1
@@ -74,7 +74,7 @@ static inline int __percpu_populate_maskreturn 0 ; } -static inline void *__percpu_alloc_mask (size_t size,gfp_t gfp,cpumask_t *mask) +static __always_inline void *__percpu_alloc_mask(size_t size, gfp_t gfp, cpumask_t *mask) {return kzalloc (size, gfp); }
Signature · 1 line
1.4.2.GIT