Skip to content

RFC tree-wide: clean up some no longer required #include <linux/init.h>

Paul Gortmaker cpufreq dri-devel intel-gfx kvm kvm-ppc linux-acpi linux-alpha linux-arch linux-arm-kernel linux-bluetooth linux-crypto linux-fbdev linux-gpio linux-i2c linux-ia64 linux-ide linux-leds linux-m68k linux-media linux-mips linux-mm linux-mmc linux-mtd linux-pci linux-pm linux-rtc linux-s390 linux-scsi linux-spi linux-watchdog linuxppc-dev lkml lm-sensors netdev netfilter-devel platform-driver-x86 sparclinux 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest73 patches 64 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/73init: delete the __cpuinit related stubsinclude/linux/init.h scripts/tags.sh+1 -122 replies
2/73mm: replace module_init usages with subsys_initcall in nommu.cmm/nommu.c+2 -20 replies
3/73fs/notify: don't use module_init for non-modular inotify_user codefs/notify/inotify/inotify_user.c+2 -20 replies
4/73netfilter: don't use module_init/exit in core IPV4 codenet/ipv4/netfilter.c+1 -80 replies
5/73x86: don't use module_init in non-modular intel_mid_vrtc.carch/x86/platform/intel-mid/intel_mid_vrtc.c+1 -20 replies
6/73x86: don't use module_init for non-modular core bootflag codearch/x86/kernel/bootflag.c+1 -10 replies
7/73x86: replace __init_or_module with __init in non-modular vsmp_64.carch/x86/kernel/vsmp_64.c+1 -10 replies
8/73drivers/tty/hvc: don't use module_init in non-modular hyp. console codedrivers/tty/hvc/hvc_opal.c drivers/tty/hvc/hvc_rtas.c drivers/tty/hvc/hvc_udbg.c +1 more+4 -420 replies
9/73staging: don't use module_init in non-modular ion_dummy_driver.cdrivers/staging/android/ion/ion_dummy_driver.c+3 -40 replies
10/73powerpc: use device_initcall for registering rtc devicesarch/powerpc/kernel/time.c arch/powerpc/platforms/ps3/time.c+2 -32 replies
11/73powerpc: book3s KVM can be modular so it should use module.harch/powerpc/kvm/book3s.c+1 -10 replies
12/73powerpc: kvm e500/44x is not modular, so don't use module_initarch/powerpc/include/asm/kvm_ppc.h arch/powerpc/kvm/44x.c arch/powerpc/kvm/booke.c +2 more+3 -341 reply
13/73powerpc: use subsys_initcall for Freescale Local Busarch/powerpc/sysdev/fsl_lbc.c+1 -10 replies
14/73powerpc: don't use module_init for non-modular core hugetlb codearch/powerpc/mm/hugetlbpage.c+1 -10 replies
15/73powerpc: don't use module_init in non-modular 83xx suspend codearch/powerpc/platforms/83xx/suspend.c+1 -20 replies
16/73arm: include module.h in drivers/bus/omap_l3_smx.cdrivers/bus/omap_l3_smx.c+1 -00 replies
17/73arm: fix implicit module.h use in mach-at91 gpio.harch/arm/mach-at91/include/mach/gpio.h+1 -00 replies
18/73arm: fix implicit #include <linux/init.h> in entry asm.arch/arm/kernel/entry-armv.S arch/arm/vfp/entry.S+4 -00 replies
19/73arm: mach-s3c64xx mach-crag6410-module.c is not modulararch/arm/mach-s3c64xx/mach-crag6410-module.c+1 -12 replies
20/73arm: use subsys_initcall in non-modular pl320 IPC codedrivers/mailbox/pl320-ipc.c+1 -12 replies
21/73arm: don't use module_init in non-modular mach-vexpress/spc.c codearch/arm/mach-vexpress/spc.c+1 -10 replies
22/73alpha: don't use module_init for non-modular core codearch/alpha/kernel/srmcons.c+1 -21 reply
23/73sparc: don't use module_init in non-modular pci.c codearch/sparc/kernel/pci.c+1 -21 reply
24/73m68k: don't use module_init in non-modular mvme16x/rtc.c codearch/m68k/mvme16x/rtc.c+1 -10 replies
25/73ia64: don't use module_init for non-modular core kernel/mca.c codearch/ia64/sn/kernel/mca.c+1 -20 replies
26/73ia64: don't use module_init in non-modular sim/simscsi.c codearch/ia64/hp/sim/simscsi.c+1 -100 replies
27/73drivers/clk: don't use module_init in clk-nomadik.c which is non-modulardrivers/clk/clk-nomadik.c+1 -21 reply
28/73cpuidle: don't use modular platform register in non-modular ARM driversdrivers/cpuidle/cpuidle-calxeda.c drivers/cpuidle/cpuidle-zynq.c+10 -20 replies
29/73drivers/platform: don't use modular register in non-modular pdev_bus.cdrivers/platform/goldfish/pdev_bus.c+5 -100 replies
30/73drivers/i2c: busses/i2c-acorn.c is tristate and should use module.hdrivers/i2c/busses/i2c-acorn.c+1 -11 reply
31/73module: relocate module_init from init.h to module.hinclude/linux/init.h include/linux/module.h+72 -663 replies
32/73logo: emit "#include <linux/init.h> in autogenerated C fileinclude/linux/linux_logo.h scripts/pnmtologo.c+1 -30 replies
33/73arm: delete non-required instances of include <linux/init.h>arch/arm/common/dmabounce.c arch/arm/firmware/trusted_foundations.c arch/arm/include/asm/arch_timer.h +60 more+0 -630 replies
34/73mips: delete non-required instances of include <linux/init.h>arch/mips/alchemy/common/power.c arch/mips/ath79/common.h arch/mips/bcm47xx/nvram.c +53 more+0 -560 replies
35/73sparc: delete non-required instances of include <linux/init.h>arch/sparc/kernel/cpumap.c arch/sparc/kernel/ebus.c arch/sparc/kernel/hvtramp.S +15 more+0 -181 reply
36/73s390: delete non-required instances of include <linux/init.h>drivers/s390/block/dasd_erp.c drivers/s390/char/tape_34xx.c drivers/s390/char/tape_3590.c +10 more+0 -130 replies
37/73alpha: delete non-required instances of <linux/init.h>arch/alpha/kernel/err_ev6.c arch/alpha/kernel/irq.c arch/alpha/kernel/traps.c +4 more+0 -71 reply
38/73blackfin: delete non-required instances of <linux/init.h>arch/blackfin/mach-common/cache-c.c arch/blackfin/mach-common/clocks-init.c arch/blackfin/mach-common/scb-init.c+0 -30 replies
39/73powerpc: delete another unrequired instance of <linux/init.h>arch/powerpc/sysdev/indirect_pci.c+0 -10 replies
40/73watchdog: delete non-required instances of include <linux/init.h>drivers/watchdog/ar7_wdt.c drivers/watchdog/ath79_wdt.c drivers/watchdog/bcm47xx_wdt.c +21 more+0 -241 reply
41/73video: delete non-required instances of include <linux/init.h>drivers/video/aty/aty128fb.c drivers/video/aty/mach64_cursor.c drivers/video/auo_k1900fb.c +46 more+0 -490 replies
42/73rtc: delete non-required instances of include <linux/init.h>drivers/rtc/rtc-ab8500.c drivers/rtc/rtc-au1xxx.c drivers/rtc/rtc-bfin.c +43 more+0 -464 replies
43/73scsi: delete non-required instances of include <linux/init.h>drivers/scsi/aacraid/aachba.c drivers/scsi/aacraid/commctrl.c drivers/scsi/aacraid/comminit.c +28 more+0 -310 replies
44/73spi: delete non-required instances of include <linux/init.h>drivers/spi/spi-altera.c drivers/spi/spi-ath79.c drivers/spi/spi-atmel.c +26 more+0 -291 reply
45/73acpi: delete non-required instances of include <linux/init.h>drivers/acpi/apei/apei-base.c drivers/acpi/button.c drivers/acpi/fan.c +7 more+0 -101 reply
46/73drivers/power: delete non-required instances of include <linux/init.h>drivers/power/abx500_chargalg.c drivers/power/da9030_battery.c drivers/power/generic-adc-battery.c +13 more+0 -160 replies
47/73drivers/media: delete non-required instances of include <linux/init.h>drivers/media/common/btcx-risc.c drivers/media/common/cx2341x.c drivers/media/common/siano/smsdvb-debugfs.c +220 more+0 -2232 replies
48/73drivers/ata: delete non-required instances of include <linux/init.h>drivers/ata/acard-ahci.c drivers/ata/ahci.c drivers/ata/ahci_platform.c +65 more+0 -681 reply
49/73drivers/mtd: delete non-required instances of include <linux/init.h>drivers/mtd/chips/cfi_cmdset_0001.c drivers/mtd/chips/cfi_cmdset_0002.c drivers/mtd/chips/cfi_cmdset_0020.c +35 more+0 -382 replies
50/73drivers/hwmon: delete non-required instances of include <linux/init.h>drivers/hwmon/adcxx.c drivers/hwmon/adm1021.c drivers/hwmon/adm1025.c +93 more+0 -963 replies
51/73drivers/i2c: delete non-required instances of include <linux/init.h>drivers/i2c/algos/i2c-algo-bit.c drivers/i2c/algos/i2c-algo-pca.c drivers/i2c/algos/i2c-algo-pcf.c +40 more+0 -432 replies
52/73drivers/pinctrl: delete non-required instances of include <linux/init.h>drivers/pinctrl/mvebu/pinctrl-armada-370.c drivers/pinctrl/mvebu/pinctrl-armada-xp.c drivers/pinctrl/mvebu/pinctrl-dove.c +18 more+0 -211 reply
53/73drivers/isdn: delete non-required instances of include <linux/init.h>drivers/isdn/hardware/avm/avm_cs.c drivers/isdn/hardware/eicon/platform.h drivers/isdn/hisax/amd7930_fn.c +44 more+0 -471 reply
54/73drivers/leds: delete non-required instances of include <linux/init.h>drivers/leds/led-triggers.c drivers/leds/leds-88pm860x.c drivers/leds/leds-adp5520.c +21 more+0 -243 replies
55/73drivers/pcmcia: delete non-required instances of include <linux/init.h>drivers/pcmcia/bfin_cf_pcmcia.c drivers/pcmcia/electra_cf.c drivers/pcmcia/i82092.c +15 more+0 -180 replies
56/73drivers/char: delete non-required instances of include <linux/init.h>drivers/char/agp/frontend.c drivers/char/agp/generic.c drivers/char/agp/intel-gtt.c +12 more+0 -150 replies
57/73drivers/infiniband: delete non-required instances of include <linux/init.h>drivers/infiniband/hw/amso1100/c2.c drivers/infiniband/hw/amso1100/c2_pd.c drivers/infiniband/hw/amso1100/c2_provider.c +5 more+0 -80 replies
58/73drivers/mfd: delete non-required instances of include <linux/init.h>drivers/mfd/adp5520.c drivers/mfd/cs5535-mfd.c drivers/mfd/janz-cmodio.c +18 more+0 -211 reply
59/73drivers/gpio: delete non-required instances of include <linux/init.h>drivers/gpio/gpio-74x164.c drivers/gpio/gpio-adp5520.c drivers/gpio/gpio-adp5588.c +14 more+0 -177 replies
60/73drivers/bluetooth: delete non-required instances of include <linux/init.h>drivers/bluetooth/ath3k.c drivers/bluetooth/bcm203x.c drivers/bluetooth/bfusb.c +5 more+0 -82 replies
61/73drivers/mmc: delete non-required instances of include <linux/init.h>drivers/mmc/host/android-goldfish.c drivers/mmc/host/bfin_sdh.c drivers/mmc/host/mmci.c +11 more+0 -140 replies
62/73drivers/crypto: delete non-required instances of include <linux/init.h>drivers/crypto/atmel-aes.c drivers/crypto/atmel-sha.c drivers/crypto/atmel-tdes.c +6 more+0 -90 replies
63/73drivers/platform: delete non-required instances of include <linux/init.h>drivers/platform/goldfish/pdev_bus.c drivers/platform/x86/classmate-laptop.c drivers/platform/x86/hp_accel.c +10 more+0 -130 replies
64/73drivers/misc: delete non-required instances of include <linux/init.h>drivers/misc/ad525x_dpot.c drivers/misc/apds9802als.c drivers/misc/bmp085.c +20 more+0 -230 replies
65/73drivers/edac: delete non-required instances of include <linux/init.h>drivers/edac/amd64_edac.h drivers/edac/edac_device.c drivers/edac/edac_mc.c +5 more+0 -81 reply
66/73drivers/macintosh: delete non-required instances of include <linux/init.h>drivers/macintosh/adb-iop.c drivers/macintosh/ams/ams-input.c drivers/macintosh/macio-adb.c +7 more+0 -100 replies
67/73drivers/base: delete non-required instances of include <linux/init.h>drivers/base/attribute_container.c drivers/base/power/clock_ops.c drivers/base/power/common.c +7 more+0 -103 replies
68/73drivers/cpufreq: delete non-required instances of <linux/init.h>drivers/cpufreq/omap-cpufreq.c drivers/cpufreq/powernow-k8.c drivers/cpufreq/s3c2412-cpufreq.c +3 more+0 -62 replies
69/73drivers/pci: delete non-required instances of <linux/init.h>drivers/pci/bus.c drivers/pci/host-bridge.c drivers/pci/hotplug/acpiphp_glue.c +6 more+0 -91 reply
70/73drivers/dma: delete non-required instances of <linux/init.h>drivers/dma/bcm2835-dma.c drivers/dma/dma-jz4740.c drivers/dma/dw/core.c +14 more+0 -170 replies
71/73drivers/gpu: delete non-required instances of <linux/init.h>drivers/gpu/drm/ast/ast_fb.c drivers/gpu/drm/drm_dp_helper.c drivers/gpu/drm/gma500/accel_2d.c +4 more+0 -70 replies
72/73drivers: delete remaining non-required instances of <linux/init.h>drivers/atm/idt77105.c drivers/atm/suni.c drivers/block/nvme-scsi.c +55 more+0 -581 reply
73/73include: remove needless instances of <linux/init.h>include/drm/drmP.h include/linux/fb.h include/linux/ide.h +11 more+2 -142 replies

