kernel_optimize_test/drivers/net/hamradio
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
..
6pack.c [AX.25]: Fix default address and broadcast address initialization. 2006-12-08 17:19:26 -08:00
baycom_epp.c usermodehelper: Tidy up waiting 2007-07-18 08:47:40 -07:00
baycom_par.c IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
baycom_ser_fdx.c baycom_ser_fdx: also allow i/o ports >= 0x1000 and enhanced failure logging 2007-04-28 11:01:02 -04:00
baycom_ser_hdx.c IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
bpqether.c [SK_BUFF]: Introduce skb_reset_network_header(skb) 2007-04-25 22:24:46 -07:00
dmascc.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
hdlcdrv.c [SK_BUFF]: Introduce skb_copy_from_linear_data{_offset} 2007-04-25 22:28:23 -07:00
Kconfig Fix "deprecated" typoes. 2007-05-09 07:18:01 +02:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mkiss.c [AX.25]: Fix default address and broadcast address initialization. 2006-12-08 17:19:26 -08:00
scc.c [PATCH] mark struct file_operations const 5 2007-02-12 09:48:45 -08:00
yam1200.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
yam9600.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
yam.c [NET]: Fix yam.c 2007-04-26 00:55:53 -07:00
z8530.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00