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

ipv6: fix checkpatch errors with space required or prohibited

Signed-off-by: Wang Yufen <wangyufen@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Wang Yufen and committed by
David S. Miller
1c8669e0 22b285d6

+19 -19
+19 -19
net/ipv6/addrlabel.c
··· 6 6 */ 7 7 /* 8 8 * Author: 9 - * YOSHIFUJI Hideaki @ USAGI/WIDE Project <yoshfuji@linux-ipv6.org> 9 + * YOSHIFUJI Hideaki @ USAGI/WIDE Project <yoshfuji@linux-ipv6.org> 10 10 */ 11 11 12 12 #include <linux/kernel.h> ··· 22 22 #if 0 23 23 #define ADDRLABEL(x...) printk(x) 24 24 #else 25 - #define ADDRLABEL(x...) do { ; } while(0) 25 + #define ADDRLABEL(x...) do { ; } while (0) 26 26 #endif 27 27 28 28 /* ··· 87 87 { /* ::/0 */ 88 88 .prefix = &in6addr_any, 89 89 .label = 1, 90 - },{ /* fc00::/7 */ 91 - .prefix = &(struct in6_addr){{{ 0xfc }}}, 90 + }, { /* fc00::/7 */ 91 + .prefix = &(struct in6_addr){ { { 0xfc } } } , 92 92 .prefixlen = 7, 93 93 .label = 5, 94 - },{ /* fec0::/10 */ 95 - .prefix = &(struct in6_addr){{{ 0xfe, 0xc0 }}}, 94 + }, { /* fec0::/10 */ 95 + .prefix = &(struct in6_addr){ { { 0xfe, 0xc0 } } }, 96 96 .prefixlen = 10, 97 97 .label = 11, 98 - },{ /* 2002::/16 */ 99 - .prefix = &(struct in6_addr){{{ 0x20, 0x02 }}}, 98 + }, { /* 2002::/16 */ 99 + .prefix = &(struct in6_addr){ { { 0x20, 0x02 } } }, 100 100 .prefixlen = 16, 101 101 .label = 2, 102 - },{ /* 3ffe::/16 */ 103 - .prefix = &(struct in6_addr){{{ 0x3f, 0xfe }}}, 102 + }, { /* 3ffe::/16 */ 103 + .prefix = &(struct in6_addr){ { { 0x3f, 0xfe } } }, 104 104 .prefixlen = 16, 105 105 .label = 12, 106 - },{ /* 2001::/32 */ 107 - .prefix = &(struct in6_addr){{{ 0x20, 0x01 }}}, 106 + }, { /* 2001::/32 */ 107 + .prefix = &(struct in6_addr){ { { 0x20, 0x01 } } }, 108 108 .prefixlen = 32, 109 109 .label = 6, 110 - },{ /* 2001:10::/28 */ 111 - .prefix = &(struct in6_addr){{{ 0x20, 0x01, 0x00, 0x10 }}}, 110 + }, { /* 2001:10::/28 */ 111 + .prefix = &(struct in6_addr){ { { 0x20, 0x01, 0x00, 0x10 } } }, 112 112 .prefixlen = 28, 113 113 .label = 7, 114 - },{ /* ::ffff:0:0 */ 115 - .prefix = &(struct in6_addr){{{ [10] = 0xff, [11] = 0xff }}}, 114 + }, { /* ::ffff:0:0 */ 115 + .prefix = &(struct in6_addr){ { { [10] = 0xff, [11] = 0xff } } }, 116 116 .prefixlen = 96, 117 117 .label = 4, 118 - },{ /* ::/96 */ 118 + }, { /* ::/96 */ 119 119 .prefix = &in6addr_any, 120 120 .prefixlen = 96, 121 121 .label = 3, 122 - },{ /* ::1/128 */ 122 + }, { /* ::1/128 */ 123 123 .prefix = &in6addr_loopback, 124 124 .prefixlen = 128, 125 125 .label = 0, ··· 440 440 if (label == IPV6_ADDR_LABEL_DEFAULT) 441 441 return -EINVAL; 442 442 443 - switch(nlh->nlmsg_type) { 443 + switch (nlh->nlmsg_type) { 444 444 case RTM_NEWADDRLABEL: 445 445 if (ifal->ifal_index && 446 446 !__dev_get_by_index(net, ifal->ifal_index))