On Mon, 16 Apr 2007, Patrick McHardy wrote: > Ilpo Järvinen wrote: > > Tweaked newlines manually & fixed four warnings that were > > introduced. > > Not all of them it seems: > > > -static inline void tcp_fast_path_check(struct sock *sk, struct tcp_sock > > *tp) > > +static inline void tcp_fast_path_check(struct sock *sk) > > { > > + struct tcp_sock *tp = tcp_sk(sk); > > ^ missing newline
...in the other (original) patch description that is not copied fully here I had a sort of disclaimer for these missing ones but in case they should all be changed so that if the added tcp_sock is the only local variable I can do that of course... It's not clear to me what is really the preferred style considering all the variants... E.g., tcp_check_probe_timer (below) does not have the newline before this patch either?!? :-) ...tried to look from CodingStyle too but it didn't give any light to this thing... > > if (skb_queue_empty(&tp->out_of_order_queue) && > > tp->rcv_wnd && > > atomic_read(&sk->sk_rmem_alloc) < sk->sk_rcvbuf && > > @@ -778,18 +779,19 @@ static inline void tcp_minshall_update(s > > tp->snd_sml = TCP_SKB_CB(skb)->end_seq; > > } > > > > -static inline void tcp_check_probe_timer(struct sock *sk, struct tcp_sock > > *tp) > > +static inline void tcp_check_probe_timer(struct sock *sk) > > { > > + struct tcp_sock *tp = tcp_sk(sk); > > ^ same here .. quite a few follow > > > const struct inet_connection_sock *icsk = inet_csk(sk); ...No newline should be place here, since it's being followed by another local variable defination. > > if (!tp->packets_out && !icsk->icsk_pending) > > inet_csk_reset_xmit_timer(sk, ICSK_TIME_PROBE0, > > icsk->icsk_rto, TCP_RTO_MAX); > > } > -- i.