diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/af_inet.c | 4 | ||||
-rw-r--r-- | net/ipv4/route.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index d5aaabbb7cb3..7f03373b8c07 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c | |||
@@ -1375,10 +1375,10 @@ EXPORT_SYMBOL_GPL(snmp_fold_field); | |||
1375 | int snmp_mib_init(void *ptr[2], size_t mibsize) | 1375 | int snmp_mib_init(void *ptr[2], size_t mibsize) |
1376 | { | 1376 | { |
1377 | BUG_ON(ptr == NULL); | 1377 | BUG_ON(ptr == NULL); |
1378 | ptr[0] = __alloc_percpu(mibsize); | 1378 | ptr[0] = __alloc_percpu(mibsize, __alignof__(unsigned long long)); |
1379 | if (!ptr[0]) | 1379 | if (!ptr[0]) |
1380 | goto err0; | 1380 | goto err0; |
1381 | ptr[1] = __alloc_percpu(mibsize); | 1381 | ptr[1] = __alloc_percpu(mibsize, __alignof__(unsigned long long)); |
1382 | if (!ptr[1]) | 1382 | if (!ptr[1]) |
1383 | goto err1; | 1383 | goto err1; |
1384 | return 0; | 1384 | return 0; |
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 5caee609be06..c40debe51b38 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
@@ -3377,7 +3377,7 @@ int __init ip_rt_init(void) | |||
3377 | int rc = 0; | 3377 | int rc = 0; |
3378 | 3378 | ||
3379 | #ifdef CONFIG_NET_CLS_ROUTE | 3379 | #ifdef CONFIG_NET_CLS_ROUTE |
3380 | ip_rt_acct = __alloc_percpu(256 * sizeof(struct ip_rt_acct)); | 3380 | ip_rt_acct = __alloc_percpu(256 * sizeof(struct ip_rt_acct), __alignof__(struct ip_rt_acct)); |
3381 | if (!ip_rt_acct) | 3381 | if (!ip_rt_acct) |
3382 | panic("IP: failed to allocate ip_rt_acct\n"); | 3382 | panic("IP: failed to allocate ip_rt_acct\n"); |
3383 | #endif | 3383 | #endif |