kernel-ark/net
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)

[akpm@linux-foundation.org: get kcalloc args the right way around]
Signed-off-by: Yoann Padioleau <padator@wanadoo.fr>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Acked-by: Russell King <rmk@arm.linux.org.uk>
Cc: Bryan Wu <bryan.wu@analog.com>
Acked-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Dave Airlie <airlied@linux.ie>
Acked-by: Roland Dreier <rolandd@cisco.com>
Cc: Jiri Kosina <jkosina@suse.cz>
Acked-by: Dmitry Torokhov <dtor@mail.ru>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Acked-by: Pierre Ossman <drzeus-list@drzeus.cx>
Cc: Jeff Garzik <jeff@garzik.org>
Cc: "David S. Miller" <davem@davemloft.net>
Acked-by: Greg KH <greg@kroah.com>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-19 10:04:50 -07:00
..
9p
802
8021q
appletalk
atm [ATM]: Eliminate dead config variable CONFIG_BR2684_FAST_TRANS. 2007-07-18 01:46:52 -07:00
ax25
bluetooth
bridge usermodehelper: Tidy up waiting 2007-07-18 08:47:40 -07:00
core lockdep: fixup sk_callback_lock annotation 2007-07-19 10:04:49 -07:00
dccp jprobes: remove JPROBE_ENTRY() 2007-07-19 10:04:44 -07:00
decnet
econet
ethernet
ieee80211 [PATCH] softmac: Channel is listed twice in scan output 2007-07-17 21:56:17 -04:00
ipv4 some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
ipv6
ipx
irda Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2007-07-18 10:24:36 -07:00
iucv
key
lapb
llc
mac80211 some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
netfilter some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
netlabel
netlink [NETLINK]: negative groups in netlink_setsockopt 2007-07-18 02:07:51 -07:00
netrom
packet
rfkill
rose
rxrpc
sched [PKT_SCHED]: Some typo fixes in net/sched/Kconfig 2007-07-18 02:00:04 -07:00
sctp
sunrpc sunrpc: use vfs_path_lookup 2007-07-19 10:04:45 -07:00
tipc some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
unix
wanrouter
wireless
x25
xfrm [XFRM]: Fix crash introduced by struct dst_entry reordering 2007-07-18 01:55:52 -07:00
compat.c
Kconfig
Makefile
nonet.c
socket.c
sysctl_net.c
TUNABLE