Reviews trailers per patch

16 of 73 patches have a Reviewed-by or Acked-by.

PatchDavid VrabelScott WoodMark BrownGuenter RoeckPavel MachekMarcel HoltmannDavid S. MillerRafael J. WysockiGeoff LevandRusty RussellRichard HendersonBorislav PetkovCharles KeepaxJean DelvareGreg Kroah-Hartman
1/73A-b
2/73
3/73
4/73
5/73
6/73
7/73
8/73A-b
9/73
10/73A-b
11/73
12/73
13/73A-b
14/73
15/73
16/73
17/73
18/73
19/73T-b
20/73
21/73
22/73R-b
23/73
24/73
25/73
26/73
27/73
28/73
29/73
30/73
31/73A-b
32/73
33/73
34/73
35/73A-b
36/73
37/73A-b
38/73
39/73
40/73
41/73
42/73
43/73
44/73
45/73A-b
46/73
47/73
48/73
49/73
50/73A-b A-b
51/73A-b
52/73
53/73A-b
54/73
55/73
56/73
57/73
58/73
59/73
60/73A-b
61/73
62/73
63/73
64/73
65/73A-b
66/73
67/73A-b A-b A-b
68/73
69/73
70/73
71/73
72/73A-b
73/73

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 15 reviewers.

