Commit ac3c8172ff5efa8078e5380677dff0badf70b729
Committed by
David S. Miller
1 parent
b5a4257cef
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
net/ipv6/exthdrs.c: Checkpatch cleanups
exthdrs.c:726: WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable exthdrs.c:741: ERROR: "(foo*)" should be "(foo *)" exthdrs.c:741: ERROR: "(foo*)" should be "(foo *)" exthdrs.c:744: ERROR: "(foo**)" should be "(foo **)" exthdrs.c:746: ERROR: "(foo**)" should be "(foo **)" exthdrs.c:748: ERROR: "(foo**)" should be "(foo **)" exthdrs.c:750: ERROR: "(foo**)" should be "(foo **)" exthdrs.c:755: WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable exthdrs.c:896: WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable Signed-off-by: Eldad Zack <eldad@fogrefinery.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Showing 1 changed file with 5 additions and 8 deletions Side-by-side Diff
net/ipv6/exthdrs.c
... | ... | @@ -722,7 +722,6 @@ |
722 | 722 | if (opt->hopopt) |
723 | 723 | ipv6_push_exthdr(skb, proto, NEXTHDR_HOP, opt->hopopt); |
724 | 724 | } |
725 | - | |
726 | 725 | EXPORT_SYMBOL(ipv6_push_nfrag_opts); |
727 | 726 | |
728 | 727 | void ipv6_push_frag_opts(struct sk_buff *skb, struct ipv6_txoptions *opt, u8 *proto) |
729 | 728 | |
730 | 729 | |
731 | 730 | |
732 | 731 | |
733 | 732 | |
... | ... | @@ -738,20 +737,19 @@ |
738 | 737 | |
739 | 738 | opt2 = sock_kmalloc(sk, opt->tot_len, GFP_ATOMIC); |
740 | 739 | if (opt2) { |
741 | - long dif = (char*)opt2 - (char*)opt; | |
740 | + long dif = (char *)opt2 - (char *)opt; | |
742 | 741 | memcpy(opt2, opt, opt->tot_len); |
743 | 742 | if (opt2->hopopt) |
744 | - *((char**)&opt2->hopopt) += dif; | |
743 | + *((char **)&opt2->hopopt) += dif; | |
745 | 744 | if (opt2->dst0opt) |
746 | - *((char**)&opt2->dst0opt) += dif; | |
745 | + *((char **)&opt2->dst0opt) += dif; | |
747 | 746 | if (opt2->dst1opt) |
748 | - *((char**)&opt2->dst1opt) += dif; | |
747 | + *((char **)&opt2->dst1opt) += dif; | |
749 | 748 | if (opt2->srcrt) |
750 | - *((char**)&opt2->srcrt) += dif; | |
749 | + *((char **)&opt2->srcrt) += dif; | |
751 | 750 | } |
752 | 751 | return opt2; |
753 | 752 | } |
754 | - | |
755 | 753 | EXPORT_SYMBOL_GPL(ipv6_dup_options); |
756 | 754 | |
757 | 755 | static int ipv6_renew_option(void *ohdr, |
... | ... | @@ -892,6 +890,5 @@ |
892 | 890 | fl6->daddr = *((struct rt0_hdr *)opt->srcrt)->addr; |
893 | 891 | return orig; |
894 | 892 | } |
895 | - | |
896 | 893 | EXPORT_SYMBOL_GPL(fl6_update_dst); |