All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] __percpu_alloc_mask() has to be __always_inline in UP case
@ 2006-09-27  6:37 Al Viro
  0 siblings, 0 replies; only message in thread
From: Al Viro @ 2006-09-27  6:37 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel

... 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>
---
 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);
 }
-- 
1.4.2.GIT


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2006-09-27  6:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-27  6:37 [PATCH] __percpu_alloc_mask() has to be __always_inline in UP case Al Viro

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.