Read the v1 thread

Cover letter [PATCH RFC 00/73] tree-wide: clean up some no longer required #include <linux/init.h>

TL;DR - We removed cpuinit and devinit, which left ~2000 instances of include <linux/init.h> that were no longer needed. To fully enable this removal/cleanup, we relocate module_init() from init.h into module.h. Multi arch/multi config build testing on linux-next has been used to find and fix any implicit header dependencies prior to deploying the actual init.h --> module.h move, to preserve bisection.

Additional details beyond TL;DR:

module_init/module_exit and friends moved to module.h
=====================================================
Aside from enabling this init.h cleanup to extend into modular files, it actually does make sense. For all modules will use some form of our initfunc processing/categorization, but not all initfunc users will be necessarily using modular functionality. So we move these module related macros to module.h and ensure module.h sources init.h

module_init in non modular code:
================================
This series uncovered that we are enabling people to use module_init in non-modular code. While that works fine, there are at least three reasons why it probably should not be encouraged:

1) it makes a casual reader of the code assume the code is modular even though it is obj-y (builtin) or controlled by a bool Kconfig.

2) it makes it too easy to add dead code in a function that is handed to module_exit() -- [more on that below]

3) it breaks our ability to use priority sorted initcalls properly [more on that below.]

After this change, a new coder who tries to make use of module_init in non modular code would find themselves also needing to include the module.h header. At which point the odds are greater that they would ask themselves "Am I doing this right? I shouldn't need this."

