[PATCH] __percpu_alloc_mask() has to be __always_inline in UP case

From: Al Viro
Date: Wed Sep 27 2006 - 02:37:33 EST

... 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 <viro@xxxxxxxxxxxxxxxxxx>
include/linux/percpu.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/percpu.h b/include/linux/percpu.h
index 3835a96..46ec72f 100644
--- a/include/linux/percpu.h
+++ b/include/linux/percpu.h
@@ -74,7 +74,7 @@ static inline int __percpu_populate_mask
return 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);

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/