linux/drivers/serial
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
..
cpm_uart
jsm
8250.c serial: convert early_uart to earlycon for 8250 2007-07-16 09:05:35 -07:00
8250.h
8250_accent.c
8250_acorn.c
8250_au1x00.c
8250_boca.c
8250_early.c serial: convert early_uart to earlycon for 8250 2007-07-16 09:05:35 -07:00
8250_exar_st16c554.c
8250_fourport.c
8250_gsc.c
8250_hp300.c serial: add early_serial_setup() back to header file 2007-07-18 08:38:22 -07:00
8250_hub6.c
8250_mca.c
8250_pci.c
8250_pnp.c
21285.c
68328serial.c
68328serial.h
68360serial.c 68360serial: remove broken optimisation 2007-07-16 09:05:51 -07:00
amba-pl010.c
amba-pl011.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
atmel_serial.c atmel_serial: fix break handling 2007-07-16 09:05:45 -07:00
atmel_serial.h
bfin_5xx.c
clps711x.c
crisv10.c
dz.c
dz.h
icom.c
icom.h
imx.c
ioc3_serial.c
ioc4_serial.c
ip22zilog.c Update zilog timeout 2007-07-16 09:05:42 -07:00
ip22zilog.h
Kconfig zs: move to the serial subsystem 2007-07-18 08:38:22 -07:00
m32r_sio.c
m32r_sio.h
m32r_sio_reg.h
Makefile zs: move to the serial subsystem 2007-07-18 08:38:22 -07:00
mcfserial.c
mcfserial.h
mpc52xx_uart.c
mpsc.c
mux.c
netx-serial.c
of_serial.c
pmac_zilog.c
pmac_zilog.h
pnx8xxx_uart.c
pxa.c
s3c2410.c
sa1100.c
sb1250-duart.c sb1250-duart.c: SB1250 DUART serial support 2007-07-17 10:23:03 -07:00
serial_core.c serial: assert DTR for serial console devices 2007-07-16 09:05:34 -07:00
serial_cs.c
serial_ks8695.c
serial_lh7a40x.c
serial_txx9.c
sh-sci.c
sh-sci.h
sn_console.c sn_console section mismatch warning 2007-07-16 09:05:53 -07:00
suncore.c
suncore.h
sunhv.c [SERIAL] SUNHV: Fix jerky console on LDOM guests. 2007-07-16 17:12:00 -07:00
sunsab.c [SERIAL]: Fix console write locking in sparc drivers. 2007-07-16 04:05:28 -07:00
sunsab.h
sunsu.c [SERIAL]: Fix console write locking in sparc drivers. 2007-07-16 04:05:28 -07:00
sunzilog.c [SERIAL]: Fix console write locking in sparc drivers. 2007-07-16 04:05:28 -07:00
sunzilog.h
uartlite.c
v850e_uart.c
vr41xx_siu.c
zs.c zs: move to the serial subsystem 2007-07-18 08:38:22 -07:00
zs.h zs: move to the serial subsystem 2007-07-18 08:38:22 -07:00