android_kernel_motorola_sm6375/net/ipv4
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Yoann Padioleau dd00cc486a some kmalloc/memset ->kzalloc (tree wide)
Transform some calls to kmalloc/memset to a single kzalloc (or kcalloc).

Here is a short excerpt of the semantic patch performing
this transformation:

@@
type T2;
expression x;
identifier f,fld;
expression E;
expression E1,E2;
expression e1,e2,e3,y;
statement S;
@@

 x =
- kmalloc
+ kzalloc
  (E1,E2)
  ...  when != \(x->fld=E;\|y=f(...,x,...);\|f(...,x,...);\|x=E;\|while(...) S\|for(e1;e2;e3) S\)
- memset((T2)x,0,E1);

@@
expression E1,E2,E3;
@@

- kzalloc(E1 * E2,E3)
+ kcalloc(E1,E2,E3)

[[email protected]: get kcalloc args the right way around]
Signed-off-by: Yoann Padioleau <[email protected]>
Cc: Richard Henderson <[email protected]>
Cc: Ivan Kokshaysky <[email protected]>
Acked-by: Russell King <[email protected]>
Cc: Bryan Wu <[email protected]>
Acked-by: Jiri Slaby <[email protected]>
Cc: Dave Airlie <[email protected]>
Acked-by: Roland Dreier <[email protected]>
Cc: Jiri Kosina <[email protected]>
Acked-by: Dmitry Torokhov <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Acked-by: Mauro Carvalho Chehab <[email protected]>
Acked-by: Pierre Ossman <[email protected]>
Cc: Jeff Garzik <[email protected]>
Cc: "David S. Miller" <[email protected]>
Acked-by: Greg KH <[email protected]>
Cc: James Bottomley <[email protected]>
Cc: "Antonino A. Daplas" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2007-07-19 10:04:50 -07:00
..
ipvs [NET]: Make all initialized struct seq_operations const. 2007-07-10 23:07:31 -07:00
netfilter some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
af_inet.c [NET]: IPV6 checksum offloading in network devices 2007-07-10 22:15:52 -07:00
ah4.c [XFRM]: Add module alias for transformation type. 2007-07-10 22:15:43 -07:00
arp.c [IPV4]: Cleanup call to __neigh_lookup() 2007-07-14 20:51:44 -07:00
cipso_ipv4.c [CIPSO]: Fix several unaligned kernel accesses in the CIPSO engine. 2007-06-08 13:33:10 -07:00
datagram.c
devinet.c [IPV4]: Do not remove idev when addresses are cleared 2007-06-08 13:33:08 -07:00
esp4.c [XFRM]: Add module alias for transformation type. 2007-07-10 22:15:43 -07:00
fib_frontend.c [IPV4]: The scheduled removal of multipath cached routing support. 2007-07-10 22:05:57 -07:00
fib_hash.c
fib_lookup.h
fib_rules.c [NETLINK]: Mark netlink policies const 2007-06-07 13:40:10 -07:00
fib_semantics.c [IPV4]: The scheduled removal of multipath cached routing support. 2007-07-10 22:05:57 -07:00
fib_trie.c
icmp.c [ICMP]: Fix icmp_errors_use_inbound_ifaddr sysctl 2007-06-03 18:08:51 -07:00
igmp.c [IPV4]: Convert IPv4 devconf to an array 2007-06-07 13:39:13 -07:00
inet_connection_sock.c
inet_diag.c
inet_hashtables.c
inet_timewait_sock.c [INET_SOCK]: make net/ipv4/inet_timewait_sock.c:__inet_twsk_kill() static 2007-07-14 19:00:59 -07:00
inetpeer.c
ip_forward.c
ip_fragment.c
ip_gre.c [NET]: Avoid copying writable clones in tunnel drivers 2007-07-10 22:19:05 -07:00
ip_input.c
ip_options.c
ip_output.c [NETFILTER]: x_tables: add TRACE target 2007-07-10 22:17:14 -07:00
ip_sockglue.c
ipcomp.c [XFRM]: Add module alias for transformation type. 2007-07-10 22:15:43 -07:00
ipconfig.c
ipip.c [NET]: Avoid copying writable clones in tunnel drivers 2007-07-10 22:19:05 -07:00
ipmr.c [IPV4]: Restore old behaviour of default config values 2007-06-07 13:39:26 -07:00
Kconfig [IPV4]: The scheduled removal of multipath cached routing support. 2007-07-10 22:05:57 -07:00
Makefile [IPV4]: The scheduled removal of multipath cached routing support. 2007-07-10 22:05:57 -07:00
netfilter.c
proc.c [IPV4]: Convert IPv4 devconf to an array 2007-06-07 13:39:13 -07:00
protocol.c
raw.c
route.c [IPV4]: Make ip_tos2prio const. 2007-07-10 22:19:04 -07:00
syncookies.c
sysctl_net_ipv4.c [IPV4]: Convert IPv4 devconf to an array 2007-06-07 13:39:13 -07:00
tcp.c I/OAT: warning fix 2007-07-11 16:10:53 -07:00
tcp_bic.c [TCP]: remove unused argument to cong_avoid op 2007-07-18 01:46:58 -07:00
tcp_cong.c [TCP]: remove unused argument to cong_avoid op 2007-07-18 01:46:58 -07:00
tcp_cubic.c [TCP]: remove unused argument to cong_avoid op 2007-07-18 01:46:58 -07:00
tcp_diag.c
tcp_highspeed.c [TCP]: remove unused argument to cong_avoid op 2007-07-18 01:46:58 -07:00
tcp_htcp.c [TCP]: remove unused argument to cong_avoid op 2007-07-18 01:46:58 -07:00
tcp_hybla.c [TCP]: remove unused argument to cong_avoid op 2007-07-18 01:46:58 -07:00
tcp_illinois.c [TCP]: remove unused argument to cong_avoid op 2007-07-18 01:46:58 -07:00
tcp_input.c [TCP]: remove unused argument to cong_avoid op 2007-07-18 01:46:58 -07:00
tcp_ipv4.c [TCPv4]: Improve BH latency in /proc/net/tcp 2007-07-10 22:06:20 -07:00
tcp_lp.c [TCP]: remove unused argument to cong_avoid op 2007-07-18 01:46:58 -07:00
tcp_minisocks.c
tcp_output.c [TCP]: SACK fastpath did override adjusted fackets_out 2007-07-10 22:16:24 -07:00
tcp_probe.c jprobes: remove JPROBE_ENTRY() 2007-07-19 10:04:44 -07:00
tcp_scalable.c [TCP]: remove unused argument to cong_avoid op 2007-07-18 01:46:58 -07:00
tcp_timer.c [TCP]: Use LIMIT_NETDEBUG in tcp_retransmit_timer(). 2007-06-07 13:40:08 -07:00
tcp_vegas.c [TCP]: remove unused argument to cong_avoid op 2007-07-18 01:46:58 -07:00
tcp_vegas.h
tcp_veno.c [TCP]: remove unused argument to cong_avoid op 2007-07-18 01:46:58 -07:00
tcp_westwood.c
tcp_yeah.c [TCP]: remove unused argument to cong_avoid op 2007-07-18 01:46:58 -07:00
tunnel4.c
udp.c [UDP]: Fix length check. 2007-07-10 23:06:43 -07:00
udp_impl.h [UDP]: Revert 2-pass hashing changes. 2007-06-07 13:40:50 -07:00
udplite.c [UDP]: Revert 2-pass hashing changes. 2007-06-07 13:40:50 -07:00
xfrm4_input.c [UDP]: Cleanup UDP encapsulation code 2007-07-10 22:16:53 -07:00
xfrm4_mode_beet.c
xfrm4_mode_transport.c
xfrm4_mode_tunnel.c
xfrm4_output.c
xfrm4_policy.c
xfrm4_state.c
xfrm4_tunnel.c [XFRM]: Add module alias for transformation type. 2007-07-10 22:15:43 -07:00