Note that existing non-modular code that already includes module.h and uses module_init doesn't get fixed here, since they already build w/o errors triggered by this change; we'll have to hunt them down later.

module_init and initcall ordering:
==================================
We have a group of about ten priority sorted initcalls, that are called in init/main.c after most of the hard coded/direct calls have been processed. These serve the purpose of avoiding everyone poking at init/main.c to hook in their init sequence. The bins are:

        pure_initcall               0
        core_initcall               1
        postcore_initcall           2
        arch_initcall               3
        subsys_initcall             4
        fs_initcall                 5
        device_initcall             6
        late_initcall               7

These are meant to eventually replace users of the non specific priority "__initcall" which currently maps onto device_initcall. This is of interest, because in non-modular code, cpp does this:

    module_init -->  __initcall --> device_initcall

So all module_init() land in the device_initcall bucket, rather late in the sequence. That makes sense, since if it was a module, the init could be real late (days, weeks after boot). But now imagine you add support for some non-modular bus/arch/infrastructure (say for e.g. PCI) and you use module_init for it. That means anybody else who wants to use your subsystem can't do so if they use an initcall of 0 --> 5 priority. For a real world example of this, see patch #1 in this series:

	https://lkml.org/lkml/2014/1/14/809

We don't want to force code that is clearly arch or subsys or fs specific to have to use the device_initcall just because something else has been mistakenly put (or left) in that bucket. So a couple of changes do actually change the initcall level where it is inevitably appropriate to do so. Those are called out explicitly in their respective commit logs.

