summaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-02-25 14:07:33 +0100
committerIngo Molnar <mingo@elte.hu>2009-02-25 14:09:41 +0100
commit0dcec8c27ba44cd11c6e68c46d5fd553818a3837 (patch)
tree30e5140fbb7f80b1492cb3579b5302a45d09c2f0 /net/ipv4
parentd325100504f1d0c296a1fbfef558deaa655e2240 (diff)
downloadlinux-0dcec8c27ba44cd11c6e68c46d5fd553818a3837.tar.gz
linux-0dcec8c27ba44cd11c6e68c46d5fd553818a3837.tar.bz2
linux-0dcec8c27ba44cd11c6e68c46d5fd553818a3837.zip
alloc_percpu: add align argument to __alloc_percpu, fix
Impact: build fix API was changed, but not all usage sites were converted: net/ipv4/route.c: In function ‘ip_rt_init’: net/ipv4/route.c:3379: error: too few arguments to function ‘__alloc_percpu’ Cc: Rusty Russell <rusty@rustcorp.com.au> Cc: Tejun Heo <tj@kernel.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index 97f71153584f..bf895401218f 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -3376,7 +3376,7 @@ int __init ip_rt_init(void)
int rc = 0;
#ifdef CONFIG_NET_CLS_ROUTE
- ip_rt_acct = __alloc_percpu(256 * sizeof(struct ip_rt_acct));
+ ip_rt_acct = __alloc_percpu(256 * sizeof(struct ip_rt_acct), __alignof__(struct ip_rt_acct));
if (!ip_rt_acct)
panic("IP: failed to allocate ip_rt_acct\n");
#endif