linux_old1/arch/blackfin
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
..
boot Blackfin arch: extract the entry point from the linked kernel 2007-07-12 14:26:26 +08:00
configs Blackfin arch: new kernel config for BF548-EZKIT 2007-07-02 13:47:45 +08:00
kernel Blackfin arch: use PAGE_SIZE when doing aligns rather than hardcoded values 2007-07-12 12:20:20 +08:00
lib Blackfin arch: cleanup warnings from checkpatch -- no functional changes 2007-07-12 22:58:21 +08:00
mach-bf533 Blackfin arch: as pointed out by Robert P. J. Day, update the CPU_FREQ name to match current Kconfig 2007-07-12 14:35:15 +08:00
mach-bf537 Blackfin arch: Port the dm9000 driver to Blackfin by using the correct low-level io routines 2007-07-12 12:11:48 +08:00
mach-bf548 Blackfin arch: Add Support for Peripheral PortMux and resouce allocation 2007-07-12 12:32:52 +08:00
mach-bf561 Blackfin arch: cleanup warnings from checkpatch -- no functional changes 2007-07-12 22:58:21 +08:00
mach-common Blackfin arch: clean up some coding style issues 2007-07-12 17:26:31 +08:00
mm some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
oprofile Blackfin arch: cleanup warnings from checkpatch -- no functional changes 2007-07-12 22:58:21 +08:00
Kconfig Blackfin arch: add missing CONFIG_LARGE_ALLOCS when upstream merging 2007-07-12 14:55:05 +08:00
Makefile Blackfin arch: initial supporting for BF548-EZKIT 2007-07-12 22:41:45 +08:00