android_kernel_xiaomi_sm8350/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
..
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 alpha: fixes for specific machine types 2007-04-17 16:36:27 -07:00
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 PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
err_ev6.c PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
err_ev7.c PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
err_impl.h
err_marvel.c
err_titan.c alpha: fixes for specific machine types 2007-04-17 16:36:27 -07:00
es1888.c
gct.c
head.S
init_task.c
io.c
irq_alpha.c
irq_i8259.c
irq_impl.h
irq_pyxis.c
irq_srm.c
irq.c
machvec_impl.h
Makefile
module.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
ns87312.c
osf_sys.c utimensat implementation 2007-05-08 11:15:18 -07:00
pci_impl.h
pci_iommu.c PCI: remove pci_dac_dma_... APIs 2007-07-11 16:02:11 -07:00
pci-noop.c
pci.c PCI: make isa_bridge Alpha-only 2007-02-07 15:50:06 -08:00
process.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
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 alpha: cleanup in bitops.h 2007-05-30 10:07:54 -07:00
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 [PATCH] alpha: switch to pci_get API 2006-12-07 08:39:26 -08:00
sys_mikasa.c
sys_nautilus.c alpha: more fixes for specific machine types 2007-04-17 16:36:27 -07:00
sys_noritake.c alpha: fixes for specific machine types 2007-04-17 16:36:27 -07:00
sys_rawhide.c alpha: fixes for specific machine types 2007-04-17 16:36:27 -07:00
sys_ruffian.c
sys_rx164.c
sys_sable.c
sys_sio.c alpha: fixes for specific machine types 2007-04-17 16:36:27 -07:00
sys_sx164.c alpha: more fixes for specific machine types 2007-04-17 16:36:27 -07:00
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