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

bridge: change the position of '{' to the pre line

That open brace { should be on the previous line.

Signed-off-by: Tan Xiaojun <tanxiaojun@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

tanxiaojun and committed by
David S. Miller
97ad8b53 56b148eb

+9 -18
+2 -4
net/bridge/netfilter/ebtable_broute.c
··· 23 23 .policy = EBT_ACCEPT, 24 24 }; 25 25 26 - static struct ebt_replace_kernel initial_table = 27 - { 26 + static struct ebt_replace_kernel initial_table = { 28 27 .name = "broute", 29 28 .valid_hooks = 1 << NF_BR_BROUTING, 30 29 .entries_size = sizeof(struct ebt_entries), ··· 40 41 return 0; 41 42 } 42 43 43 - static const struct ebt_table broute_table = 44 - { 44 + static const struct ebt_table broute_table = { 45 45 .name = "broute", 46 46 .table = &initial_table, 47 47 .valid_hooks = 1 << NF_BR_BROUTING,
+3 -6
net/bridge/netfilter/ebtable_filter.c
··· 14 14 #define FILTER_VALID_HOOKS ((1 << NF_BR_LOCAL_IN) | (1 << NF_BR_FORWARD) | \ 15 15 (1 << NF_BR_LOCAL_OUT)) 16 16 17 - static struct ebt_entries initial_chains[] = 18 - { 17 + static struct ebt_entries initial_chains[] = { 19 18 { 20 19 .name = "INPUT", 21 20 .policy = EBT_ACCEPT, ··· 29 30 }, 30 31 }; 31 32 32 - static struct ebt_replace_kernel initial_table = 33 - { 33 + static struct ebt_replace_kernel initial_table = { 34 34 .name = "filter", 35 35 .valid_hooks = FILTER_VALID_HOOKS, 36 36 .entries_size = 3 * sizeof(struct ebt_entries), ··· 48 50 return 0; 49 51 } 50 52 51 - static const struct ebt_table frame_filter = 52 - { 53 + static const struct ebt_table frame_filter = { 53 54 .name = "filter", 54 55 .table = &initial_table, 55 56 .valid_hooks = FILTER_VALID_HOOKS,
+3 -6
net/bridge/netfilter/ebtable_nat.c
··· 14 14 #define NAT_VALID_HOOKS ((1 << NF_BR_PRE_ROUTING) | (1 << NF_BR_LOCAL_OUT) | \ 15 15 (1 << NF_BR_POST_ROUTING)) 16 16 17 - static struct ebt_entries initial_chains[] = 18 - { 17 + static struct ebt_entries initial_chains[] = { 19 18 { 20 19 .name = "PREROUTING", 21 20 .policy = EBT_ACCEPT, ··· 29 30 } 30 31 }; 31 32 32 - static struct ebt_replace_kernel initial_table = 33 - { 33 + static struct ebt_replace_kernel initial_table = { 34 34 .name = "nat", 35 35 .valid_hooks = NAT_VALID_HOOKS, 36 36 .entries_size = 3 * sizeof(struct ebt_entries), ··· 48 50 return 0; 49 51 } 50 52 51 - static struct ebt_table frame_nat = 52 - { 53 + static struct ebt_table frame_nat = { 53 54 .name = "nat", 54 55 .table = &initial_table, 55 56 .valid_hooks = NAT_VALID_HOOKS,
+1 -2
net/bridge/netfilter/ebtables.c
··· 2375 2375 } 2376 2376 #endif 2377 2377 2378 - static struct nf_sockopt_ops ebt_sockopts = 2379 - { 2378 + static struct nf_sockopt_ops ebt_sockopts = { 2380 2379 .pf = PF_INET, 2381 2380 .set_optmin = EBT_BASE_CTL, 2382 2381 .set_optmax = EBT_SO_SET_MAX + 1,