]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] getting rid of all casts of k[cmz]alloc() calls
authorRobert P. J. Day <rpjday@mindspring.com>
Wed, 13 Dec 2006 08:35:56 +0000 (00:35 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Wed, 13 Dec 2006 17:05:58 +0000 (09:05 -0800)
commit5cbded585d129d0226cb48ac4202b253c781be26
treefb24edc194a57ee81a3bf8a4dd8a95030dd0ad22
parent0743b86800cf1dfbf96df4a438938127bbe4476c
[PATCH] getting rid of all casts of k[cmz]alloc() calls

Run this:

#!/bin/sh
for f in $(grep -Erl "\([^\)]*\) *k[cmz]alloc" *) ; do
  echo "De-casting $f..."
  perl -pi -e "s/ ?= ?\([^\)]*\) *(k[cmz]alloc) *\(/ = \1\(/" $f
done

And then go through and reinstate those cases where code is casting pointers
to non-pointers.

And then drop a few hunks which conflicted with outstanding work.

Cc: Russell King <rmk@arm.linux.org.uk>, Ian Molton <spyro@f2s.com>
Cc: Mikael Starvik <starvik@axis.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Roman Zippel <zippel@linux-m68k.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Kyle McMartin <kyle@mcmartin.ca>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Greg KH <greg@kroah.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Cc: Paul Fulghum <paulkf@microgate.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Karsten Keil <kkeil@suse.de>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: Jeff Garzik <jeff@garzik.org>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Cc: Ian Kent <raven@themaw.net>
Cc: Steven French <sfrench@us.ibm.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Neil Brown <neilb@cse.unsw.edu.au>
Cc: Jaroslav Kysela <perex@suse.cz>
Cc: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
172 files changed:
arch/arm/kernel/apm.c
arch/arm/kernel/ecard.c
arch/arm26/kernel/ecard.c
arch/arm26/kernel/irq.c
arch/cris/arch-v10/drivers/axisflashmap.c
arch/cris/arch-v10/drivers/gpio.c
arch/cris/arch-v32/drivers/axisflashmap.c
arch/cris/arch-v32/drivers/gpio.c
arch/cris/arch-v32/kernel/signal.c
arch/cris/kernel/profile.c
arch/h8300/kernel/ints.c
arch/h8300/platform/h8s/ints.c
arch/i386/kernel/apm.c
arch/ia64/sn/kernel/sn2/sn_hwperf.c
arch/m68k/mm/kmap.c
arch/mips/kernel/apm.c
arch/parisc/hpux/sys_hpux.c
arch/parisc/kernel/unwind.c
arch/powerpc/kernel/nvram_64.c
arch/powerpc/kernel/pci_32.c
arch/powerpc/mm/imalloc.c
arch/powerpc/platforms/pseries/eeh_cache.c
arch/ppc/8260_io/fcc_enet.c
arch/ppc/8xx_io/cs4218_tdm.c
arch/s390/kernel/debug.c
arch/s390/kernel/s390_ext.c
arch/sparc/kernel/irq.c
arch/sparc/kernel/sun4d_irq.c
arch/sparc64/kernel/sys_sunos32.c
arch/um/sys-i386/ldt.c
drivers/acorn/block/fd1772.c
drivers/atm/eni.c
drivers/atm/he.c
drivers/atm/lanai.c
drivers/atm/nicstar.c
drivers/atm/zatm.c
drivers/base/dmapool.c
drivers/block/cciss.c
drivers/block/cpqarray.c
drivers/cdrom/cdrom.c
drivers/cdrom/cm206.c
drivers/char/consolemap.c
drivers/char/lcd.c
drivers/char/lp.c
drivers/char/pcmcia/synclink_cs.c
drivers/char/rio/riocmd.c
drivers/char/synclink.c
drivers/char/synclinkmp.c
drivers/char/vt.c
drivers/char/vt_ioctl.c
drivers/fc4/fc.c
drivers/ide/ide-floppy.c
drivers/ide/ide-tape.c
drivers/isdn/act2000/act2000_isa.c
drivers/isdn/capi/capidrv.c
drivers/isdn/divert/divert_procfs.c
drivers/isdn/divert/isdn_divert.c
drivers/isdn/hysdn/hysdn_procconf.c
drivers/isdn/hysdn/hysdn_proclog.c
drivers/isdn/i4l/isdn_audio.c
drivers/isdn/i4l/isdn_net.c
drivers/isdn/i4l/isdn_ppp.c
drivers/isdn/pcbit/layer2.c
drivers/macintosh/adb.c
drivers/macintosh/apm_emu.c
drivers/macintosh/via-pmu68k.c
drivers/media/dvb/bt8xx/dst_ca.c
drivers/media/dvb/bt8xx/dvb-bt8xx.c
drivers/media/dvb/ttusb-dec/ttusbdecfe.c
drivers/media/video/dabusb.c
drivers/media/video/planb.c
drivers/media/video/usbvideo/usbvideo.c
drivers/media/video/videocodec.c
drivers/message/i2o/i2o_config.c
drivers/mtd/devices/mtd_dataflash.c
drivers/net/appletalk/ipddp.c
drivers/net/bsd_comp.c
drivers/net/irda/donauboe.c
drivers/net/irda/irda-usb.c
drivers/net/irda/irport.c
drivers/net/lp486e.c
drivers/net/ppp_deflate.c
drivers/net/ppp_mppe.c
drivers/net/slip.c
drivers/net/wan/hostess_sv11.c
drivers/net/wan/pc300_drv.c
drivers/net/wan/pc300_tty.c
drivers/net/wan/x25_asy.c
drivers/net/wireless/hostap/hostap_ap.c
drivers/net/wireless/hostap/hostap_download.c
drivers/net/wireless/hostap/hostap_hw.c
drivers/net/wireless/hostap/hostap_ioctl.c
drivers/net/wireless/hostap/hostap_main.c
drivers/net/wireless/ipw2100.c
drivers/net/wireless/prism54/isl_ioctl.c
drivers/net/wireless/wavelan_cs.c
drivers/net/wireless/zd1211rw/zd_chip.c
drivers/parisc/iosapic.c
drivers/pci/hotplug/cpqphp_nvram.c
drivers/pci/hotplug/pciehp_hpc.c
drivers/pci/pcie/aer/aerdrv.c
drivers/pnp/pnpbios/core.c
drivers/s390/char/con3215.c
drivers/s390/char/keyboard.c
drivers/s390/char/sclp_cpi.c
drivers/s390/crypto/zcrypt_cex2a.c
drivers/s390/crypto/zcrypt_pcica.c
drivers/s390/crypto/zcrypt_pcixcc.c
drivers/s390/net/ctcmain.c
drivers/s390/net/iucv.c
drivers/s390/scsi/zfcp_aux.c
drivers/sbus/char/vfc_dev.c
drivers/scsi/aacraid/aachba.c
drivers/scsi/aacraid/comminit.c
drivers/scsi/aha1542.c
drivers/scsi/aic7xxx_old.c
drivers/scsi/dc395x.c
drivers/scsi/dpt_i2o.c
drivers/scsi/initio.c
drivers/scsi/osst.c
drivers/scsi/pluto.c
drivers/scsi/sr_ioctl.c
drivers/scsi/sr_vendor.c
drivers/usb/gadget/serial.c
drivers/usb/host/hc_crisv10.c
drivers/usb/misc/auerswald.c
drivers/usb/serial/cypress_m8.c
drivers/usb/serial/digi_acceleport.c
drivers/usb/serial/io_ti.c
drivers/usb/serial/ipaq.c
drivers/usb/serial/kobil_sct.c
drivers/usb/serial/pl2303.c
drivers/usb/serial/ti_usb_3410_5052.c
drivers/usb/serial/whiteheat.c
drivers/usb/storage/sddr09.c
drivers/video/amba-clcd.c
drivers/video/matrox/i2c-matroxfb.c
drivers/video/matrox/matroxfb_base.c
drivers/video/matrox/matroxfb_crtc2.c
fs/autofs4/inode.c
fs/befs/btree.c
fs/befs/debug.c
fs/binfmt_misc.c
fs/cifs/cifssmb.c
fs/jffs/inode-v23.c
fs/jffs/intrep.c
fs/jfs/jfs_dtree.c
fs/jfs/jfs_imap.c
fs/lockd/svcshare.c
fs/nfs/nfs4proc.c
fs/reiserfs/xattr_acl.c
include/asm-avr32/pgalloc.h
include/asm-sh64/pgalloc.h
include/linux/coda_linux.h
ipc/msgutil.c
net/tipc/config.c
sound/core/oss/mixer_oss.c
sound/oss/ad1848.c
sound/oss/cs4232.c
sound/oss/emu10k1/audio.c
sound/oss/emu10k1/cardmi.c
sound/oss/emu10k1/cardmo.c
sound/oss/emu10k1/midi.c
sound/oss/emu10k1/mixer.c
sound/oss/hal2.c
sound/oss/mpu401.c
sound/oss/opl3.c
sound/oss/sb_common.c
sound/oss/sb_midi.c
sound/oss/sb_mixer.c
sound/oss/v_midi.c
sound/oss/waveartist.c