Clean up indentation in net/ipv6/transp_v6.h
Subsystems (3)
PATCH v4 1/4 Clean up indentation in net/ipv6/transp_v6.h
Reduce the indentation of most of the functions and make it a bit more consistent. This allows longer function and arg names to be consistently indented without wrapping.
--- include/net/transp_v6.h | 70 ++++++++++++++++++++++++------------------------- 1 file changed, 35 insertions(+), 35 deletions(-)
include/net/transp_v6.h +35 -35
@@ -7,47 +7,47 @@* IPv6 transport protocols */ -extern struct proto rawv6_prot; -extern struct proto udpv6_prot; -extern struct proto udplitev6_prot; -extern struct proto tcpv6_prot; -extern struct proto pingv6_prot; +extern struct proto rawv6_prot; +extern struct proto udpv6_prot; +extern struct proto udplitev6_prot; +extern struct proto tcpv6_prot; +extern struct proto pingv6_prot;struct flowi6 ;/* extension headers */ -extern int ipv6_exthdrs_init (void ); -extern void ipv6_exthdrs_exit (void ); -extern int ipv6_frag_init (void ); -extern void ipv6_frag_exit (void ); +extern int ipv6_exthdrs_init (void ); +extern void ipv6_exthdrs_exit (void ); +extern int ipv6_frag_init (void ); +extern void ipv6_frag_exit (void );/* transport protocols */ -extern int pingv6_init (void ); -extern void pingv6_exit (void ); -extern int rawv6_init (void ); -extern void rawv6_exit (void ); -extern int udpv6_init (void ); -extern void udpv6_exit (void ); -extern int udplitev6_init (void ); -extern void udplitev6_exit (void ); -extern int tcpv6_init (void ); -extern void tcpv6_exit (void ); - -extern int udpv6_connect (struct sock *sk, -struct sockaddr *uaddr, -int addr_len); - -extern int ip6_datagram_recv_ctl (struct sock *sk, -struct msghdr *msg, -struct sk_buff *skb); - -extern int ip6_datagram_send_ctl (struct net *net, -struct sock *sk, -struct msghdr *msg, -struct flowi6 *fl6, -struct ipv6_txoptions *opt, -int *hlimit,int *tclass, -int *dontfrag); +extern int pingv6_init (void ); +extern void pingv6_exit (void ); +extern int rawv6_init (void ); +extern void rawv6_exit (void ); +extern int udpv6_init (void ); +extern void udpv6_exit (void ); +extern int udplitev6_init (void ); +extern void udplitev6_exit (void ); +extern int tcpv6_init (void ); +extern void tcpv6_exit (void ); + +extern int udpv6_connect (struct sock *sk, +struct sockaddr *uaddr, +int addr_len); + +extern int ip6_datagram_recv_ctl (struct sock *sk, +struct msghdr *msg, +struct sk_buff *skb); + +extern int ip6_datagram_send_ctl (struct net *net, +struct sock *sk, +struct msghdr *msg, +struct flowi6 *fl6, +struct ipv6_txoptions *opt, +int *hlimit,int *tclass, +int *dontfrag);#define LOOPBACK4_IPV6 cpu_to_be32(0x7f000006)
Signature · 1 line
1.8.2.1
PATCH v4 2/4 net: ipv6: Unify {raw,udp}6_sock_seq_show.
udp6_sock_seq_show and raw6_sock_seq_show are identical, except the UDP version displays ports and the raw version displays the protocol. Refactor most of the code in these two functions into a new common ip6_dgram_sock_seq_show function, in preparation for using it to display ICMPv6 sockets as well.
Also reduce the indentation in parts of include/net/transp_v6.h to improve readability.
Compiles and displays reasonable results with CONFIG_IPV6={n,m,y}
--- include/net/transp_v6.h | 13 +++++++++++++ net/ipv6/datagram.c | 27 +++++++++++++++++++++++++++ net/ipv6/raw.c | 45 ++++++++------------------------------------- net/ipv6/udp.c | 49 +++++++++---------------------------------------- 4 files changed, 57 insertions(+), 77 deletions(-)
include/net/transp_v6.h +13 -0
@@ -49,6 +49,12 @@ extern int ip6_datagram_send_ctl(struct net *net, int *hlimit, int *tclass, int *dontfrag); +extern void ip6_dgram_sock_seq_show (struct seq_file *seq, +struct sock *sp, +__u16 srcp, +__u16 destp, +int bucket); +#define LOOPBACK4_IPV6 cpu_to_be32(0x7f000006)/*
@@ -58,4 +64,11 @@ extern const struct inet_connection_sock_af_ops ipv4_specific;extern void inet6_destroy_sock (struct sock *sk); +#define IPV6_SEQ_DGRAM_HEADER \ + " sl " \ + "local_address " \ + "remote_address " \ + "st tx_queue rx_queue tr tm->when retrnsmt" \ + " uid timeout inode ref pointer drops\n" +#endif
net/ipv6/datagram.c +27 -0
@@ -879,3 +879,30 @@ exit_f:return err; }EXPORT_SYMBOL_GPL (ip6_datagram_send_ctl); + +void ip6_dgram_sock_seq_show (struct seq_file *seq,struct sock *sp, +__u16 srcp,__u16 destp,int bucket) +{ +struct ipv6_pinfo *np =inet6_sk (sp); +const struct in6_addr *dest, *src; + + dest = &np->daddr; + src = &np->rcv_saddr; +seq_printf (seq, +"%5d: %08X%08X%08X%08X:%04X %08X%08X%08X%08X:%04X " +"%02X %08X:%08X %02X:%08lX %08X %5d %8d %lu %d %pK %d\n" , + bucket, + src->s6_addr32[0 ], src->s6_addr32[1 ], + src->s6_addr32[2 ], src->s6_addr32[3 ], srcp, + dest->s6_addr32[0 ], dest->s6_addr32[1 ], + dest->s6_addr32[2 ], dest->s6_addr32[3 ], destp, + sp->sk_state, +sk_wmem_alloc_get (sp), +sk_rmem_alloc_get (sp), +0 ,0L ,0 , +from_kuid_munged (seq_user_ns (seq),sock_i_uid (sp)), +0 , +sock_i_ino (sp), +atomic_read (&sp->sk_refcnt), sp, +atomic_read (&sp->sk_drops)); +}
net/ipv6/raw.c +8 -37
53 lines not on this page · raw message
net/ipv6/udp.c +9 -40
57 lines not on this page · raw message
Signature · 1 line
1.8.2.1
Re: [PATCH v4 2/4] net: ipv6: Unify {raw,udp}6_sock_seq_show.
From: Lorenzo Colitti <[email protected]>
Date: Sat, 1 Jun 2013 10:05:48 +0900
Quoted 6 lines
udp6_sock_seq_showandraw6_sock_seq_showare identical, except the UDP version displays ports and the raw version displays the protocol. Refactor most of the code in these two functions into a new commonip6_dgram_sock_seq_showfunction, in preparation for using it to display ICMPv6 sockets as well.
Quoted 6 lines
Also reduce the indentation in parts of
include/net/transp_v6.hto improve readability.Compiles and displays reasonable results with
CONFIG_IPV6={n,m,y}Signed-off-by Lorenzo Colitti <[email protected]>
Applied.
PATCH v4 3/4 net: ipv4: make the ping /proc code AF-independent
In reply to Lorenzo ColittiIntroduce a ping_seq_afinfo structure (similar to its UDP equivalent) and use it to make some of the ping /proc functions address-family independent. Rename the remaining ping /proc functions from ping_* to ping_v4_*.
Compiles and displays reasonable results with CONFIG_IPV6={n,m,y}
--- include/net/ping.h | 8 ++++++ net/ipv4/ping.c | 73 +++++++++++++++++++++++++++++++++++------------------- 2 files changed, 55 insertions(+), 26 deletions(-)
include/net/ping.h +8 -0
@@ -49,6 +49,7 @@ struct ping_table {struct ping_iter_state {struct seq_net_private p;int bucket; +sa_family_t family; };extern struct proto ping_prot;
@@ -87,6 +88,13 @@ int ping_queue_rcv_skb(struct sock *sk, struct sk_buff *skb);void ping_rcv (struct sk_buff *skb);#ifdef CONFIG_PROC_FS +struct ping_seq_afinfo { +char *name; +sa_family_t family; +const struct file_operations *seq_fops; +const struct seq_operations seq_ops; +}; +extern int __init ping_proc_init (void );extern void ping_proc_exit (void );#endif
net/ipv4/ping.c +47 -26
152 lines not on this page · raw message
Signature · 1 line
1.8.2.1
Re: [PATCH v4 3/4] net: ipv4: make the ping /proc code AF-independent
From: Lorenzo Colitti <[email protected]>
Date: Sat, 1 Jun 2013 10:05:49 +0900
Quoted 8 lines
Introduce a
ping_seq_afinfostructure (similar to its UDP equivalent) and use it to make some of the ping /proc functions address-family independent. Rename the remaining ping /proc functions from ping_* to ping_v4_*.Compiles and displays reasonable results with
CONFIG_IPV6={n,m,y}Signed-off-by Lorenzo Colitti <[email protected]>
Applied.
PATCH v4 4/4 net: ipv6: Implement /proc/net/icmp6.
In reply to Lorenzo ColittiThe format is based on /proc/net/icmp and /proc/net/{udp,raw}6.
Compiles and displays reasonable results with CONFIG_IPV6={n,m,y} Couldn't figure out how to test without CONFIG_PROC_FS enabled.
--- include/net/ping.h | 8 +++++ net/ipv4/ping.c | 21 ++++++----- net/ipv6/ping.c | 102 +++++++++++++++++++++++++++++++++++++++++------------ 3 files changed, 99 insertions(+), 32 deletions(-)
include/net/ping.h +8 -0
@@ -95,6 +95,14 @@ struct ping_seq_afinfo { const struct seq_operations seq_ops; }; +extern const struct file_operations ping_seq_fops; + +void *ping_seq_start (struct seq_file *seq,loff_t *pos,sa_family_t family); +void *ping_seq_next (struct seq_file *seq,void *v,loff_t *pos); +void ping_seq_stop (struct seq_file *seq,void *v); +int ping_proc_register (struct net *net,struct ping_seq_afinfo *afinfo); +void ping_proc_unregister (struct net *net,struct ping_seq_afinfo *afinfo); +extern int __init ping_proc_init (void );extern void ping_proc_exit (void );#endif
net/ipv4/ping.c +12 -9
@@ -1035,8 +1035,7 @@ static struct sock *ping_get_idx(struct seq_file *seq, loff_t pos)return pos ?NULL : sk; } -static void *ping_seq_start (struct seq_file *seq,loff_t *pos, -sa_family_t family) +void *ping_seq_start (struct seq_file *seq,loff_t *pos,sa_family_t family) {struct ping_iter_state *state = seq->private; state->bucket =0 ;
@@ -1046,13 +1045,14 @@ static void *ping_seq_start(struct seq_file *seq, loff_t *pos,return *pos ?ping_get_idx (seq, *pos-1 ) :SEQ_START_TOKEN ; } +EXPORT_SYMBOL_GPL (ping_seq_start);static void *ping_v4_seq_start (struct seq_file *seq,loff_t *pos) {return ping_seq_start (seq, pos,AF_INET ); } -static void *ping_seq_next (struct seq_file *seq,void *v,loff_t *pos) +void *ping_seq_next (struct seq_file *seq,void *v,loff_t *pos) {struct sock *sk;
@@ -1064,11 +1064,13 @@ static void *ping_seq_next(struct seq_file *seq, void *v, loff_t *pos) ++*pos;return sk; } +EXPORT_SYMBOL_GPL (ping_seq_next); -static void ping_seq_stop (struct seq_file *seq,void *v) +void ping_seq_stop (struct seq_file *seq,void *v) {read_unlock_bh (&ping_table.lock); } +EXPORT_SYMBOL_GPL (ping_seq_stop);static void ping_v4_format_sock (struct sock *sp,struct seq_file *f,int bucket,int *len)
@@ -1122,12 +1124,13 @@ static int ping_seq_open(struct inode *inode, struct file *file) sizeof(struct ping_iter_state)); } -static const struct file_operations ping_seq_fops = { +const struct file_operations ping_seq_fops = { .open = ping_seq_open, .read = seq_read, .llseek = seq_lseek, .release = seq_release_net, }; +EXPORT_SYMBOL_GPL (ping_seq_fops);static struct ping_seq_afinfo ping_v4_seq_afinfo = { .name ="icmp" ,
@@ -1141,7 +1144,7 @@ static struct ping_seq_afinfo ping_v4_seq_afinfo = { }, }; -static int ping_proc_register (struct net *net,struct ping_seq_afinfo *afinfo) +int ping_proc_register (struct net *net,struct ping_seq_afinfo *afinfo) {struct proc_dir_entry *p; p = proc_create_data(afinfo->name, S_IRUGO, net->proc_net,
@@ -1150,13 +1153,13 @@ static int ping_proc_register(struct net *net, struct ping_seq_afinfo *afinfo)return -ENOMEM ;return 0 ; } +EXPORT_SYMBOL_GPL (ping_proc_register); -static void ping_proc_unregister (struct net *net, -struct ping_seq_afinfo *afinfo) +void ping_proc_unregister (struct net *net,struct ping_seq_afinfo *afinfo) {remove_proc_entry (afinfo->name, net->proc_net); } - +EXPORT_SYMBOL_GPL (ping_proc_unregister);static int __net_init ping_v4_proc_init_net (struct net *net) {
net/ipv6/ping.c +79 -23
111 lines not on this page · raw message
Signature · 1 line
1.8.2.1
Re: [PATCH v4 4/4] net: ipv6: Implement /proc/net/icmp6.
From: Lorenzo Colitti <[email protected]>
Date: Sat, 1 Jun 2013 10:05:50 +0900
Quoted 6 lines
The format is based on
/proc/net/icmpand/proc/net/{udp,raw}6.Compiles and displays reasonable results with
CONFIG_IPV6={n,m,y}Couldn't figure out how to test withoutCONFIG_PROC_FSenabled.Signed-off-by Lorenzo Colitti <[email protected]>
Applied.
Quoted 3 lines · Lorenzo Colitti
Reduce the indentation of most of the functions and make it a bit more consistent. This allows longer function and arg names to be consistently indented without wrapping.
[]
include/net/transp_v6.h
Quoted 1 line
include/net/transp_v6.h +0
-0
[]
include/net/transp_v6.h
Quoted 1 line
include/net/transp_v6.h +0
-0@@ -7,47 +7,47 @@
[]
include/net/transp_v6.h line 19
Quoted 2 lines
include/net/transp_v6.h +0
-1/* extension headers */ -extern int ipv6_exthdrs_init (void );
[]
include/net/transp_v6.h line 19
Quoted 1 line
include/net/transp_v6.h +1
-0+extern int ipv6_exthdrs_init (void );
externs aren't useful here and I suggest prototypes like int ipv6_exthdrs_init(void);
include/net/transp_v6.h line 50
Quoted 7 lines
include/net/transp_v6.h +0
-7-extern int ip6_datagram_send_ctl (struct net *net, -struct sock *sk, -struct msghdr *msg, -struct flowi6 *fl6, -struct ipv6_txoptions *opt, -int *hlimit,int *tclass, -int *dontfrag);
[]
include/net/transp_v6.h line 50
Quoted 7 lines
include/net/transp_v6.h +7
-0+extern int ip6_datagram_send_ctl (struct net *net, +struct sock *sk, +struct msghdr *msg, +struct flowi6 *fl6, +struct ipv6_txoptions *opt, +int *hlimit,int *tclass, +int *dontfrag);
int ip6_datagram_send_ctl(struct net *net, struct sock *sk, struct msghdr *msg,
struct flowi6 *fl6, struct ipv6_txoptions *opt, int *hlimit, int *tclass, int *dontfrag);
etc...
kernel_doc might be nice too
David Miller
maintainerFrom: Joe Perches <[email protected]>
Date: Fri, 31 May 2013 18:25:40 -0700
Quoted 2 lines
externs aren't useful here and I suggest prototypes like int
ipv6_exthdrs_init(void);
But this is the format used by the entire header file, all functions are declared extern.
It is not reasonable to ask him to change this. It's a seperate cleanup, and that's assuming we actually agree to remove the externs. I honestly see no reason to, they are harmless, and given that it's just pure churn.
Quoted 6 lines · David Miller
From: Joe Perches <[email protected]>
Date: Fri, 31 May 2013 18:25:40 -0700Quoted 2 lines
externs aren't useful here and I suggest prototypes like int
ipv6_exthdrs_init(void);
Quoted 7 lines
But this is the format used by the entire header file, all functions are declared extern.
It is not reasonable to ask him to change this. It's a seperate cleanup, and that's assuming we actually agree to remove the externs. I honestly see no reason to, they are harmless, and given that it's just pure churn.
<shrug>
How is that churn different than the entire patch?
extern _isn't_ useful and the tabbed indentation is different than most all includes.
1 tab or 2 isn't a big thing.
I think cleanup patches like this should strive for consistency with whatever preferred style exists.
If a cleanup only patch is proffered, I think the cleanup should be as complete as possible.
Quoted 1 line · Joe Perches
How is that churn different than the entire patch?
I changed the indentation because patch 2 in the set introduced another function and I didn't know how to indent it. Currently, some declarations are not tab-indented, some are tab-indented to column 40, and some are tab-indented to column 32. I thought that while I was at it I might change them to be consistent. So this patch changes it so they're all tab-indented to column 24; I thought that was more readable.
That said, I don't have strong feelings about the indentation - my main goal here was removing code duplication. If I reverted the indentation patch and just aligned the new function to the function above it, would that be better?
Quoted 11 lines · Lorenzo Colitti
Quoted 1 line · Joe Perches
How is that churn different than the entire patch?
I changed the indentation because patch 2 in the set introduced another function and I didn't know how to indent it. Currently, some declarations are not tab-indented, some are tab-indented to column 40, and some are tab-indented to column 32. I thought that while I was at it I might change them to be consistent. So this patch changes it so they're all tab-indented to column 24; I thought that was more readable.
Quoted 4 lines
That said, I don't have strong feelings about the indentation - my main goal here was removing code duplication. If I reverted the indentation patch and just aligned the new function to the function above it, would that be better?
Hey Lorenzo.
I think you should use whatever you think appropriate without trying to fix the other function prototypes.
Otherwise, I'd do what I suggested in my first email.
cheers, Joe
David Miller
maintainerFrom: Joe Perches <[email protected]>
Date: Sat, 01 Jun 2013 20:06:08 -0700
Quoted 2 lines
If a cleanup only patch is proffered, I think the
cleanup should be as complete as possible.
Wanting to clean up one aspect does not require cleaning up other aspects, many contributors are volunteers remember. :-)
Quoted 8 lines · David Miller
From: Joe Perches <[email protected]>
Date: Sat, 01 Jun 2013 20:06:08 -0700Quoted 2 lines
If a cleanup only patch is proffered, I think the
cleanup should be as complete as possible.Wanting to clean up one aspect does not require cleaning up other aspects,
Though I'm in favor of changing content to match any preferred style, what was that bit about pure churn again?
Just about every line in that file was touched.
Quoted 1 line
many contributors are volunteers remember. :-)
I get the volunteer aspect, but from a google.com
address?
Lorenzo, take any advice from me with whatever salts you think appropriate. Avoid the designer bath ones though.
cheers, Joe
Quoted 2 lines · Joe Perches
Lorenzo, take any advice from me with whatever salts you think appropriate. Avoid the designer bath ones though.
Ok, so I can:
1. Not touch any of the other functions, and add the new function prototype without any tabs (inconsistent with the others).
2. Not touch any of the other functions, and add the new function prototype tab-indented the same as the function above it (preserves the status quo).
3. Remove all the externs in the function prototypes, and all the middle-of-line tabs in the file, and add the new function prototype in the same way.
Any of the above is fine by me. Is there one which you guys agree on? I don't have strong feelings about indentation, but if possible I would like to avoid re-spinning this patchset more than twice over formatting changes to this file.
PATCH 1/1 transp_v6.h: style neatening
Use a more current code style.
Remove extern from function prototypes. Align function arguments and reflow to 80 cols. Use network comment styles.
---
Quoted 3 lines
I don't have strong feelings about indentation, but if possible I would like to avoid re-spinning this patchset more than twice over formatting changes to this file.
You could do nothing and David could apply this if he wants a more complete neatening.
Or do what David wants. He's the maintainer.
include/net/transp_v6.h | 89 ++++++++++++++++++++----------------------------- 1 file changed, 37 insertions(+), 52 deletions(-)
include/net/transp_v6.h +37 -52
@@ -3,72 +3,57 @@#include <net/checksum.h> -/* -* IPv6 transport protocols -*/ - -extern struct proto rawv6_prot; -extern struct proto udpv6_prot; -extern struct proto udplitev6_prot; -extern struct proto tcpv6_prot; -extern struct proto pingv6_prot; +/* IPv6 transport protocols */ +extern struct proto rawv6_prot; +extern struct proto udpv6_prot; +extern struct proto udplitev6_prot; +extern struct proto tcpv6_prot; +extern struct proto pingv6_prot;struct flowi6 ;/* extension headers */ -extern int ipv6_exthdrs_init (void ); -extern void ipv6_exthdrs_exit (void ); -extern int ipv6_frag_init (void ); -extern void ipv6_frag_exit (void ); +int ipv6_exthdrs_init (void ); +void ipv6_exthdrs_exit (void ); +int ipv6_frag_init (void ); +void ipv6_frag_exit (void );/* transport protocols */ -extern int pingv6_init (void ); -extern void pingv6_exit (void ); -extern int rawv6_init (void ); -extern void rawv6_exit (void ); -extern int udpv6_init (void ); -extern void udpv6_exit (void ); -extern int udplitev6_init (void ); -extern void udplitev6_exit (void ); -extern int tcpv6_init (void ); -extern void tcpv6_exit (void ); +int pingv6_init (void ); +void pingv6_exit (void ); +int rawv6_init (void ); +void rawv6_exit (void ); +int udpv6_init (void ); +void udpv6_exit (void ); +int udplitev6_init (void ); +void udplitev6_exit (void ); +int tcpv6_init (void ); +void tcpv6_exit (void ); -extern int udpv6_connect (struct sock *sk, -struct sockaddr *uaddr, -int addr_len); +int udpv6_connect (struct sock *sk,struct sockaddr *uaddr,int addr_len); -extern int ip6_datagram_recv_ctl (struct sock *sk, -struct msghdr *msg, -struct sk_buff *skb); +int ip6_datagram_recv_ctl (struct sock *sk,struct msghdr *msg, +struct sk_buff *skb); -extern int ip6_datagram_send_ctl (struct net *net, -struct sock *sk, -struct msghdr *msg, -struct flowi6 *fl6, -struct ipv6_txoptions *opt, -int *hlimit,int *tclass, -int *dontfrag); +int ip6_datagram_send_ctl (struct net *net,struct sock *sk,struct msghdr *msg, +struct flowi6 *fl6,struct ipv6_txoptions *opt, +int *hlimit,int *tclass,int *dontfrag); -extern void ip6_dgram_sock_seq_show (struct seq_file *seq, -struct sock *sp, -__u16 srcp, -__u16 destp, -int bucket); +void ip6_dgram_sock_seq_show (struct seq_file *seq,struct sock *sp, +__u16 srcp,__u16 destp,int bucket); -#define LOOPBACK4_IPV6 cpu_to_be32(0x7f000006) +#define LOOPBACK4_IPV6 cpu_to_be32(0x7f000006) -/* -* address family specific functions -*/ +/* address family specific functions */ extern const struct inet_connection_sock_af_ops ipv4_specific; -extern void inet6_destroy_sock (struct sock *sk); +void inet6_destroy_sock (struct sock *sk); -#define IPV6_SEQ_DGRAM_HEADER \ - " sl " \ - "local_address " \ - "remote_address " \ - "st tx_queue rx_queue tr tm->when retrnsmt" \ - " uid timeout inode ref pointer drops\n" +#define IPV6_SEQ_DGRAM_HEADER \ + " sl " \ + "local_address " \ + "remote_address " \ + "st tx_queue rx_queue tr tm->when retrnsmt" \ + " uid timeout inode ref pointer drops\n"#endif
Re: [PATCH net-next post Lorenzo] transp_v6.h: style neatening
Quoted 6 lines · Joe Perches
Quoted 3 lines
I don't have strong feelings about indentation, but if possible I would like to avoid re-spinning this patchset more than twice over formatting changes to this file.
You could do nothing and David could apply this if he wants a more complete neatening.
Joe, thanks for saving me a respin. I'd have been happy to do it myself too, it's just that I'm a bit confused on what the style actually needs to be.
David - if I have to respin the patch anyway because of other issues we might uncover, I take it you'd like me to make the new patch use this indentation?
Re: [PATCH net-next post Lorenzo] transp_v6.h: style neatening
Quoted 11 lines · Lorenzo Colitti
Quoted 6 lines · Joe Perches
Quoted 3 lines
I don't have strong feelings about indentation, but if possible I would like to avoid re-spinning this patchset more than twice over formatting changes to this file.
You could do nothing and David could apply this if he wants a more complete neatening.
Joe, thanks for saving me a respin. I'd have been happy to do it myself too, it's just that I'm a bit confused on what the style actually needs to be.
For now, it's whatever style David wants it to be.
A lot of the net/ code was written before more standardized coding styles were generally settled upon for networking and the older code is much less standardized.
It's going to be a tradeoff between "churn" in code that doesn't have to change much at all and whatever patch rate for whitespace style conformity David decides to accept.
Quoted 2 lines
I take it you'd like me to make the new patch use
this indentation?
Well, I would, but David will chime in eventually.
Quoted 2 lines · Joe Perches
I get the volunteer aspect, but from a google.com
address?
So what ?
Lorenzo days have 24 hours, and are not exclusive property of Google, thank you.
Quoted 9 lines · Eric Dumazet
Quoted 2 lines · Joe Perches
I get the volunteer aspect, but from a google.com
address?So what ?
Lorenzo days have 24 hours, and are not exclusive property of Google, thank you.
Isn't that what gmail addresses are for? :)
From: Lorenzo Colitti <[email protected]>
Date: Sat, 1 Jun 2013 10:05:47 +0900
Quoted 5 lines
Reduce the indentation of most of the functions and make it a bit more consistent. This allows longer function and arg names to be consistently indented without wrapping.
Signed-off-by Lorenzo Colitti <[email protected]>
Applied.