linux-stable-rt/arch/alpha/kernel
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
..
Makefile
alpha_ksyms.c
asm-offsets.c
console.c ALPHA: support graphics on non-zero PCI domains 2007-06-01 08:18:29 -07:00
core_apecs.c
core_cia.c
core_irongate.c
core_lca.c
core_marvel.c ALPHA: support graphics on non-zero PCI domains 2007-06-01 08:18:29 -07:00
core_mcpcia.c
core_polaris.c
core_t2.c
core_titan.c ALPHA: support graphics on non-zero PCI domains 2007-06-01 08:18:29 -07:00
core_tsunami.c ALPHA: support graphics on non-zero PCI domains 2007-06-01 08:18:29 -07:00
core_wildfire.c
entry.S alpha: support new syscalls 2007-05-30 10:07:54 -07:00
err_common.c
err_ev6.c
err_ev7.c
err_impl.h
err_marvel.c
err_titan.c
es1888.c
gct.c
head.S
init_task.c
io.c
irq.c
irq_alpha.c
irq_i8259.c
irq_impl.h
irq_pyxis.c
irq_srm.c
machvec_impl.h
module.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
ns87312.c
osf_sys.c
pci-noop.c
pci.c
pci_impl.h
pci_iommu.c PCI: remove pci_dac_dma_... APIs 2007-07-11 16:02:11 -07:00
process.c
proto.h ALPHA: support graphics on non-zero PCI domains 2007-06-01 08:18:29 -07:00
ptrace.c PTRACE_POKEDATA consolidation 2007-07-17 10:23:03 -07:00
semaphore.c
setup.c
signal.c alpha: support new syscalls 2007-05-30 10:07:54 -07:00
smc37c93x.c
smc37c669.c
smp.c alpha __init fixes 2007-07-17 11:01:07 -07:00
srm_env.c
srmcons.c alpha: fix trivial section mismatch warnings 2007-07-16 09:05:37 -07:00
sys_alcor.c
sys_cabriolet.c
sys_dp264.c ALPHA: support graphics on non-zero PCI domains 2007-06-01 08:18:29 -07:00
sys_eb64p.c
sys_eiger.c
sys_jensen.c
sys_marvel.c alpha: fix trivial section mismatch warnings 2007-07-16 09:05:37 -07:00
sys_miata.c
sys_mikasa.c
sys_nautilus.c
sys_noritake.c
sys_rawhide.c
sys_ruffian.c
sys_rx164.c
sys_sable.c
sys_sio.c
sys_sx164.c
sys_takara.c
sys_titan.c ALPHA: support graphics on non-zero PCI domains 2007-06-01 08:18:29 -07:00
sys_wildfire.c
systbls.S alpha: support new syscalls 2007-05-30 10:07:54 -07:00
time.c alpha: fix trivial section mismatch warnings 2007-07-16 09:05:37 -07:00
traps.c Report that kernel is tainted if there was an OOPS 2007-07-17 10:23:02 -07:00
vmlinux.lds.S alpha: Put allocated ELF notes in read-only data segment 2007-07-19 10:04:47 -07:00