Skip to contentSkip to conversation

__percpu_alloc_mask() has to be __always_inline in UP case

PATCH New Al Viro 1 participant 1 message Sep 27, 2006 Per-CPU memory allocator

lore
Share & tools
lore

Al Viro

author
#0 lore raw

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).

---
 include/linux/percpu.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/percpu.h +1 -1
index 3835a96..46ec72f 100644
@@ -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);
 }
Signature · 1 line
1.4.2.GIT