diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-02-25 08:36:45 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-25 08:38:12 -0500 |
commit | d2b0261506602bd969164879206027b30358ffdf (patch) | |
tree | e1acca60dfc21bc89f1bdceba3b58610eb8e23ee /include | |
parent | 0dcec8c27ba44cd11c6e68c46d5fd553818a3837 (diff) |
alloc_percpu: fix UP build
Impact: build fix
the !SMP branch had a 'gfp' leftover:
include/linux/percpu.h: In function '__alloc_percpu':
include/linux/percpu.h:160: error: 'gfp' undeclared (first use in this function)
include/linux/percpu.h:160: error: (Each undeclared identifier is reported only once
include/linux/percpu.h:160: error: for each function it appears in.)
Use GFP_KERNEL like the SMP version does.
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r-- | 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 910beb0abea2..d8e5a9abbce0 100644 --- a/include/linux/percpu.h +++ b/include/linux/percpu.h | |||
@@ -157,7 +157,7 @@ static inline void *__alloc_percpu(size_t size, size_t align) | |||
157 | * percpu sections on SMP for which this path isn't used. | 157 | * percpu sections on SMP for which this path isn't used. |
158 | */ | 158 | */ |
159 | WARN_ON_ONCE(align > __alignof__(unsigned long long)); | 159 | WARN_ON_ONCE(align > __alignof__(unsigned long long)); |
160 | return kzalloc(size, gfp); | 160 | return kzalloc(size, GFP_KERNEL); |
161 | } | 161 | } |
162 | 162 | ||
163 | static inline void free_percpu(void *p) | 163 | static inline void free_percpu(void *p) |