diff options
author | Daniel Baluta <dbaluta@ixiacom.com> | 2012-04-14 21:34:41 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-15 12:37:19 -0400 |
commit | 5e73ea1a31c3612aa6dfe44f864ca5b7b6a4cff9 (patch) | |
tree | ab5eebe93e10e7e69042b15603a5b3844c049f6b /net | |
parent | 586d17c5a01bf1ae4e215adc6c48457eee5482bc (diff) |
ipv4: fix checkpatch errors
Fix checkpatch errors of the following type:
* ERROR: "foo * bar" should be "foo *bar"
* ERROR: "(foo*)" should be "(foo *)"
Signed-off-by: Daniel Baluta <dbaluta@ixiacom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/af_inet.c | 2 | ||||
-rw-r--r-- | net/ipv4/ah4.c | 2 | ||||
-rw-r--r-- | net/ipv4/igmp.c | 16 | ||||
-rw-r--r-- | net/ipv4/inet_hashtables.c | 2 | ||||
-rw-r--r-- | net/ipv4/ip_forward.c | 4 | ||||
-rw-r--r-- | net/ipv4/ip_gre.c | 20 | ||||
-rw-r--r-- | net/ipv4/ip_options.c | 24 | ||||
-rw-r--r-- | net/ipv4/ip_sockglue.c | 2 | ||||
-rw-r--r-- | net/ipv4/ipip.c | 4 | ||||
-rw-r--r-- | net/ipv4/ping.c | 2 | ||||
-rw-r--r-- | net/ipv4/raw.c | 2 | ||||
-rw-r--r-- | net/ipv4/route.c | 10 | ||||
-rw-r--r-- | net/ipv4/tcp_probe.c | 2 | ||||
-rw-r--r-- | net/ipv4/udp.c | 2 | ||||
-rw-r--r-- | net/ipv4/udp_impl.h | 2 | ||||
-rw-r--r-- | net/ipv4/xfrm4_policy.c | 2 |
16 files changed, 49 insertions, 49 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index 10e3751466b5..3744c1c0af5a 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c | |||
@@ -541,7 +541,7 @@ out: | |||
541 | } | 541 | } |
542 | EXPORT_SYMBOL(inet_bind); | 542 | EXPORT_SYMBOL(inet_bind); |
543 | 543 | ||
544 | int inet_dgram_connect(struct socket *sock, struct sockaddr * uaddr, | 544 | int inet_dgram_connect(struct socket *sock, struct sockaddr *uaddr, |
545 | int addr_len, int flags) | 545 | int addr_len, int flags) |
546 | { | 546 | { |
547 | struct sock *sk = sock->sk; | 547 | struct sock *sk = sock->sk; |
diff --git a/net/ipv4/ah4.c b/net/ipv4/ah4.c index fd508b526014..3a280756dd73 100644 --- a/net/ipv4/ah4.c +++ b/net/ipv4/ah4.c | |||
@@ -77,7 +77,7 @@ static inline struct scatterlist *ah_req_sg(struct crypto_ahash *ahash, | |||
77 | 77 | ||
78 | static int ip_clear_mutable_options(const struct iphdr *iph, __be32 *daddr) | 78 | static int ip_clear_mutable_options(const struct iphdr *iph, __be32 *daddr) |
79 | { | 79 | { |
80 | unsigned char * optptr = (unsigned char*)(iph+1); | 80 | unsigned char *optptr = (unsigned char *)(iph+1); |
81 | int l = iph->ihl*4 - sizeof(struct iphdr); | 81 | int l = iph->ihl*4 - sizeof(struct iphdr); |
82 | int optlen; | 82 | int optlen; |
83 | 83 | ||
diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c index ceaac24ecdca..6699f23e6f55 100644 --- a/net/ipv4/igmp.c +++ b/net/ipv4/igmp.c | |||
@@ -344,10 +344,10 @@ static struct sk_buff *igmpv3_newpack(struct net_device *dev, int size) | |||
344 | pip->protocol = IPPROTO_IGMP; | 344 | pip->protocol = IPPROTO_IGMP; |
345 | pip->tot_len = 0; /* filled in later */ | 345 | pip->tot_len = 0; /* filled in later */ |
346 | ip_select_ident(pip, &rt->dst, NULL); | 346 | ip_select_ident(pip, &rt->dst, NULL); |
347 | ((u8*)&pip[1])[0] = IPOPT_RA; | 347 | ((u8 *)&pip[1])[0] = IPOPT_RA; |
348 | ((u8*)&pip[1])[1] = 4; | 348 | ((u8 *)&pip[1])[1] = 4; |
349 | ((u8*)&pip[1])[2] = 0; | 349 | ((u8 *)&pip[1])[2] = 0; |
350 | ((u8*)&pip[1])[3] = 0; | 350 | ((u8 *)&pip[1])[3] = 0; |
351 | 351 | ||
352 | skb->transport_header = skb->network_header + sizeof(struct iphdr) + 4; | 352 | skb->transport_header = skb->network_header + sizeof(struct iphdr) + 4; |
353 | skb_put(skb, sizeof(*pig)); | 353 | skb_put(skb, sizeof(*pig)); |
@@ -688,10 +688,10 @@ static int igmp_send_report(struct in_device *in_dev, struct ip_mc_list *pmc, | |||
688 | iph->saddr = fl4.saddr; | 688 | iph->saddr = fl4.saddr; |
689 | iph->protocol = IPPROTO_IGMP; | 689 | iph->protocol = IPPROTO_IGMP; |
690 | ip_select_ident(iph, &rt->dst, NULL); | 690 | ip_select_ident(iph, &rt->dst, NULL); |
691 | ((u8*)&iph[1])[0] = IPOPT_RA; | 691 | ((u8 *)&iph[1])[0] = IPOPT_RA; |
692 | ((u8*)&iph[1])[1] = 4; | 692 | ((u8 *)&iph[1])[1] = 4; |
693 | ((u8*)&iph[1])[2] = 0; | 693 | ((u8 *)&iph[1])[2] = 0; |
694 | ((u8*)&iph[1])[3] = 0; | 694 | ((u8 *)&iph[1])[3] = 0; |
695 | 695 | ||
696 | ih = (struct igmphdr *)skb_put(skb, sizeof(struct igmphdr)); | 696 | ih = (struct igmphdr *)skb_put(skb, sizeof(struct igmphdr)); |
697 | ih->type = type; | 697 | ih->type = type; |
diff --git a/net/ipv4/inet_hashtables.c b/net/ipv4/inet_hashtables.c index 984ec656b03b..7880af970208 100644 --- a/net/ipv4/inet_hashtables.c +++ b/net/ipv4/inet_hashtables.c | |||
@@ -217,7 +217,7 @@ begin: | |||
217 | } | 217 | } |
218 | EXPORT_SYMBOL_GPL(__inet_lookup_listener); | 218 | EXPORT_SYMBOL_GPL(__inet_lookup_listener); |
219 | 219 | ||
220 | struct sock * __inet_lookup_established(struct net *net, | 220 | struct sock *__inet_lookup_established(struct net *net, |
221 | struct inet_hashinfo *hashinfo, | 221 | struct inet_hashinfo *hashinfo, |
222 | const __be32 saddr, const __be16 sport, | 222 | const __be32 saddr, const __be16 sport, |
223 | const __be32 daddr, const u16 hnum, | 223 | const __be32 daddr, const u16 hnum, |
diff --git a/net/ipv4/ip_forward.c b/net/ipv4/ip_forward.c index 29a07b6c7168..e5c44fc586ab 100644 --- a/net/ipv4/ip_forward.c +++ b/net/ipv4/ip_forward.c | |||
@@ -41,7 +41,7 @@ | |||
41 | 41 | ||
42 | static int ip_forward_finish(struct sk_buff *skb) | 42 | static int ip_forward_finish(struct sk_buff *skb) |
43 | { | 43 | { |
44 | struct ip_options * opt = &(IPCB(skb)->opt); | 44 | struct ip_options *opt = &(IPCB(skb)->opt); |
45 | 45 | ||
46 | IP_INC_STATS_BH(dev_net(skb_dst(skb)->dev), IPSTATS_MIB_OUTFORWDATAGRAMS); | 46 | IP_INC_STATS_BH(dev_net(skb_dst(skb)->dev), IPSTATS_MIB_OUTFORWDATAGRAMS); |
47 | 47 | ||
@@ -55,7 +55,7 @@ int ip_forward(struct sk_buff *skb) | |||
55 | { | 55 | { |
56 | struct iphdr *iph; /* Our header */ | 56 | struct iphdr *iph; /* Our header */ |
57 | struct rtable *rt; /* Route we use */ | 57 | struct rtable *rt; /* Route we use */ |
58 | struct ip_options * opt = &(IPCB(skb)->opt); | 58 | struct ip_options *opt = &(IPCB(skb)->opt); |
59 | 59 | ||
60 | if (skb_warn_if_lro(skb)) | 60 | if (skb_warn_if_lro(skb)) |
61 | goto drop; | 61 | goto drop; |
diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c index b9abf265c2f8..f49047b79609 100644 --- a/net/ipv4/ip_gre.c +++ b/net/ipv4/ip_gre.c | |||
@@ -216,9 +216,9 @@ static struct rtnl_link_stats64 *ipgre_get_stats64(struct net_device *dev, | |||
216 | 216 | ||
217 | /* Given src, dst and key, find appropriate for input tunnel. */ | 217 | /* Given src, dst and key, find appropriate for input tunnel. */ |
218 | 218 | ||
219 | static struct ip_tunnel * ipgre_tunnel_lookup(struct net_device *dev, | 219 | static struct ip_tunnel *ipgre_tunnel_lookup(struct net_device *dev, |
220 | __be32 remote, __be32 local, | 220 | __be32 remote, __be32 local, |
221 | __be32 key, __be16 gre_proto) | 221 | __be32 key, __be16 gre_proto) |
222 | { | 222 | { |
223 | struct net *net = dev_net(dev); | 223 | struct net *net = dev_net(dev); |
224 | int link = dev->ifindex; | 224 | int link = dev->ifindex; |
@@ -483,7 +483,7 @@ static void ipgre_err(struct sk_buff *skb, u32 info) | |||
483 | */ | 483 | */ |
484 | 484 | ||
485 | const struct iphdr *iph = (const struct iphdr *)skb->data; | 485 | const struct iphdr *iph = (const struct iphdr *)skb->data; |
486 | __be16 *p = (__be16*)(skb->data+(iph->ihl<<2)); | 486 | __be16 *p = (__be16 *)(skb->data+(iph->ihl<<2)); |
487 | int grehlen = (iph->ihl<<2) + 4; | 487 | int grehlen = (iph->ihl<<2) + 4; |
488 | const int type = icmp_hdr(skb)->type; | 488 | const int type = icmp_hdr(skb)->type; |
489 | const int code = icmp_hdr(skb)->code; | 489 | const int code = icmp_hdr(skb)->code; |
@@ -593,7 +593,7 @@ static int ipgre_rcv(struct sk_buff *skb) | |||
593 | 593 | ||
594 | iph = ip_hdr(skb); | 594 | iph = ip_hdr(skb); |
595 | h = skb->data; | 595 | h = skb->data; |
596 | flags = *(__be16*)h; | 596 | flags = *(__be16 *)h; |
597 | 597 | ||
598 | if (flags&(GRE_CSUM|GRE_KEY|GRE_ROUTING|GRE_SEQ|GRE_VERSION)) { | 598 | if (flags&(GRE_CSUM|GRE_KEY|GRE_ROUTING|GRE_SEQ|GRE_VERSION)) { |
599 | /* - Version must be 0. | 599 | /* - Version must be 0. |
@@ -617,11 +617,11 @@ static int ipgre_rcv(struct sk_buff *skb) | |||
617 | offset += 4; | 617 | offset += 4; |
618 | } | 618 | } |
619 | if (flags&GRE_KEY) { | 619 | if (flags&GRE_KEY) { |
620 | key = *(__be32*)(h + offset); | 620 | key = *(__be32 *)(h + offset); |
621 | offset += 4; | 621 | offset += 4; |
622 | } | 622 | } |
623 | if (flags&GRE_SEQ) { | 623 | if (flags&GRE_SEQ) { |
624 | seqno = ntohl(*(__be32*)(h + offset)); | 624 | seqno = ntohl(*(__be32 *)(h + offset)); |
625 | offset += 4; | 625 | offset += 4; |
626 | } | 626 | } |
627 | } | 627 | } |
@@ -921,7 +921,7 @@ static netdev_tx_t ipgre_tunnel_xmit(struct sk_buff *skb, struct net_device *dev | |||
921 | htons(ETH_P_TEB) : skb->protocol; | 921 | htons(ETH_P_TEB) : skb->protocol; |
922 | 922 | ||
923 | if (tunnel->parms.o_flags&(GRE_KEY|GRE_CSUM|GRE_SEQ)) { | 923 | if (tunnel->parms.o_flags&(GRE_KEY|GRE_CSUM|GRE_SEQ)) { |
924 | __be32 *ptr = (__be32*)(((u8*)iph) + tunnel->hlen - 4); | 924 | __be32 *ptr = (__be32 *)(((u8 *)iph) + tunnel->hlen - 4); |
925 | 925 | ||
926 | if (tunnel->parms.o_flags&GRE_SEQ) { | 926 | if (tunnel->parms.o_flags&GRE_SEQ) { |
927 | ++tunnel->o_seqno; | 927 | ++tunnel->o_seqno; |
@@ -934,7 +934,7 @@ static netdev_tx_t ipgre_tunnel_xmit(struct sk_buff *skb, struct net_device *dev | |||
934 | } | 934 | } |
935 | if (tunnel->parms.o_flags&GRE_CSUM) { | 935 | if (tunnel->parms.o_flags&GRE_CSUM) { |
936 | *ptr = 0; | 936 | *ptr = 0; |
937 | *(__sum16*)ptr = ip_compute_csum((void*)(iph+1), skb->len - sizeof(struct iphdr)); | 937 | *(__sum16 *)ptr = ip_compute_csum((void *)(iph+1), skb->len - sizeof(struct iphdr)); |
938 | } | 938 | } |
939 | } | 939 | } |
940 | 940 | ||
@@ -1190,7 +1190,7 @@ static int ipgre_header(struct sk_buff *skb, struct net_device *dev, | |||
1190 | { | 1190 | { |
1191 | struct ip_tunnel *t = netdev_priv(dev); | 1191 | struct ip_tunnel *t = netdev_priv(dev); |
1192 | struct iphdr *iph = (struct iphdr *)skb_push(skb, t->hlen); | 1192 | struct iphdr *iph = (struct iphdr *)skb_push(skb, t->hlen); |
1193 | __be16 *p = (__be16*)(iph+1); | 1193 | __be16 *p = (__be16 *)(iph+1); |
1194 | 1194 | ||
1195 | memcpy(iph, &t->parms.iph, sizeof(struct iphdr)); | 1195 | memcpy(iph, &t->parms.iph, sizeof(struct iphdr)); |
1196 | p[0] = t->parms.o_flags; | 1196 | p[0] = t->parms.o_flags; |
diff --git a/net/ipv4/ip_options.c b/net/ipv4/ip_options.c index a0d0d9d9b870..1372c4586edc 100644 --- a/net/ipv4/ip_options.c +++ b/net/ipv4/ip_options.c | |||
@@ -210,10 +210,10 @@ int ip_options_echo(struct ip_options *dopt, struct sk_buff *skb) | |||
210 | * Simple and stupid 8), but the most efficient way. | 210 | * Simple and stupid 8), but the most efficient way. |
211 | */ | 211 | */ |
212 | 212 | ||
213 | void ip_options_fragment(struct sk_buff * skb) | 213 | void ip_options_fragment(struct sk_buff *skb) |
214 | { | 214 | { |
215 | unsigned char *optptr = skb_network_header(skb) + sizeof(struct iphdr); | 215 | unsigned char *optptr = skb_network_header(skb) + sizeof(struct iphdr); |
216 | struct ip_options * opt = &(IPCB(skb)->opt); | 216 | struct ip_options *opt = &(IPCB(skb)->opt); |
217 | int l = opt->optlen; | 217 | int l = opt->optlen; |
218 | int optlen; | 218 | int optlen; |
219 | 219 | ||
@@ -248,13 +248,13 @@ void ip_options_fragment(struct sk_buff * skb) | |||
248 | */ | 248 | */ |
249 | 249 | ||
250 | int ip_options_compile(struct net *net, | 250 | int ip_options_compile(struct net *net, |
251 | struct ip_options * opt, struct sk_buff * skb) | 251 | struct ip_options *opt, struct sk_buff *skb) |
252 | { | 252 | { |
253 | int l; | 253 | int l; |
254 | unsigned char * iph; | 254 | unsigned char *iph; |
255 | unsigned char * optptr; | 255 | unsigned char *optptr; |
256 | int optlen; | 256 | int optlen; |
257 | unsigned char * pp_ptr = NULL; | 257 | unsigned char *pp_ptr = NULL; |
258 | struct rtable *rt = NULL; | 258 | struct rtable *rt = NULL; |
259 | 259 | ||
260 | if (skb != NULL) { | 260 | if (skb != NULL) { |
@@ -473,20 +473,20 @@ EXPORT_SYMBOL(ip_options_compile); | |||
473 | * Undo all the changes done by ip_options_compile(). | 473 | * Undo all the changes done by ip_options_compile(). |
474 | */ | 474 | */ |
475 | 475 | ||
476 | void ip_options_undo(struct ip_options * opt) | 476 | void ip_options_undo(struct ip_options *opt) |
477 | { | 477 | { |
478 | if (opt->srr) { | 478 | if (opt->srr) { |
479 | unsigned char * optptr = opt->__data+opt->srr-sizeof(struct iphdr); | 479 | unsigned char *optptr = opt->__data+opt->srr-sizeof(struct iphdr); |
480 | memmove(optptr+7, optptr+3, optptr[1]-7); | 480 | memmove(optptr+7, optptr+3, optptr[1]-7); |
481 | memcpy(optptr+3, &opt->faddr, 4); | 481 | memcpy(optptr+3, &opt->faddr, 4); |
482 | } | 482 | } |
483 | if (opt->rr_needaddr) { | 483 | if (opt->rr_needaddr) { |
484 | unsigned char * optptr = opt->__data+opt->rr-sizeof(struct iphdr); | 484 | unsigned char *optptr = opt->__data+opt->rr-sizeof(struct iphdr); |
485 | optptr[2] -= 4; | 485 | optptr[2] -= 4; |
486 | memset(&optptr[optptr[2]-1], 0, 4); | 486 | memset(&optptr[optptr[2]-1], 0, 4); |
487 | } | 487 | } |
488 | if (opt->ts) { | 488 | if (opt->ts) { |
489 | unsigned char * optptr = opt->__data+opt->ts-sizeof(struct iphdr); | 489 | unsigned char *optptr = opt->__data+opt->ts-sizeof(struct iphdr); |
490 | if (opt->ts_needtime) { | 490 | if (opt->ts_needtime) { |
491 | optptr[2] -= 4; | 491 | optptr[2] -= 4; |
492 | memset(&optptr[optptr[2]-1], 0, 4); | 492 | memset(&optptr[optptr[2]-1], 0, 4); |
@@ -549,8 +549,8 @@ int ip_options_get(struct net *net, struct ip_options_rcu **optp, | |||
549 | 549 | ||
550 | void ip_forward_options(struct sk_buff *skb) | 550 | void ip_forward_options(struct sk_buff *skb) |
551 | { | 551 | { |
552 | struct ip_options * opt = &(IPCB(skb)->opt); | 552 | struct ip_options *opt = &(IPCB(skb)->opt); |
553 | unsigned char * optptr; | 553 | unsigned char *optptr; |
554 | struct rtable *rt = skb_rtable(skb); | 554 | struct rtable *rt = skb_rtable(skb); |
555 | unsigned char *raw = skb_network_header(skb); | 555 | unsigned char *raw = skb_network_header(skb); |
556 | 556 | ||
diff --git a/net/ipv4/ip_sockglue.c b/net/ipv4/ip_sockglue.c index 2fd0fba77124..0a87e1fc0ce5 100644 --- a/net/ipv4/ip_sockglue.c +++ b/net/ipv4/ip_sockglue.c | |||
@@ -90,7 +90,7 @@ static void ip_cmsg_recv_opts(struct msghdr *msg, struct sk_buff *skb) | |||
90 | static void ip_cmsg_recv_retopts(struct msghdr *msg, struct sk_buff *skb) | 90 | static void ip_cmsg_recv_retopts(struct msghdr *msg, struct sk_buff *skb) |
91 | { | 91 | { |
92 | unsigned char optbuf[sizeof(struct ip_options) + 40]; | 92 | unsigned char optbuf[sizeof(struct ip_options) + 40]; |
93 | struct ip_options * opt = (struct ip_options *)optbuf; | 93 | struct ip_options *opt = (struct ip_options *)optbuf; |
94 | 94 | ||
95 | if (IPCB(skb)->opt.optlen == 0) | 95 | if (IPCB(skb)->opt.optlen == 0) |
96 | return; | 96 | return; |
diff --git a/net/ipv4/ipip.c b/net/ipv4/ipip.c index b5a1849b83d5..2d0f99bf61b3 100644 --- a/net/ipv4/ipip.c +++ b/net/ipv4/ipip.c | |||
@@ -185,7 +185,7 @@ static struct rtnl_link_stats64 *ipip_get_stats64(struct net_device *dev, | |||
185 | return tot; | 185 | return tot; |
186 | } | 186 | } |
187 | 187 | ||
188 | static struct ip_tunnel * ipip_tunnel_lookup(struct net *net, | 188 | static struct ip_tunnel *ipip_tunnel_lookup(struct net *net, |
189 | __be32 remote, __be32 local) | 189 | __be32 remote, __be32 local) |
190 | { | 190 | { |
191 | unsigned int h0 = HASH(remote); | 191 | unsigned int h0 = HASH(remote); |
@@ -260,7 +260,7 @@ static void ipip_tunnel_link(struct ipip_net *ipn, struct ip_tunnel *t) | |||
260 | rcu_assign_pointer(*tp, t); | 260 | rcu_assign_pointer(*tp, t); |
261 | } | 261 | } |
262 | 262 | ||
263 | static struct ip_tunnel * ipip_tunnel_locate(struct net *net, | 263 | static struct ip_tunnel *ipip_tunnel_locate(struct net *net, |
264 | struct ip_tunnel_parm *parms, int create) | 264 | struct ip_tunnel_parm *parms, int create) |
265 | { | 265 | { |
266 | __be32 remote = parms->iph.daddr; | 266 | __be32 remote = parms->iph.daddr; |
diff --git a/net/ipv4/ping.c b/net/ipv4/ping.c index 50009c787bcd..9f380ace22ee 100644 --- a/net/ipv4/ping.c +++ b/net/ipv4/ping.c | |||
@@ -410,7 +410,7 @@ struct pingfakehdr { | |||
410 | __wsum wcheck; | 410 | __wsum wcheck; |
411 | }; | 411 | }; |
412 | 412 | ||
413 | static int ping_getfrag(void *from, char * to, | 413 | static int ping_getfrag(void *from, char *to, |
414 | int offset, int fraglen, int odd, struct sk_buff *skb) | 414 | int offset, int fraglen, int odd, struct sk_buff *skb) |
415 | { | 415 | { |
416 | struct pingfakehdr *pfh = (struct pingfakehdr *)from; | 416 | struct pingfakehdr *pfh = (struct pingfakehdr *)from; |
diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c index bbd604c68e68..4032b818f3e4 100644 --- a/net/ipv4/raw.c +++ b/net/ipv4/raw.c | |||
@@ -288,7 +288,7 @@ void raw_icmp_error(struct sk_buff *skb, int protocol, u32 info) | |||
288 | read_unlock(&raw_v4_hashinfo.lock); | 288 | read_unlock(&raw_v4_hashinfo.lock); |
289 | } | 289 | } |
290 | 290 | ||
291 | static int raw_rcv_skb(struct sock * sk, struct sk_buff * skb) | 291 | static int raw_rcv_skb(struct sock *sk, struct sk_buff *skb) |
292 | { | 292 | { |
293 | /* Charge it to the socket. */ | 293 | /* Charge it to the socket. */ |
294 | 294 | ||
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index e4d18f2a305d..a13ce2364ed2 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
@@ -2215,7 +2215,7 @@ static int ip_mkroute_input(struct sk_buff *skb, | |||
2215 | struct in_device *in_dev, | 2215 | struct in_device *in_dev, |
2216 | __be32 daddr, __be32 saddr, u32 tos) | 2216 | __be32 daddr, __be32 saddr, u32 tos) |
2217 | { | 2217 | { |
2218 | struct rtable* rth = NULL; | 2218 | struct rtable *rth = NULL; |
2219 | int err; | 2219 | int err; |
2220 | unsigned hash; | 2220 | unsigned hash; |
2221 | 2221 | ||
@@ -2257,11 +2257,11 @@ static int ip_route_input_slow(struct sk_buff *skb, __be32 daddr, __be32 saddr, | |||
2257 | struct flowi4 fl4; | 2257 | struct flowi4 fl4; |
2258 | unsigned flags = 0; | 2258 | unsigned flags = 0; |
2259 | u32 itag = 0; | 2259 | u32 itag = 0; |
2260 | struct rtable * rth; | 2260 | struct rtable *rth; |
2261 | unsigned hash; | 2261 | unsigned hash; |
2262 | __be32 spec_dst; | 2262 | __be32 spec_dst; |
2263 | int err = -EINVAL; | 2263 | int err = -EINVAL; |
2264 | struct net * net = dev_net(dev); | 2264 | struct net *net = dev_net(dev); |
2265 | 2265 | ||
2266 | /* IP on this device is disabled. */ | 2266 | /* IP on this device is disabled. */ |
2267 | 2267 | ||
@@ -2433,7 +2433,7 @@ martian_source_keep_err: | |||
2433 | int ip_route_input_common(struct sk_buff *skb, __be32 daddr, __be32 saddr, | 2433 | int ip_route_input_common(struct sk_buff *skb, __be32 daddr, __be32 saddr, |
2434 | u8 tos, struct net_device *dev, bool noref) | 2434 | u8 tos, struct net_device *dev, bool noref) |
2435 | { | 2435 | { |
2436 | struct rtable * rth; | 2436 | struct rtable *rth; |
2437 | unsigned hash; | 2437 | unsigned hash; |
2438 | int iif = dev->ifindex; | 2438 | int iif = dev->ifindex; |
2439 | struct net *net; | 2439 | struct net *net; |
@@ -3068,7 +3068,7 @@ nla_put_failure: | |||
3068 | return -EMSGSIZE; | 3068 | return -EMSGSIZE; |
3069 | } | 3069 | } |
3070 | 3070 | ||
3071 | static int inet_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr* nlh, void *arg) | 3071 | static int inet_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh, void *arg) |
3072 | { | 3072 | { |
3073 | struct net *net = sock_net(in_skb->sk); | 3073 | struct net *net = sock_net(in_skb->sk); |
3074 | struct rtmsg *rtm; | 3074 | struct rtmsg *rtm; |
diff --git a/net/ipv4/tcp_probe.c b/net/ipv4/tcp_probe.c index a981cdc0a6e9..a8df7052e0b6 100644 --- a/net/ipv4/tcp_probe.c +++ b/net/ipv4/tcp_probe.c | |||
@@ -138,7 +138,7 @@ static struct jprobe tcp_jprobe = { | |||
138 | .entry = jtcp_rcv_established, | 138 | .entry = jtcp_rcv_established, |
139 | }; | 139 | }; |
140 | 140 | ||
141 | static int tcpprobe_open(struct inode * inode, struct file * file) | 141 | static int tcpprobe_open(struct inode *inode, struct file *file) |
142 | { | 142 | { |
143 | /* Reset (empty) log */ | 143 | /* Reset (empty) log */ |
144 | spin_lock_bh(&tcp_probe.lock); | 144 | spin_lock_bh(&tcp_probe.lock); |
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index ad1e0dd4da48..381ea5115142 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c | |||
@@ -847,7 +847,7 @@ int udp_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, | |||
847 | * Get and verify the address. | 847 | * Get and verify the address. |
848 | */ | 848 | */ |
849 | if (msg->msg_name) { | 849 | if (msg->msg_name) { |
850 | struct sockaddr_in * usin = (struct sockaddr_in *)msg->msg_name; | 850 | struct sockaddr_in *usin = (struct sockaddr_in *)msg->msg_name; |
851 | if (msg->msg_namelen < sizeof(*usin)) | 851 | if (msg->msg_namelen < sizeof(*usin)) |
852 | return -EINVAL; | 852 | return -EINVAL; |
853 | if (usin->sin_family != AF_INET) { | 853 | if (usin->sin_family != AF_INET) { |
diff --git a/net/ipv4/udp_impl.h b/net/ipv4/udp_impl.h index aaad650d47d9..5a681e298b90 100644 --- a/net/ipv4/udp_impl.h +++ b/net/ipv4/udp_impl.h | |||
@@ -25,7 +25,7 @@ extern int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, | |||
25 | size_t len, int noblock, int flags, int *addr_len); | 25 | size_t len, int noblock, int flags, int *addr_len); |
26 | extern int udp_sendpage(struct sock *sk, struct page *page, int offset, | 26 | extern int udp_sendpage(struct sock *sk, struct page *page, int offset, |
27 | size_t size, int flags); | 27 | size_t size, int flags); |
28 | extern int udp_queue_rcv_skb(struct sock * sk, struct sk_buff *skb); | 28 | extern int udp_queue_rcv_skb(struct sock *sk, struct sk_buff *skb); |
29 | extern void udp_destroy_sock(struct sock *sk); | 29 | extern void udp_destroy_sock(struct sock *sk); |
30 | 30 | ||
31 | #ifdef CONFIG_PROC_FS | 31 | #ifdef CONFIG_PROC_FS |
diff --git a/net/ipv4/xfrm4_policy.c b/net/ipv4/xfrm4_policy.c index a0b4c5da8d43..8ef24e16afce 100644 --- a/net/ipv4/xfrm4_policy.c +++ b/net/ipv4/xfrm4_policy.c | |||
@@ -152,7 +152,7 @@ _decode_session4(struct sk_buff *skb, struct flowi *fl, int reverse) | |||
152 | 152 | ||
153 | case IPPROTO_AH: | 153 | case IPPROTO_AH: |
154 | if (pskb_may_pull(skb, xprth + 8 - skb->data)) { | 154 | if (pskb_may_pull(skb, xprth + 8 - skb->data)) { |
155 | __be32 *ah_hdr = (__be32*)xprth; | 155 | __be32 *ah_hdr = (__be32 *)xprth; |
156 | 156 | ||
157 | fl4->fl4_ipsec_spi = ah_hdr[1]; | 157 | fl4->fl4_ipsec_spi = ah_hdr[1]; |
158 | } | 158 | } |