Ilpo Järvinen
9e412ba763
[TCP]: Sed magic converts func(sk, tp, ...) -> func(sk, ...)
This is (mostly) automated change using magic:
sed -e '/struct sock \*sk/ N' -e '/struct sock \*sk/ N'
-e '/struct sock \*sk/ N' -e '/struct sock \*sk/ N'
-e 's|struct sock \*sk,[\n\t ]*struct tcp_sock \*tp\([^{]*\n{\n\)|
struct sock \*sk\1\tstruct tcp_sock *tp = tcp_sk(sk);\n|g'
-e 's|struct sock \*sk, struct tcp_sock \*tp|
struct sock \*sk|g' -e 's|sk, tp\([^-]\)|sk\1|g'
Fixed four unused variable (tp) warnings that were introduced.
In addition, manually added newlines after local variables and
tweaked function arguments positioning.
$ gcc --version
gcc (GCC) 4.1.1 20060525 (Red Hat 4.1.1-1)
...
$ codiff -fV built-in.o.old built-in.o.new
net/ipv4/route.c:
rt_cache_flush | +14
1 function changed, 14 bytes added
net/ipv4/tcp.c:
tcp_setsockopt | -5
tcp_sendpage | -25
tcp_sendmsg | -16
3 functions changed, 46 bytes removed
net/ipv4/tcp_input.c:
tcp_try_undo_recovery | +3
tcp_try_undo_dsack | +2
tcp_mark_head_lost | -12
tcp_ack | -15
tcp_event_data_recv | -32
tcp_rcv_state_process | -10
tcp_rcv_established | +1
7 functions changed, 6 bytes added, 69 bytes removed, diff: -63
net/ipv4/tcp_output.c:
update_send_head | -9
tcp_transmit_skb | +19
tcp_cwnd_validate | +1
tcp_write_wakeup | -17
__tcp_push_pending_frames | -25
tcp_push_one | -8
tcp_send_fin | -4
7 functions changed, 20 bytes added, 63 bytes removed, diff: -43
built-in.o.new:
18 functions changed, 40 bytes added, 178 bytes removed, diff: -138
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-04-25 22:29:34 -07:00
..
2007-04-25 22:28:43 -07:00
2007-04-25 22:29:03 -07:00
2007-04-25 22:29:12 -07:00
2007-04-25 22:26:20 -07:00
2007-04-25 22:25:12 -07:00
2007-04-25 22:25:10 -07:00
2007-02-10 23:19:39 -08:00
2007-04-25 22:29:05 -07:00
2007-04-25 22:28:39 -07:00
2007-04-25 22:29:03 -07:00
2007-04-25 22:25:03 -07:00
2007-04-25 22:28:24 -07:00
2007-04-25 22:29:24 -07:00
2007-04-25 22:26:32 -07:00
2007-04-25 22:26:28 -07:00
2007-04-25 22:26:28 -07:00
2007-02-10 23:19:39 -08:00
2007-04-25 22:29:03 -07:00
2007-02-10 23:19:39 -08:00
2007-04-25 22:23:49 -07:00
2007-04-25 22:28:16 -07:00
2007-04-25 22:25:10 -07:00
2007-04-25 22:26:20 -07:00
2007-04-25 22:25:15 -07:00
2007-04-25 22:25:10 -07:00
2007-04-25 22:29:10 -07:00
2007-04-25 22:29:10 -07:00
2007-04-25 22:28:29 -07:00
2007-04-25 22:29:24 -07:00
2007-04-25 22:26:20 -07:00
2007-04-25 22:28:29 -07:00
2007-04-25 22:29:23 -07:00
2007-04-25 22:29:23 -07:00
2007-04-25 22:29:24 -07:00
2007-02-26 11:43:00 -08:00
2007-02-14 08:09:54 -08:00
2007-02-26 11:43:00 -08:00
2007-04-25 22:25:10 -07:00
2007-04-25 22:29:12 -07:00
2007-04-25 22:28:20 -07:00
2007-04-25 22:26:20 -07:00
2007-04-25 22:28:15 -07:00
2007-04-25 22:25:26 -07:00
2007-04-25 22:23:23 -07:00
2007-04-25 22:23:19 -07:00
2007-04-25 22:28:09 -07:00
2007-02-10 23:19:39 -08:00
2007-02-12 13:34:03 -08:00
2007-04-25 22:24:13 -07:00
2007-04-25 22:29:23 -07:00
2007-04-25 22:29:34 -07:00
2007-04-25 22:28:43 -07:00
2007-04-25 22:25:26 -07:00
2007-04-25 22:29:34 -07:00
2007-04-25 22:28:10 -07:00
2007-04-25 22:24:02 -07:00
2007-04-25 22:27:26 -07:00
2007-04-25 22:27:26 -07:00
2007-04-25 22:23:48 -07:00
2007-04-25 22:23:33 -07:00
2007-04-25 22:29:34 -07:00
2007-02-13 12:54:47 -08:00
2007-02-10 23:19:39 -08:00
2007-04-25 22:28:43 -07:00
2007-04-25 22:23:51 -07:00
2007-04-25 22:25:10 -07:00
2007-04-25 22:28:39 -07:00
2007-04-25 22:26:20 -07:00
2007-04-25 22:26:20 -07:00
2007-04-25 22:25:10 -07:00
2007-04-25 22:29:24 -07:00
2007-04-25 22:25:10 -07:00