linux/drivers/char/watchdog
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
..
Kconfig [WATCHDOG] at32ap700x_wdt.c - timeout module parameter patch 2007-07-05 05:31:27 +00:00
Makefile [WATCHDOG] Watchdog driver for AT32AP700X devices 2007-06-10 19:49:20 +00:00
acquirewdt.c [WATCHDOG] acquirewdt.c - convert to platform_device part 2 2007-01-10 23:38:56 +01:00
advantechwdt.c [WATCHDOG] advantechwdt.c - convert to platform_device part 2 2007-01-11 22:42:41 +01:00
alim1535_wdt.c [WATCHDOG] show default value for nowayout in module parameter 2007-01-27 20:54:24 +01:00
alim7101_wdt.c Merge master.kernel.org:/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog 2007-02-13 16:10:08 -08:00
at32ap700x_wdt.c [WATCHDOG] at32ap700x_wdt.c - Fix compilation warnings 2007-07-05 05:37:44 +00:00
at91rm9200_wdt.c Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog 2006-12-12 23:48:41 +01:00
booke_wdt.c [POWERPC] Fix comment in booke_wdt 2007-05-17 21:10:15 +10:00
cpu5wdt.c [WATCHDOG] Semi-typical watchdog bug re early misc_register() 2007-03-26 20:26:11 +00:00
ep93xx_wdt.c [WATCHDOG] Remove the redundant check for pwrite() in EP93XXX watchdog. 2007-06-03 13:21:36 +00:00
eurotechwdt.c [WATCHDOG] Semi-typical watchdog bug re early misc_register() 2007-03-26 20:26:11 +00:00
i6300esb.c [WATCHDOG] show default value for nowayout in module parameter 2007-01-27 20:54:24 +01:00
iTCO_vendor_support.c [WATCHDOG] Add iTCO vendor specific support 2006-11-12 18:05:09 +01:00
iTCO_wdt.c [WATCHDOG] iTCO_wdt.c - fix ACPI Base register 2007-05-11 18:59:24 +00:00
ib700wdt.c [WATCHDOG] ib700wdt.c - convert to platform_device part 2 2007-01-27 22:54:18 +01:00
ibmasr.c [WATCHDOG] Semi-typical watchdog bug re early misc_register() 2007-03-26 20:26:11 +00:00
indydog.c [WATCHDOG] show default value for nowayout in module parameter 2007-01-27 20:54:24 +01:00
ixp4xx_wdt.c fix file specification in comments 2006-10-03 23:01:26 +02:00
ixp2000_wdt.c potential parse error in ifdef 2007-06-01 08:18:27 -07:00
ks8695_wdt.c [WATCHDOG] ks8695_wdt.c - new KS8695 watchdog driver 2007-05-19 09:42:20 +00:00
machzwd.c [WATCHDOG] Semi-typical watchdog bug re early misc_register() 2007-03-26 20:26:11 +00:00
mixcomwd.c [WATCHDOG] Mixcom Watchdog - CodingStyle clean-up 2007-06-04 19:19:45 +00:00
mpc8xx_wdt.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
mpc83xx_wdt.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
mpcore_wdt.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
mtx-1_wdt.c [WATCHDOG] MTX-1 Watchdog driver 2007-05-06 19:36:45 +00:00
mv64x60_wdt.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
omap_wdt.c header cleaning: don't include smp_lock.h when not used 2007-05-08 11:15:07 -07:00
omap_wdt.h [PATCH] OMAP: Add Watchdog driver support 2006-09-29 09:18:07 -07:00
pc87413_wdt.c Merge master.kernel.org:/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog 2007-02-13 16:10:08 -08:00
pcwd.c [WATCHDOG] pcwd.c: Port to the new device driver model 2007-05-05 06:54:57 +00:00
pcwd_pci.c [WATCHDOG] show default value for nowayout in module parameter 2007-01-27 20:54:24 +01:00
pcwd_usb.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
pnx4008_wdt.c [WATCHDOG] Remove the redundant check for pwrite() in pnx4008 watchdog. 2007-06-03 13:18:14 +00:00
rm9k_wdt.c [PATCH] Scheduled removal of SA_xxx interrupt flags fixups 2007-02-14 08:09:54 -08:00
s3c2410_wdt.c [WATCHDOG] change s3c2410_wdt to using dev_() macros for output 2007-06-17 18:41:42 +00:00
sa1100_wdt.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
sbc60xxwdt.c [WATCHDOG] timers cleanup 2007-02-12 22:43:02 +01:00
sbc8360.c [WATCHDOG] Semi-typical watchdog bug re early misc_register() 2007-03-26 20:26:11 +00:00
sbc_epx_c3.c [WATCHDOG] show default value for nowayout in module parameter 2007-01-27 20:54:24 +01:00
sc520_wdt.c [WATCHDOG] timers cleanup 2007-02-12 22:43:02 +01:00
sc1200wdt.c PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
scx200_wdt.c PCI: Cleanup the includes of <linux/pci.h> 2007-05-02 19:02:35 -07:00
shwdt.c [WATCHDOG] timers cleanup 2007-02-12 22:43:02 +01:00
smsc37b787_wdt.c Merge master.kernel.org:/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog 2007-02-13 16:10:08 -08:00
softdog.c [WATCHDOG] show default value for nowayout in module parameter 2007-01-27 20:54:24 +01:00
w83627hf_wdt.c [WATCHDOG] add support for the w83627thf chipset. 2007-03-26 20:13:59 +00:00
w83697hf_wdt.c Merge master.kernel.org:/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog 2007-02-13 16:10:08 -08:00
w83877f_wdt.c [WATCHDOG] timers cleanup 2007-02-12 22:43:02 +01:00
w83977f_wdt.c [WATCHDOG] show default value for nowayout in module parameter 2007-01-27 20:54:24 +01:00
wafer5823wdt.c [WATCHDOG] show default value for nowayout in module parameter 2007-01-27 20:54:24 +01:00
wd501p.h Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
wdrtas.c [WATCHDOG] use ENOTTY instead of ENOIOCTLCMD in ioctl() 2006-10-02 23:08:34 +02:00
wdt.c [WATCHDOG] show default value for nowayout in module parameter 2007-01-27 20:54:24 +01:00
wdt285.c IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
wdt977.c [WATCHDOG] show default value for nowayout in module parameter 2007-01-27 20:54:24 +01:00
wdt_pci.c [WATCHDOG] show default value for nowayout in module parameter 2007-01-27 20:54:24 +01:00