module_exit and dead code
=========================
Built in code will never have an opportunity to call functions that are registered with module_exit(), so any cases of that uncovered in this series delete that dead code. Note that any built-in code that was already including module.h and using module_exit won't have shown up as breakage on the build coverage of this series, so we'll have to find those independently later. It looks like there may be quite a few that are invisibly created via module_platform_driver -- a macro that creates module_init and module_exit automatically. We may want to consider relocating module_platform_driver into module.h later...

cpuinit
=======
To finalize the removal of cpuinit, which was done several releases ago, we remove the remaining stub functions from init.h in this series. We've seen one or two "users" try to creep back in, so this will close the door on that chapter and prevent creep.

When, what and where?
=====================
When: Ideally, barring any objections or massive oversights on my part, this will go in at or around rc1, i.e. in about 2wks. In the meantime I will continue daily re-test on linux-next across ~10 different arch, using allyesconfig, allmodconfig and arch specific defconfigs for things like mips/arm/powerpc; as I have been doing for a while.

Where: This work exists as a queue of patches that I apply to linux-next; since the changes are fixing some things that currently can only be found there. The patch series can be found at:

http://git.kernel.org/cgit/linux/kernel/git/paulg/init.git
git://git.kernel.org/pub/scm/linux/kernel/git/paulg/init.git

The patches are not in strict chronological order, since when I've found a header change causes a build regression that is due to an implicit dependency/inclusion, I place the dependency fix before the header change that caused it, so that bisection is preserved.

I've avoided annoying Stephen with another queue of patches for linux-next while the development content was in flux, but now that the merge window has opened, and new additions are fewer, perhaps he wouldn't mind tacking it on the end... Stephen?

In order to reduce the size of the overall queue here, I have already put some dependency-free changes through maintainer trees after re-testing them on whatever their development baseline was. That made sense for the larger ones (drivers/[net,usb,input] some arch trees...) and for the kernel/ mm/ and fs/ ones where the changes were less trivial and an earlier review was desired. But that independent treatment doesn't scale for handling all the commits -- hence ~1400 of the full ~2k of init.h removals remain here in this series.

