2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-22 20:23:57 +08:00
linux-next/drivers/scsi/lpfc
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
..
lpfc_attr.c Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6 2007-07-15 16:51:54 -07:00
lpfc_compat.h [PATCH] turn many #if $undefined_string into #ifdef $undefined_string 2005-07-27 16:26:08 -07:00
lpfc_crtn.h [SCSI] lpfc: bug fixes 2007-06-17 22:38:11 -05:00
lpfc_ct.c [SCSI] lpfc: bug fixes 2007-06-17 22:38:11 -05:00
lpfc_debugfs.c [SCSI] lpfc: bug fixes 2007-06-17 22:38:11 -05:00
lpfc_debugfs.h [SCSI] lpfc: bug fixes 2007-06-17 22:38:11 -05:00
lpfc_disc.h [SCSI] lpfc: bug fixes 2007-06-17 22:38:11 -05:00
lpfc_els.c [SCSI] lpfc: bug fixes 2007-06-17 22:38:11 -05:00
lpfc_hbadisc.c [SCSI] lpfc: bug fixes 2007-06-17 22:38:11 -05:00
lpfc_hw.h [SCSI] lpfc: bug fixes 2007-06-17 22:38:11 -05:00
lpfc_init.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
lpfc_logmsg.h [SCSI] lpfc: NPIV: add NPIV support on top of SLI-3 2007-06-17 22:27:39 -05:00
lpfc_mbox.c [SCSI] lpfc: bug fixes 2007-06-17 22:38:11 -05:00
lpfc_mem.c [SCSI] lpfc: bug fixes 2007-06-17 22:38:11 -05:00
lpfc_nportdisc.c [SCSI] lpfc: bug fixes 2007-06-17 22:38:11 -05:00
lpfc_scsi.c [SCSI] lpfc: fix NPIV mapping problems 2007-07-14 17:13:02 -05:00
lpfc_scsi.h [SCSI] lpfc: NPIV: split ports 2007-06-17 22:05:45 -05:00
lpfc_sli.c [SCSI] lpfc: bug fixes 2007-06-17 22:38:11 -05:00
lpfc_sli.h [SCSI] lpfc: bug fixes 2007-06-17 22:38:11 -05:00
lpfc_version.h [SCSI] lpfc: update to version 8.2.1 2007-06-17 22:42:13 -05:00
lpfc_vport.c [SCSI] lpfc: bug fixes 2007-06-17 22:38:11 -05:00
lpfc_vport.h [SCSI] lpfc: NPIV: add NPIV support on top of SLI-3 2007-06-17 22:27:39 -05:00
lpfc.h [SCSI] lpfc: bug fixes 2007-06-17 22:38:11 -05:00
Makefile [SCSI] lpfc: bug fixes 2007-06-17 22:38:11 -05:00