2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 04:34:11 +08:00
linux-next/sound/core
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
..
oss header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
seq some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
control_compat.c [ALSA] alsa core: convert to list_for_each_entry* 2007-02-09 09:00:10 +01:00
control.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
device.c [ALSA] alsa core: convert to list_for_each_entry* 2007-02-09 09:00:10 +01:00
hwdep_compat.c [PATCH] hwdep_compat missed __user annotations 2006-10-10 15:37:21 -07:00
hwdep.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
info_oss.c [PATCH] namespaces: utsname: use init_utsname when appropriate 2006-10-02 07:57:21 -07:00
info.c [PATCH] mark struct file_operations const 9 2007-02-12 09:48:46 -08:00
init.c PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
isadma.c [ALSA] Clean up EXPORT_SYMBOL()s in snd module 2006-06-22 21:32:52 +02:00
Kconfig misc doc and kconfig typos 2007-05-09 08:58:15 +02:00
Makefile [ALSA] Remove kmalloc wrappers 2005-11-04 13:18:08 +01:00
memalloc.c [ALSA] alsa core: convert to list_for_each_entry* 2007-02-09 09:00:10 +01:00
memory.c Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
misc.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
pcm_compat.c [ALSA] Fix control/status mmap with shared PCM substream 2006-09-23 10:39:50 +02:00
pcm_lib.c [ALSA] Fix possible invalid memory access in PCM core 2007-02-09 09:03:31 +01:00
pcm_memory.c [ALSA] pcm core: add prealloc_max file to substream directory to show maximum DMA size 2007-02-09 09:00:13 +01:00
pcm_misc.c [ALSA] Move OSS-specific hw_params helper to snd-pcm-oss module 2006-06-22 21:33:05 +02:00
pcm_native.c [ALSA] pcm_native: lockdep warning when launching jack 2007-05-11 16:55:57 +02:00
pcm_timer.c [ALSA] Remove xxx_t typedefs: PCM 2006-01-03 12:17:43 +01:00
pcm.c [PATCH] Fix breakage with CONFIG_SYSFS_DEPRECATED 2007-02-09 16:25:48 +01:00
rawmidi_compat.c [ALSA] Remove xxx_t typedefs: Raw MIDI 2006-01-03 12:17:35 +01:00
rawmidi.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
rtctimer.c [ALSA] is_power_of_2 in rtctimer.c 2007-05-11 16:55:42 +02:00
sgbuf.c [ALSA] use the ALIGN macro 2006-12-20 08:55:36 +01:00
sound_oss.c [PATCH] ALSA: Fix sysfs breakage 2007-01-29 14:32:53 -08:00
sound.c unregister_chrdev(): ignore the return value 2007-07-19 10:04:43 -07:00
timer_compat.c [ALSA] Remove xxx_t typedefs: Timer 2006-01-03 12:17:34 +01:00
timer.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00