Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ipv6: White-space cleansing : Structure layouts

This patch makes no changes to the logic of the code but simply addresses
coding style issues as detected by checkpatch.

Both objdump and diff -w show no differences.

This patch addresses structure definitions, specifically it cleanses the brace
placement and replaces spaces with tabs in a few places.

Signed-off-by: Ian Morris <ipm@chirality.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Ian Morris and committed by
David S. Miller
cc24beca 67ba4152

+13 -21
+2 -3
net/ipv6/ah6.c
··· 755 755 return 0; 756 756 } 757 757 758 - static const struct xfrm_type ah6_type = 759 - { 758 + static const struct xfrm_type ah6_type = { 760 759 .description = "AH6", 761 760 .owner = THIS_MODULE, 762 - .proto = IPPROTO_AH, 761 + .proto = IPPROTO_AH, 763 762 .flags = XFRM_TYPE_REPLAY_PROT, 764 763 .init_state = ah6_init_state, 765 764 .destructor = ah6_destroy,
+3 -4
net/ipv6/esp6.c
··· 621 621 return 0; 622 622 } 623 623 624 - static const struct xfrm_type esp6_type = 625 - { 624 + static const struct xfrm_type esp6_type = { 626 625 .description = "ESP6", 627 - .owner = THIS_MODULE, 628 - .proto = IPPROTO_ESP, 626 + .owner = THIS_MODULE, 627 + .proto = IPPROTO_ESP, 629 628 .flags = XFRM_TYPE_REPLAY_PROT, 630 629 .init_state = esp6_init_state, 631 630 .destructor = esp6_destroy,
+2 -4
net/ipv6/ipcomp6.c
··· 181 181 return 0; 182 182 } 183 183 184 - static const struct xfrm_type ipcomp6_type = 185 - { 184 + static const struct xfrm_type ipcomp6_type = { 186 185 .description = "IPCOMP6", 187 186 .owner = THIS_MODULE, 188 187 .proto = IPPROTO_COMP, ··· 192 193 .hdr_offset = xfrm6_find_1stfragopt, 193 194 }; 194 195 195 - static struct xfrm6_protocol ipcomp6_protocol = 196 - { 196 + static struct xfrm6_protocol ipcomp6_protocol = { 197 197 .handler = xfrm6_rcv, 198 198 .cb_handler = ipcomp6_rcv_cb, 199 199 .err_handler = ipcomp6_err,
+4 -6
net/ipv6/mip6.c
··· 336 336 { 337 337 } 338 338 339 - static const struct xfrm_type mip6_destopt_type = 340 - { 339 + static const struct xfrm_type mip6_destopt_type = { 341 340 .description = "MIP6DESTOPT", 342 341 .owner = THIS_MODULE, 343 - .proto = IPPROTO_DSTOPTS, 342 + .proto = IPPROTO_DSTOPTS, 344 343 .flags = XFRM_TYPE_NON_FRAGMENT | XFRM_TYPE_LOCAL_COADDR, 345 344 .init_state = mip6_destopt_init_state, 346 345 .destructor = mip6_destopt_destroy, ··· 468 469 { 469 470 } 470 471 471 - static const struct xfrm_type mip6_rthdr_type = 472 - { 472 + static const struct xfrm_type mip6_rthdr_type = { 473 473 .description = "MIP6RT", 474 474 .owner = THIS_MODULE, 475 - .proto = IPPROTO_ROUTING, 475 + .proto = IPPROTO_ROUTING, 476 476 .flags = XFRM_TYPE_NON_FRAGMENT | XFRM_TYPE_REMOTE_COADDR, 477 477 .init_state = mip6_rthdr_init_state, 478 478 .destructor = mip6_rthdr_destroy,
+2 -4
net/ipv6/reassembly.c
··· 62 62 63 63 static const char ip6_frag_cache_name[] = "ip6-frags"; 64 64 65 - struct ip6frag_skb_cb 66 - { 65 + struct ip6frag_skb_cb { 67 66 struct inet6_skb_parm h; 68 67 int offset; 69 68 }; ··· 574 575 return -1; 575 576 } 576 577 577 - static const struct inet6_protocol frag_protocol = 578 - { 578 + static const struct inet6_protocol frag_protocol = { 579 579 .handler = ipv6_frag_rcv, 580 580 .flags = INET6_PROTO_NOPOLICY, 581 581 };