mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-06 01:09:08 +00:00
dd00cc486a
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> |
||
---|---|---|
.. | ||
bt8xx | ||
cpia2 | ||
cx88 | ||
cx25840 | ||
em28xx | ||
et61x251 | ||
ivtv | ||
ovcamchip | ||
pvrusb2 | ||
pwc | ||
saa7134 | ||
sn9c102 | ||
usbvideo | ||
usbvision | ||
zc0301 | ||
adv7170.c | ||
adv7175.c | ||
arv.c | ||
bt819.c | ||
bt856.c | ||
bt866.c | ||
btcx-risc.c | ||
btcx-risc.h | ||
bw-qcam.c | ||
bw-qcam.h | ||
c-qcam.c | ||
cafe_ccic-regs.h | ||
cafe_ccic.c | ||
compat_ioctl32.c | ||
cpia_pp.c | ||
cpia_usb.c | ||
cpia.c | ||
cpia.h | ||
cs53l32a.c | ||
cs8420.h | ||
cx2341x.c | ||
dabfirmware.h | ||
dabusb.c | ||
dabusb.h | ||
dpc7146.c | ||
font.h | ||
hexium_gemini.c | ||
hexium_orion.c | ||
ibmmpeg2.h | ||
indycam.c | ||
indycam.h | ||
ir-kbd-i2c.c | ||
Kconfig | ||
ks0127.c | ||
ks0127.h | ||
Makefile | ||
meye.c | ||
meye.h | ||
msp3400-driver.c | ||
msp3400-driver.h | ||
msp3400-kthreads.c | ||
mt20xx.c | ||
mxb.c | ||
mxb.h | ||
ov511.c | ||
ov511.h | ||
ov7670.c | ||
planb.c | ||
planb.h | ||
pms.c | ||
saa711x_regs.h | ||
saa711x.c | ||
saa5246a.c | ||
saa5246a.h | ||
saa5249.c | ||
saa6588.c | ||
saa7110.c | ||
saa7111.c | ||
saa7114.c | ||
saa7115.c | ||
saa7121.h | ||
saa7127.c | ||
saa7146.h | ||
saa7146reg.h | ||
saa7185.c | ||
saa7191.c | ||
saa7191.h | ||
saa7196.h | ||
se401.c | ||
se401.h | ||
stradis.c | ||
stv680.c | ||
stv680.h | ||
tda7432.c | ||
tda8290.c | ||
tda9840.c | ||
tda9840.h | ||
tda9875.c | ||
tda9887.c | ||
tea5761.c | ||
tea5767.c | ||
tea6415c.c | ||
tea6415c.h | ||
tea6420.c | ||
tea6420.h | ||
tlv320aic23b.c | ||
tuner-3036.c | ||
tuner-core.c | ||
tuner-driver.h | ||
tuner-simple.c | ||
tuner-types.c | ||
tvaudio.c | ||
tveeprom.c | ||
tvmixer.c | ||
tvp5150_reg.h | ||
tvp5150.c | ||
upd64031a.c | ||
upd64083.c | ||
v4l1-compat.c | ||
v4l2-common.c | ||
video-buf-dvb.c | ||
video-buf.c | ||
videocodec.c | ||
videocodec.h | ||
videodev.c | ||
vino.c | ||
vino.h | ||
vivi.c | ||
vpx3220.c | ||
w9966.c | ||
w9968cf_decoder.h | ||
w9968cf_vpp.h | ||
w9968cf.c | ||
w9968cf.h | ||
wm8739.c | ||
wm8775.c | ||
zoran_card.c | ||
zoran_card.h | ||
zoran_device.c | ||
zoran_device.h | ||
zoran_driver.c | ||
zoran_procfs.c | ||
zoran_procfs.h | ||
zoran.h | ||
zr364xx.c | ||
zr36016.c | ||
zr36016.h | ||
zr36050.c | ||
zr36050.h | ||
zr36057.h | ||
zr36060.c | ||
zr36060.h |