The following series of patches removes almost all inclusions of linux/version.h. The 3 #defines are unused in most of the touched files. A few drivers use the simple KERNEL_VERSION(a,b,c) macro, which is unfortunatly in linux/version.h. This define moved to linux/utsname.h There are also lots of #ifdef for long obsolete kernels, this will go as well. quilt vi `find * -type f -name "*.[ch]"|xargs grep -El '(UTS_RELEASE|LINUX_VERSION_CODE|KERNEL_VERSION|linux/version.h)'|grep -Ev '(/(boot|coda|drm)/|~$)'` search pattern: /UTS_RELEASE|LINUX_VERSION_CODE|KERNEL_VERSION|linux/(utsname|version).h PS: I hope my script is working ok. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH 0/82] changing CONFIG_LOCALVERSION rebuilds too much, for no good reason.
- From: Josh Boyer <[email protected]>
- [PATCH 10/82] remove linux/version.h from drivers/char/ip2.c
- From: Olaf Hering <[email protected]>
- [PATCH 4/82] remove linux/version.h include from arch/mips
- From: Olaf Hering <[email protected]>
- [PATCH 5/82] remove linux/version.h include from arch/parisc
- From: Olaf Hering <[email protected]>
- [PATCH 6/82] remove linux/version.h include from arch/ppc
- From: Olaf Hering <[email protected]>
- [PATCH 7/82] remove linux/version.h include from arch/ppc64
- From: Olaf Hering <[email protected]>
- [PATCH 3/82] remove linux/version.h include from arch/ia64
- From: Olaf Hering <[email protected]>
- [PATCH 1/82] remove linux/version.h include from arch/arm*
- From: Olaf Hering <[email protected]>
- [PATCH 77/82] remove linux/version.h from sound/
- From: Olaf Hering <[email protected]>
- [PATCH 78/82] remove linux/version.h from net/ieee80211/
- From: Olaf Hering <[email protected]>
- [PATCH 75/82] remove linux/version.h from include/linux/stallion.h
- From: Olaf Hering <[email protected]>
- [PATCH 76/82] remove linux/version.h from include/linux/videodev.h
- From: Olaf Hering <[email protected]>
- [PATCH 56/82] remove linux/version.h from drivers/serial/jsm/jsm.h
- From: Olaf Hering <[email protected]>
- [PATCH 82/82] remove linux/version.h from drivers/video/matrox/matroxfb_base.c
- From: Olaf Hering <[email protected]>
- [PATCH 58/82] remove linux/version.h from drivers/usb
- From: Olaf Hering <[email protected]>
- [PATCH 65/82] remove linux/version.h from fs/configfs
- From: Olaf Hering <[email protected]>
- [PATCH 81/82] remove linux/version.h from drivers/usb
- From: Olaf Hering <[email protected]>
- [PATCH 72/82] remove linux/version.h from include/linux/istallion.h
- From: Olaf Hering <[email protected]>
- [PATCH 69/82] remove linux/version.h from fs/ocfs2/
- From: Olaf Hering <[email protected]>
- [PATCH 80/82] remove linux/version.h from drivers/media/
- From: Olaf Hering <[email protected]>
- [PATCH 62/82] remove linux/version.h from drivers/video/sis
- From: Olaf Hering <[email protected]>
- [PATCH 61/82] remove linux/version.h from drivers/video/intelfb/intelfb*
- From: Olaf Hering <[email protected]>
- [PATCH 49/82] remove linux/version.h from drivers/scsi/scsi_debug.c
- From: Olaf Hering <[email protected]>
- [PATCH 63/82] remove linux/version.h from fs/9p
- From: Olaf Hering <[email protected]>
- [PATCH 60/82] remove linux/version.h from drivers/video/backlight/lcd.c
- From: Olaf Hering <[email protected]>
- [PATCH 59/82] remove linux/version.h from drivers/video/backlight/backlight.c
- From: Olaf Hering <[email protected]>
- [PATCH 79/82] move KERNEL_VERSION from linux/version.h to linux/utsname.h
- From: Olaf Hering <[email protected]>
- [PATCH 64/82] remove linux/version.h from fs/adfs/adfs.h
- From: Olaf Hering <[email protected]>
- [PATCH 74/82] remove linux/version.h from include/linux/serialP.h
- From: Olaf Hering <[email protected]>
- [PATCH 46/82] remove unused drivers/scsi/pci2000.h
- From: Olaf Hering <[email protected]>
- [PATCH 48/82] remove linux/version.h from drivers/scsi/qla1280.c
- From: Olaf Hering <[email protected]>
- [PATCH 35/82] remove linux/version.h from drivers/scsi/cpqfcTSinit.c
- From: Olaf Hering <[email protected]>
- [PATCH 37/82] remove linux/version.h from drivers/scsi/gdth
- From: Olaf Hering <[email protected]>
- [PATCH 38/82] remove linux/version.h from drivers/scsi/gvp11.c
- From: Olaf Hering <[email protected]>
- [PATCH 39/82] remove linux/version.h from drivers/scsi/ibmmca.c
- From: Olaf Hering <[email protected]>
- Re: [PATCH 0/82] changing CONFIG_LOCALVERSION rebuilds too much, for no good reason.
- From: Jeff Garzik <[email protected]>
- [PATCH 40/82] remove linux/version.h from drivers/scsi/ips
- From: Olaf Hering <[email protected]>
- [PATCH 41/82] remove linux/version.h from drivers/scsi/iteraid.h
- From: Olaf Hering <[email protected]>
- [PATCH 42/82] remove linux/version.h from drivers/scsi/megaraid
- From: Olaf Hering <[email protected]>
- [PATCH 43/82] remove linux/version.h from drivers/scsi/mvme147.c
- From: Olaf Hering <[email protected]>
- Re: [PATCH 0/82] changing CONFIG_LOCALVERSION rebuilds too much, for no good reason.
- From: "David S. Miller" <[email protected]>
- [PATCH 44/82] remove linux/version.h from drivers/scsi/mvme16x.c
- From: Olaf Hering <[email protected]>
- [PATCH 45/82] remove linux/version.h from drivers/scsi/nsp32
- From: Olaf Hering <[email protected]>
- [PATCH 47/82] remove linux/version.h from drivers/scsi/pcmcia/nsp*
- From: Olaf Hering <[email protected]>
- [PATCH 36/82] remove linux/version.h from drivers/scsi/dpt/dpti_i2o.h
- From: Olaf Hering <[email protected]>
- [PATCH 32/82] remove linux/version.h from drivers/scsi/amiga7xx.c
- From: Olaf Hering <[email protected]>
- [PATCH 33/82] remove linux/version.h from drivers/scsi/arcmsr
- From: Olaf Hering <[email protected]>
- [PATCH 34/82] remove linux/version.h from drivers/scsi/bvme6000.c
- From: Olaf Hering <[email protected]>
- [PATCH 31/82] remove linux/version.h from drivers/scsi/aic7xxx/
- From: Olaf Hering <[email protected]>
- [PATCH 28/82] remove linux/version.h from drivers/s390/net/claw.c
- From: Olaf Hering <[email protected]>
- [PATCH 29/82] remove linux/version.h from drivers/scsi/3w-xxxx.h
- From: Olaf Hering <[email protected]>
- [PATCH 30/82] remove linux/version.h from drivers/scsi/a2091.c
- From: Olaf Hering <[email protected]>
- [PATCH 25/82] remove linux/version.h from drivers/mtd
- From: Olaf Hering <[email protected]>
- [PATCH 22/82] remove linux/version.h from drivers/message/fusion
- From: Olaf Hering <[email protected]>
- [PATCH 23/82] remove linux/version.h from drivers/misc/hdpuftrs/
- From: Olaf Hering <[email protected]>
- [PATCH 26/82] remove linux/version.h from drivers/net/
- From: Olaf Hering <[email protected]>
- [PATCH 18/82] remove linux/version.h from drivers/infiniband/
- From: Olaf Hering <[email protected]>
- [PATCH 24/82] remove linux/version.h from drivers/misc/ibmasm/
- From: Olaf Hering <[email protected]>
- [PATCH 27/82] remove linux/version.h from drivers/pcmcia/
- From: Olaf Hering <[email protected]>
- [PATCH 20/82] remove linux/version.h from drivers/md/bitmap.c
- From: Olaf Hering <[email protected]>
- [PATCH 19/82] remove linux/version.h from drivers/isdn
- From: Olaf Hering <[email protected]>
- [PATCH 12/82] remove linux/version.h from drivers/char/mxser.c
- From: Olaf Hering <[email protected]>
- [PATCH 16/82] remove linux/version.h from drivers/char/viocons.c
- From: Olaf Hering <[email protected]>
- [PATCH 17/82] remove linux/version.h from drivers/char/viotape.c
- From: Olaf Hering <[email protected]>
- [PATCH 15/82] remove linux/version.h from drivers/char/tpm/tpm.h
- From: Olaf Hering <[email protected]>
- [PATCH 8/82] remove linux/version.h include from drivers/atm/he.c
- From: Olaf Hering <[email protected]>
- [PATCH 13/82] remove linux/version.h from drivers/char/speakup/
- From: Olaf Hering <[email protected]>
- [PATCH 68/82] remove linux/version.h from fs/hostfs/
- From: Olaf Hering <[email protected]>
- [PATCH 71/82] remove linux/version.h from include/linux/if_wanpipe_common.h
- From: Olaf Hering <[email protected]>
- [PATCH 11/82] remove linux/version.h from drivers/char/mwave/tp3780i.c
- From: Olaf Hering <[email protected]>
- [PATCH 9/82] remove linux/version.h from drivers/block/amiflop.c
- From: Olaf Hering <[email protected]>
- [PATCH 14/82] remove linux/version.h from drivers/char/specialix.c
- From: Olaf Hering <[email protected]>
- [PATCH 2/82] remove linux/version.h include from arch/cris
- From: Olaf Hering <[email protected]>
- [PATCH 66/82] remove linux/version.h from fs/hfs/
- From: Olaf Hering <[email protected]>
- [PATCH 55/82] remove linux/version.h from drivers/serial/icom.c
- From: Olaf Hering <[email protected]>
- [PATCH 57/82] remove linux/version.h from drivers/telephony/ixj.h
- From: Olaf Hering <[email protected]>
- [PATCH 70/82] remove linux/version.h from fs/xfs/
- From: Olaf Hering <[email protected]>
- [PATCH 67/82] remove linux/version.h from fs/hfsplus/
- From: Olaf Hering <[email protected]>
- [PATCH 54/82] remove linux/version.h from drivers/serial/crisv32.c
- From: Olaf Hering <[email protected]>
- [PATCH 51/82] remove linux/version.h from drivers/scsi/sgiwd93.c
- From: Olaf Hering <[email protected]>
- [PATCH 52/82] remove linux/version.h from drivers/scsi/wd33c93.c
- From: Olaf Hering <[email protected]>
- [PATCH 53/82] remove linux/version.h from drivers/serial/crisv10.c
- From: Olaf Hering <[email protected]>
- [PATCH 50/82] remove linux/version.h from drivers/scsi/sg.c
- From: Olaf Hering <[email protected]>
- [PATCH 21/82] remove linux/version.h from drivers/media/
- From: Olaf Hering <[email protected]>
- [PATCH 73/82] remove linux/version.h from include/linux/phonedev.h
- From: Olaf Hering <[email protected]>
- Re: [PATCH 0/82] changing CONFIG_LOCALVERSION rebuilds too much, for no good reason.
- Prev by Date: Re: share/private/slave a subtree - define vs enum
- Next by Date: [PATCH 73/82] remove linux/version.h from include/linux/phonedev.h
- Previous by thread: [PATCH] Add ENOSYS into sys_io_cancel
- Next by thread: [PATCH 73/82] remove linux/version.h from include/linux/phonedev.h
- Index(es):