aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2006-09-29 04:58:34 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-09-29 12:18:02 -0400
commit0891a8d706d6e6838a926b6dec42f95581747d0e (patch)
treedc926aef2b56cbe4ddf3a974c51a99f70d39c1ea
parent3dcbbcda7c5b77c400791b26facd6593c5b176e0 (diff)
[PATCH] __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 <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--include/linux/percpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/percpu.h b/include/linux/percpu.h
index 3835a9642f13..46ec72fa2c84 100644
--- a/include/linux/percpu.h
+++ b/include/linux/percpu.h
@@ -74,7 +74,7 @@ static inline int __percpu_populate_mask(void *__pdata, size_t size, gfp_t gfp,
74 return 0; 74 return 0;
75} 75}
76 76
77static inline void *__percpu_alloc_mask(size_t size, gfp_t gfp, cpumask_t *mask) 77static __always_inline void *__percpu_alloc_mask(size_t size, gfp_t gfp, cpumask_t *mask)
78{ 78{
79 return kzalloc(size, gfp); 79 return kzalloc(size, gfp);
80} 80}