What: The audit for removal of extra init.h lines has covered drivers/, all of the main architectures (and some of the more fringe ones), and core dirs like mm/ fs/ and kernel/ too. The removals from include/ itself are probably the most valuable, in terms of reducing the amount of stuff we needlessly feed CPP. There is probably more fringe ones to be found, but this covers the majority of them. Additional ones can be fed in later (through the trivial tree perhaps) as desired.

Build coverage (from memory) has included, but is not limited to:

allyesconfig, allmodconfig:

	x86, x86_64, ia64, s390, arm, mips, sparc, powerpc

arch specifc arch/<name>/config/*config files:
arm, mips, powerpc
defconfig:
(all of the above), c6x, parisc, uml, tile, c6x, blackfin, ...

and it will continue to take place for the next ~2wks, until I can reliably apply the queue to master and submit a pull request.

Thanks for reading this far, and thanks to those who have merged init.h cleanup commits already! Additional comments, reviews and acks welcomed.

Paul.
---

Paul Gortmaker (73):
init: delete the __cpuinit related stubs
mm: replace module_init usages with subsys_initcall in nommu.c fs/notify: don't use module_init for non-modular inotify_user code
netfilter: don't use module_init/exit in core IPV4 code
x86: don't use module_init in non-modular intel_mid_vrtc.c
x86: don't use module_init for non-modular core bootflag code
x86: replace __init_or_module with __init in non-modular vsmp_64.c drivers/tty/hvc: don't use module_init in non-modular hyp. console code
staging: don't use module_init in non-modular ion_dummy_driver.c
powerpc: use device_initcall for registering rtc devices
powerpc: book3s KVM can be modular so it should use module.h
powerpc: kvm e500/44x is not modular, so don't use module_init
powerpc: use subsys_initcall for Freescale Local Bus
powerpc: don't use module_init for non-modular core hugetlb code
powerpc: don't use module_init in non-modular 83xx suspend code
arm: include module.h in drivers/bus/omap_l3_smx.c
arm: fix implicit module.h use in mach-at91 gpio.h
arm: fix implicit #include <linux/init.h> in entry asm.
arm: mach-s3c64xx mach-crag6410-module.c is not modular
arm: use subsys_initcall in non-modular pl320 IPC code
arm: don't use module_init in non-modular mach-vexpress/spc.c code
alpha: don't use module_init for non-modular core code
sparc: don't use module_init in non-modular pci.c code
m68k: don't use module_init in non-modular mvme16x/rtc.c code
ia64: don't use module_init for non-modular core kernel/mca.c code
ia64: don't use module_init in non-modular sim/simscsi.c code drivers/clk: don't use module_init in clk-nomadik.c which is non-modular
cpuidle: don't use modular platform register in non-modular ARM drivers drivers/platform: don't use modular register in non-modular pdev_bus.c drivers/i2c: busses/i2c-acorn.c is tristate and should use module.h
module: relocate module_init from init.h to module.h
logo: emit "#include <linux/init.h> in autogenerated C file
arm: delete non-required instances of include <linux/init.h>
mips: delete non-required instances of include <linux/init.h>
sparc: delete non-required instances of include <linux/init.h>
s390: delete non-required instances of include <linux/init.h>
alpha: delete non-required instances of <linux/init.h>
blackfin: delete non-required instances of <linux/init.h>
powerpc: delete another unrequired instance of <linux/init.h>
watchdog: delete non-required instances of include <linux/init.h>
video: delete non-required instances of include <linux/init.h>
rtc: delete non-required instances of include <linux/init.h>
scsi: delete non-required instances of include <linux/init.h>
spi: delete non-required instances of include <linux/init.h>
acpi: delete non-required instances of include <linux/init.h> drivers/power: delete non-required instances of include <linux/init.h> drivers/media: delete non-required instances of include <linux/init.h> drivers/ata: delete non-required instances of include <linux/init.h> drivers/mtd: delete non-required instances of include <linux/init.h> drivers/hwmon: delete non-required instances of include <linux/init.h> drivers/i2c: delete non-required instances of include <linux/init.h> drivers/pinctrl: delete non-required instances of include <linux/init.h> drivers/isdn: delete non-required instances of include <linux/init.h> drivers/leds: delete non-required instances of include <linux/init.h> drivers/pcmcia: delete non-required instances of include <linux/init.h> drivers/char: delete non-required instances of include <linux/init.h> drivers/infiniband: delete non-required instances of include <linux/init.h> drivers/mfd: delete non-required instances of include <linux/init.h> drivers/gpio: delete non-required instances of include <linux/init.h> drivers/bluetooth: delete non-required instances of include <linux/init.h> drivers/mmc: delete non-required instances of include <linux/init.h> drivers/crypto: delete non-required instances of include <linux/init.h> drivers/platform: delete non-required instances of include <linux/init.h> drivers/misc: delete non-required instances of include <linux/init.h> drivers/edac: delete non-required instances of include <linux/init.h> drivers/macintosh: delete non-required instances of include <linux/init.h> drivers/base: delete non-required instances of include <linux/init.h> drivers/cpufreq: delete non-required instances of <linux/init.h> drivers/pci: delete non-required instances of <linux/init.h> drivers/dma: delete non-required instances of <linux/init.h> drivers/gpu: delete non-required instances of <linux/init.h>
drivers: delete remaining non-required instances of <linux/init.h>
include: remove needless instances of <linux/init.h>

 arch/alpha/kernel/err_ev6.c                        |  1 -
 arch/alpha/kernel/irq.c                            |  1 -
 arch/alpha/kernel/srmcons.c                        |  3 +-
 arch/alpha/kernel/traps.c                          |  1 -
 arch/alpha/oprofile/op_model_ev4.c                 |  1 -
 arch/alpha/oprofile/op_model_ev5.c                 |  1 -
 arch/alpha/oprofile/op_model_ev6.c                 |  1 -
 arch/alpha/oprofile/op_model_ev67.c                |  1 -
 arch/arm/common/dmabounce.c                        |  1 -
 arch/arm/firmware/trusted_foundations.c            |  1 -
 arch/arm/include/asm/arch_timer.h                  |  1 -
 arch/arm/kernel/entry-armv.S                       |  2 +
 arch/arm/kernel/entry-header.S                     |  1 -
 arch/arm/kernel/hyp-stub.S                         |  1 -
 arch/arm/kernel/suspend.c                          |  1 -
 arch/arm/kernel/unwind.c                           |  1 -
 arch/arm/mach-at91/include/mach/gpio.h             |  1 +
 arch/arm/mach-cns3xxx/pm.c                         |  1 -
 arch/arm/mach-exynos/headsmp.S                     |  1 -
 arch/arm/mach-footbridge/personal.c                |  1 -
 arch/arm/mach-imx/headsmp.S                        |  1 -
 arch/arm/mach-imx/iomux-v3.c                       |  1 -

[.... snip ~1300 lines ...]

 drivers/watchdog/stmp3xxx_rtc_wdt.c                |  1 -
 drivers/watchdog/wdt_pci.c                         |  1 -
 drivers/xen/xen-stub.c                             |  1 -
 fs/notify/inotify/inotify_user.c                   |  4 +-
 include/drm/drmP.h                                 |  2 +-
 include/linux/fb.h                                 |  1 -
 include/linux/ide.h                                |  1 -
 include/linux/init.h                               | 77 ----------------------
 include/linux/kdb.h                                |  1 -
 include/linux/linux_logo.h                         |  3 -
 include/linux/lsm_audit.h                          |  1 -
 include/linux/module.h                             | 72 ++++++++++++++++++++
 include/linux/moduleparam.h                        |  1 -
 include/linux/netfilter.h                          |  1 -
 include/linux/nls.h                                |  2 +-
 include/linux/percpu_ida.h                         |  1 -
 include/linux/profile.h                            |  1 -
 include/linux/pstore_ram.h                         |  1 -
 include/linux/usb/gadget.h                         |  1 -
 include/linux/zorro.h                              |  1 -
 include/xen/xenbus.h                               |  1 -
 mm/nommu.c                                         |  4 +-
 net/ipv4/netfilter.c                               |  9 +--
 scripts/pnmtologo.c                                |  1 +
 scripts/tags.sh                                    |  2 +-
 1254 files changed, 131 insertions(+), 1431 deletions(-)
 mode change 100755 => 100644 scripts/tags.sh
Signature · 1 line
1.8.4.1