Skip to contentSkip to conversation

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

RFC PATCH Applied Paul Gortmaker 33 participants 138 messages Jan 21, 2014 – Jun 10, 2015 Page 1 of 3

Subsystems (245)
lore
Share & tools
lore
#0 lore raw

cover 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
#1 lore raw

PATCH 1/73 init: delete the __cpuinit related stubs

The __cpuinit support was removed several releases ago. People have had a chance to update their out of tree code, so now we remove the no-op stubs.

Also delete the mention of __cpuinitdata from the tag script.

Cc Andrew Morton <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 include/linux/init.h | 11 -----------
 scripts/tags.sh      |  2 +-
 2 files changed, 1 insertion(+), 12 deletions(-)
 mode change 100755 => 100644 scripts/tags.sh
include/linux/init.h +0 -11
index e168880..f693cc3 100644
@@ -91,14 +91,6 @@
 
 #define __exit          __section(.exit.text) __exitused __cold notrace
 
-/* temporary, until all users are removed */
-#define __cpuinit
-#define __cpuinitdata
-#define __cpuinitconst
-#define __cpuexit
-#define __cpuexitdata
-#define __cpuexitconst
-
 /* Used for MEMORY_HOTPLUG */
 #define __meminit        __section(.meminit.text) __cold notrace
 #define __meminitdata    __section(.meminit.data)
@@ -116,9 +108,6 @@
 #define __INITRODATA	.section	".init.rodata","a",%progbits
 #define __FINITDATA	.previous
 
-/* temporary, until all users are removed */
-#define __CPUINIT
-
 #define __MEMINIT        .section	".meminit.text", "ax"
 #define __MEMINITDATA    .section	".meminit.data", "aw"
 #define __MEMINITRODATA  .section	".meminit.rodata", "a"
scripts/tags.sh +1 -1
old mode 100755
new mode 100644
index 58c4559..78382c2
@@ -150,7 +150,7 @@ exuberant()
 {
 	all_target_sources | xargs $1 -a                        \
 	-I __initdata,__exitdata,__initconst,			\
-	-I __cpuinitdata,__initdata_memblock			\
+	-I __initdata_memblock					\
 	-I __refdata,__attribute,__maybe_unused,__always_unused \
 	-I __acquires,__releases,__deprecated			\
 	-I __read_mostly,__aligned,____cacheline_aligned        \
Signature · 1 line
1.8.4.1
#2 lore raw

Re: [PATCH 01/73] init: delete the __cpuinit related stubs

Quoted 6 lines · Paul Gortmaker

The __cpuinit support was removed several releases ago. People have had a chance to update their out of tree code, so now we remove the no-op stubs.

Also delete the mention of __cpuinitdata from the tag script.

Quoted 8 lines
Cc Andrew Morton <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 include/linux/init.h | 11 -----------
 scripts/tags.sh      |  2 +-
 2 files changed, 1 insertion(+), 12 deletions(-)
 mode change 100755 => 100644 scripts

Odd. I definitely did not chmod -x this file manually. Wonder how that happened? Will fix...

Paul.
--

Quoted 53 lines
include/linux/init.h +0 -11
index e168880..f693cc3 100644
@@ -91,14 +91,6 @@
 
 #define __exit          __section(.exit.text) __exitused __cold notrace
 
-/* temporary, until all users are removed */
-#define __cpuinit
-#define __cpuinitdata
-#define __cpuinitconst
-#define __cpuexit
-#define __cpuexitdata
-#define __cpuexitconst
-
 /* Used for MEMORY_HOTPLUG */
 #define __meminit        __section(.meminit.text) __cold notrace
 #define __meminitdata    __section(.meminit.data)
@@ -116,9 +108,6 @@
 #define __INITRODATA	.section	".init.rodata","a",%progbits
 #define __FINITDATA	.previous
 
-/* temporary, until all users are removed */
-#define __CPUINIT
-
 #define __MEMINIT        .section	".meminit.text", "ax"
 #define __MEMINITDATA    .section	".meminit.data", "aw"
 #define __MEMINITRODATA  .section	".meminit.rodata", "a"
scripts/tags.sh +1 -2
old mode 100755
new mode 100644
index 58c4559..78382c2
@@ -150,7 +150,7 @@ exuberant()
 {
 	all_target_sources | xargs $1 -a                        \
 	-I __initdata,__exitdata,__initconst,			\
-	-I __cpuinitdata,__initdata_memblock			\
+	-I __initdata_memblock					\
 	-I __refdata,__attribute,__maybe_unused,__always_unused \
 	-I __acquires,__releases,__deprecated			\
 	-I __read_mostly,__aligned,____cacheline_aligned        \
--

1.8.4.1

--
To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer Acked-by on v1 1/73
#3 lore raw

Re: [PATCH 01/73] init: delete the __cpuinit related stubs

In reply to Paul Gortmaker
Quoted 9 lines · Paul Gortmaker

The __cpuinit support was removed several releases ago. People have had a chance to update their out of tree code, so now we remove the no-op stubs.

Also delete the mention of __cpuinitdata from the tag script.

Cc Andrew Morton <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
#4 lore raw

PATCH 2/73 mm: replace module_init usages with subsys_initcall in nommu.c

In reply to Paul Gortmaker

Compiling some arm/m68k configs with "# CONFIG_MMU is not set" reveals two more instances of module_init being used for code that can't possibly be modular, as CONFIG_MMU is either on or off.

We replace them with subsys_initcall as per what was done in other mmu-enabled code.

Note that direct use of __initcall is discouraged, vs. one of the priority categorized subgroups. As __initcall gets mapped onto device_initcall, our use of subsys_initcall (which makes sense for these files) will thus change this registration from level 6-device to level 4-subsys (i.e. slightly earlier).

One might think that core_initcall (l2) or postcore_initcall (l3) would be more appropriate for anything in mm/ but if we look at the actual init functions themselves, we see they are just sysctl setup stuff, and hence the choice of subsys_initcall (l4) seems reasonable. At the same time it minimizes the risk of changing the priority too drastically all at once. We can adjust further in the future.

Also, a couple instances of missing ";" at EOL are fixed.

---
 mm/nommu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
mm/nommu.c +2 -2
index 8740213..37b04f8 100644
@@ -2144,7 +2144,7 @@ static int __meminit init_user_reserve(void)
 	sysctl_user_reserve_kbytes = min(free_kbytes / 32, 1UL << 17);
 	return 0;
 }
-module_init(init_user_reserve)
+subsys_initcall(init_user_reserve);
 
 /*
  * Initialise sysctl_admin_reserve_kbytes.
@@ -2165,4 +2165,4 @@ static int __meminit init_admin_reserve(void)
 	sysctl_admin_reserve_kbytes = min(free_kbytes / 32, 1UL << 13);
 	return 0;
 }
-module_init(init_admin_reserve)
+subsys_initcall(init_admin_reserve);
Signature · 1 line
1.8.4.1
#5 lore raw

PATCH 3/73 fs/notify: don't use module_init for non-modular inotify_user code

In reply to Paul Gortmaker

The INOTIFY_USER option is bool, and hence this code is either present or absent. It will never be modular, so using module_init as an alias for __initcall is rather misleading.

Fix this up now, so that we can relocate module_init from init.h into module.h in the future. If we don't do this, we'd have to add module.h to obviously non-modular code, and that would be a worse thing.

Note that direct use of __initcall is discouraged, vs. one of the priority categorized subgroups. As __initcall gets mapped onto device_initcall, our use of fs_initcall (which makes sense for fs code) will thus change this registration from level 6-device to level 5-fs (i.e. slightly earlier). However no observable impact of that small difference has been observed during testing, or is expected.

Cc John McCutchan <[email protected]>
Cc Robert Love <[email protected]>
Cc Eric Paris <[email protected]>
---
 fs/notify/inotify/inotify_user.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/notify/inotify/inotify_user.c +2 -2
index 497395c..0a23b69 100644
@@ -26,7 +26,7 @@
 #include <linux/fs.h> /* struct inode */
 #include <linux/fsnotify_backend.h>
 #include <linux/idr.h>
-#include <linux/init.h> /* module_init */
+#include <linux/init.h> /* fs_initcall */
 #include <linux/inotify.h>
 #include <linux/kernel.h> /* roundup() */
 #include <linux/namei.h> /* LOOKUP_FOLLOW */
@@ -801,4 +801,4 @@ static int __init inotify_user_setup(void)
 
 	return 0;
 }
-module_init(inotify_user_setup);
+fs_initcall(inotify_user_setup);
Signature · 1 line
1.8.4.1
#6 lore raw

PATCH 4/73 netfilter: don't use module_init/exit in core IPV4 code

In reply to Paul Gortmaker

The file net/ipv4/netfilter.o is created based on whether CONFIG_NETFILTER is set. However that is defined as a bool, and hence this file with the core netfilter hooks will never be modular. So using module_init as an alias for __initcall can be somewhat misleading.

Fix this up now, so that we can relocate module_init from init.h into module.h in the future. If we don't do this, we'd have to add module.h to obviously non-modular code, and that would be a worse thing. Also add an inclusion of init.h, as that was previously implicit here in the netfilter.c file.

Note that direct use of __initcall is discouraged, vs. one of the priority categorized subgroups. As __initcall gets mapped onto device_initcall, our use of subsys_initcall (which seems to make sense for netfilter code) will thus change this registration from level 6-device to level 4-subsys (i.e. slightly earlier). However no observable impact of that small difference has been observed during testing, or is expected. (i.e. the location of the netfilter messages in dmesg remains unchanged with respect to all the other surrounding messages.)

As for the module_exit, rather than replace it with __exitcall, we simply remove it, since it appears only UML does anything with those, and even for UML, there is no relevant cleanup to be done here.

Cc Pablo Neira Ayuso <[email protected]>
Cc Patrick McHardy <[email protected]>
Cc Jozsef Kadlecsik <[email protected]>
Cc "David S. Miller" <[email protected]>
---
 net/ipv4/netfilter.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
net/ipv4/netfilter.c +1 -8
index c3e0ade..31abf96 100644
@@ -197,11 +197,4 @@ static int __init ipv4_netfilter_init(void)
 {
 	return nf_register_afinfo(&nf_ip_afinfo);
 }
-
-static void __exit ipv4_netfilter_fini(void)
-{
-	nf_unregister_afinfo(&nf_ip_afinfo);
-}
-
-module_init(ipv4_netfilter_init);
-module_exit(ipv4_netfilter_fini);
+device_initcall(ipv4_netfilter_init);
Signature · 1 line
1.8.4.1
#7 lore raw

PATCH 5/73 x86: don't use module_init in non-modular intel_mid_vrtc.c

In reply to Paul Gortmaker

The X86_INTEL_MID option is bool, and hence this code is either present or absent. It will never be modular, so using module_init as an alias for __initcall is rather misleading.

Fix this up now, so that we can relocate module_init from init.h into module.h in the future. If we don't do this, we'd have to add module.h to obviously non-modular code, and that would be a worse thing.

Note that direct use of __initcall is discouraged, vs. one of the priority categorized subgroups. As __initcall gets mapped onto device_initcall, our use of device_initcall directly in this change means that the runtime impact is zero -- it will remain at level 6 in initcall ordering.

Cc Thomas Gleixner <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
---
 arch/x86/platform/intel-mid/intel_mid_vrtc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/x86/platform/intel-mid/intel_mid_vrtc.c +1 -2
index 4762cff..d79e79a 100644
@@ -173,5 +173,4 @@ static int __init intel_mid_device_create(void)
 
 	return platform_device_register(&vrtc_device);
 }
-
-module_init(intel_mid_device_create);
+device_initcall(intel_mid_device_create);
Signature · 1 line
1.8.4.1
#8 lore raw

PATCH 6/73 x86: don't use module_init for non-modular core bootflag code

In reply to Paul Gortmaker

The bootflag.o is obj-y (always built in). It will never be modular, so using module_init as an alias for __initcall is somewhat misleading.

Fix this up now, so that we can relocate module_init from init.h into module.h in the future. If we don't do this, we'd have to add module.h to obviously non-modular code, and that would be a worse thing.

Note that direct use of __initcall is discouraged, vs. one of the priority categorized subgroups. As __initcall gets mapped onto device_initcall, our use of arch_initcall (which makes sense for arch code) will thus change this registration from level 6-device to level 3-arch (i.e. slightly earlier). However no observable impact of that small difference has been observed during testing, or is expected.

Cc Thomas Gleixner <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
---
 arch/x86/kernel/bootflag.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/bootflag.c +1 -1
index 5de7f4c..52c8e3c 100644
@@ -98,4 +98,4 @@ static int __init sbf_init(void)
 
 	return 0;
 }
-module_init(sbf_init);
+arch_initcall(sbf_init);
Signature · 1 line
1.8.4.1
#9 lore raw

PATCH 7/73 x86: replace __init_or_module with __init in non-modular vsmp_64.c

In reply to Paul Gortmaker

The __init_or_module is from commit 05e12e1c4c09cd35ac9f4e6af1e ("x86: fix 27-rc crash on vsmp due to paravirt during module load").

But as of commit 70511134f61bd6e5eed19f767381f9fb3e762d49 ("Revert "x86: don't compile vsmp_64 for 32bit") this file became obj-y and hence is now only for built-in. That makes any "_or_module" support no longer necessary.

We need to distinguish between the two in order to do some header reorganization between init.h and module.h and we don't want to be including module.h in non-modular code.

Cc Thomas Gleixner <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
---
 arch/x86/kernel/vsmp_64.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/vsmp_64.c +1 -1
index 992f890..e72ec17 100644
@@ -69,7 +69,7 @@ static void vsmp_irq_enable(void)
 }
 PV_CALLEE_SAVE_REGS_THUNK(vsmp_irq_enable);
 
-static unsigned __init_or_module vsmp_patch(u8 type, u16 clobbers, void *ibuf,
+static unsigned __init vsmp_patch(u8 type, u16 clobbers, void *ibuf,
 				  unsigned long addr, unsigned len)
 {
 	switch (type) {
Signature · 1 line
1.8.4.1
#10 lore raw

PATCH 8/73 drivers/tty/hvc: don't use module_init in non-modular hyp. console code

In reply to Paul Gortmaker

The HVC_OPAL/RTAS/UDBG/XEN options are all bool, and hence their support is either present or absent. It will never be modular, so using module_init as an alias for __initcall is rather misleading.

Fix this up now, so that we can relocate module_init from init.h into module.h in the future. If we don't do this, we'd have to add module.h to obviously non-modular code, and that would be a worse thing.

Note that direct use of __initcall is discouraged, vs. one of the priority categorized subgroups. As __initcall gets mapped onto device_initcall, our use of device_initcall directly in this change means that the runtime impact is zero -- it will remain at level 6 in initcall ordering.

Also the __exitcall functions have been outright deleted since they are only ever of interest to UML, and UML will never be using any of this code.

Cc Richard Weinberger <[email protected]>
Cc Konrad Rzeszutek Wilk <[email protected]>
Cc Boris Ostrovsky <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 drivers/tty/hvc/hvc_opal.c |  8 +-------
 drivers/tty/hvc/hvc_rtas.c | 12 +-----------
 drivers/tty/hvc/hvc_udbg.c |  9 +--------
 drivers/tty/hvc/hvc_xen.c  | 17 +----------------
 4 files changed, 4 insertions(+), 42 deletions(-)
drivers/tty/hvc/hvc_opal.c +1 -7
index 6496872..b01659b 100644
@@ -255,13 +255,7 @@ static int __init hvc_opal_init(void)
 	/* Register as a vio device to receive callbacks */
 	return platform_driver_register(&hvc_opal_driver);
 }
-module_init(hvc_opal_init);
-
-static void __exit hvc_opal_exit(void)
-{
-	platform_driver_unregister(&hvc_opal_driver);
-}
-module_exit(hvc_opal_exit);
+device_initcall(hvc_opal_init);
 
 static void udbg_opal_putc(char c)
 {
drivers/tty/hvc/hvc_rtas.c +1 -11
index 0069bb8..08c8792 100644
@@ -102,17 +102,7 @@ static int __init hvc_rtas_init(void)
 
 	return 0;
 }
-module_init(hvc_rtas_init);
-
-/* This will tear down the tty portion of the driver */
-static void __exit hvc_rtas_exit(void)
-{
-	/* Really the fun isn't over until the worker thread breaks down and
-	 * the tty cleans up */
-	if (hvc_rtas_dev)
-		hvc_remove(hvc_rtas_dev);
-}
-module_exit(hvc_rtas_exit);
+device_initcall(hvc_rtas_init);
 
 /* This will happen prior to module init.  There is no tty at this time? */
 static int __init hvc_rtas_console_init(void)
drivers/tty/hvc/hvc_udbg.c +1 -8
index 7222827..9cf573d 100644
@@ -80,14 +80,7 @@ static int __init hvc_udbg_init(void)
 
 	return 0;
 }
-module_init(hvc_udbg_init);
-
-static void __exit hvc_udbg_exit(void)
-{
-	if (hvc_udbg_dev)
-		hvc_remove(hvc_udbg_dev);
-}
-module_exit(hvc_udbg_exit);
+device_initcall(hvc_udbg_init);
 
 static int __init hvc_udbg_console_init(void)
 {
drivers/tty/hvc/hvc_xen.c +1 -16
index 636c9ba..2dc2831 100644
@@ -561,18 +561,7 @@ static int __init xen_hvc_init(void)
 #endif
 	return r;
 }
-
-static void __exit xen_hvc_fini(void)
-{
-	struct xencons_info *entry, *next;
-
-	if (list_empty(&xenconsoles))
-			return;
-
-	list_for_each_entry_safe(entry, next, &xenconsoles, list) {
-		xen_console_remove(entry);
-	}
-}
+device_initcall(xen_hvc_init);
 
 static int xen_cons_init(void)
 {
@@ -598,10 +587,6 @@ static int xen_cons_init(void)
 	hvc_instantiate(HVC_COOKIE, 0, ops);
 	return 0;
 }
-
-
-module_init(xen_hvc_init);
-module_exit(xen_hvc_fini);
 console_initcall(xen_cons_init);
 
 #ifdef CONFIG_EARLY_PRINTK
Signature · 1 line
1.8.4.1
#11 lore raw

PATCH 9/73 staging: don't use module_init in non-modular ion_dummy_driver.c

In reply to Paul Gortmaker

The ION_DUMMY option is bool, and hence this code is either present or absent. It will never be modular, so using module_init as an alias for __initcall is rather misleading.

Fix this up now, so that we can relocate module_init from init.h into module.h in the future. If we don't do this, we'd have to add module.h to obviously non-modular code, and that would be a worse thing.

Note that direct use of __initcall is discouraged, vs. one of the priority categorized subgroups. As __initcall gets mapped onto device_initcall, our use of device_initcall directly in this change means that the runtime impact is zero -- it will remain at level 6 in initcall ordering.

Cc Colin Cross <[email protected]>
Cc Jesse Barker <[email protected]>
Cc Android Kernel Team <[email protected]>
Cc John Stultz <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 drivers/staging/android/ion/ion_dummy_driver.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/staging/android/ion/ion_dummy_driver.c +3 -4
index 55b2002..8e7f891 100644
@@ -17,6 +17,7 @@
 #include <linux/err.h>
 #include <linux/platform_device.h>
 #include <linux/slab.h>
+#include <linux/init.h>
 #include <linux/bootmem.h>
 #include <linux/memblock.h>
 #include <linux/sizes.h>
@@ -128,6 +129,7 @@ err:
 	}
 	return err;
 }
+device_initcall(ion_dummy_init);
 
 static void __exit ion_dummy_exit(void)
 {
@@ -152,7 +154,4 @@ static void __exit ion_dummy_exit(void)
 
 	return;
 }
-
-module_init(ion_dummy_init);
-module_exit(ion_dummy_exit);
-
+__exitcall(ion_dummy_exit);
Signature · 1 line
1.8.4.1
#12 lore raw

PATCH 10/73 powerpc: use device_initcall for registering rtc devices

In reply to Paul Gortmaker

Currently these two RTC devices are in core platform code where it is not possible for them to be modular. It will never be modular, so using module_init as an alias for __initcall can be somewhat misleading.

Fix this up now, so that we can relocate module_init from init.h into module.h in the future. If we don't do this, we'd have to add module.h to obviously non-modular code, and that would be a worse thing.

Note that direct use of __initcall is discouraged, vs. one of the priority categorized subgroups. As __initcall gets mapped onto device_initcall, our use of device_initcall directly in this change means that the runtime impact is zero -- they will remain at level 6 in initcall ordering.

Cc Benjamin Herrenschmidt <[email protected]>
Cc Paul Mackerras <[email protected]>
Cc Geoff Levand <[email protected]>
---
 arch/powerpc/kernel/time.c        | 2 +-
 arch/powerpc/platforms/ps3/time.c | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)
arch/powerpc/kernel/time.c +1 -1
index b3dab20..63b34fc 100644
@@ -1064,4 +1064,4 @@ static int __init rtc_init(void)
 	return PTR_ERR_OR_ZERO(pdev);
 }
 
-module_init(rtc_init);
+device_initcall(rtc_init);
arch/powerpc/platforms/ps3/time.c +1 -2
index ce73ce8..791c614 100644
@@ -92,5 +92,4 @@ static int __init ps3_rtc_init(void)
 
 	return PTR_ERR_OR_ZERO(pdev);
 }
-
-module_init(ps3_rtc_init);
+device_initcall(ps3_rtc_init);
Signature · 1 line
1.8.4.1
maintainer Acked-by on v1 10/73
#13 lore raw

Re: [PATCH 10/73] powerpc: use device_initcall for registering rtc devices

Hi Paul,

Quoted 8 lines · Paul Gortmaker

Currently these two RTC devices are in core platform code where it is not possible for them to be modular. It will never be modular, so using module_init as an alias for __initcall can be somewhat misleading.

 arch/powerpc/kernel/time.c        | 2 +-
 arch/powerpc/platforms/ps3/time.c | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

I tested the PS3 part of this patch and it seems to work OK.

#14 lore raw

Re: [PATCH 10/73] powerpc: use device_initcall for registering rtc devices

Quoted 8 lines · Geoff Levand

Hi Paul,

Quoted 5 lines · Paul Gortmaker

Currently these two RTC devices are in core platform code where it is not possible for them to be modular. It will never be modular, so using module_init as an alias for __initcall can be somewhat misleading.

Quoted 7 lines
Quoted 3 lines
 arch/powerpc/kernel/time.c        | 2 +-
 arch/powerpc/platforms/ps3/time.c | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

I tested the PS3 part of this patch and it seems to work OK.

Thanks Geoff for the review and testing; I'll add the ack.

Paul.
--

Quoted 5 lines

_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://lists.ozlabs.org/listinfo/linuxppc-dev

#15 lore raw

PATCH 11/73 powerpc: book3s KVM can be modular so it should use module.h

In reply to Paul Gortmaker

Even though KVM is bool, KVM_BOOK3S_32 and KVM_BOOK3S_64 are declared as Kconfig tristate, so this file really should be including module.h instead of export.h -- it only works currently because module_init is currently (mis)placed in init.h -- but we are intending to clean that up and relocate it to module.h

Cc Gleb Natapov <[email protected]>
Cc Paolo Bonzini <[email protected]>
Cc Alexander Graf <[email protected]>
Cc Benjamin Herrenschmidt <[email protected]>
Cc Paul Mackerras <[email protected]>
---
 arch/powerpc/kvm/book3s.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/kvm/book3s.c +1 -1
index 8912608..279459e 100644
@@ -16,7 +16,7 @@
 
 #include <linux/kvm_host.h>
 #include <linux/err.h>
-#include <linux/export.h>
+#include <linux/module.h>
 #include <linux/slab.h>
 
 #include <asm/reg.h>
Signature · 1 line
1.8.4.1
#16 lore raw

PATCH 12/73 powerpc: kvm e500/44x is not modular, so don't use module_init

In reply to Paul Gortmaker

In powerpc, CONFIG_KVM is bool, and so are these three subarch options, for the 44x and e500 variants. This means that any module_exit() calls and functions used by them such as the kvmppc_booke_exit() are dead code. Here we remove them.

In addition, rather than use module_init, which is just __initcall for non-modules, we update those as well.

Note that direct use of __initcall is discouraged, vs. one of the priority categorized subgroups. As __initcall gets mapped onto device_initcall, our use of subsys_initcall (which seems to make sense for netfilter code) will thus change this registration from level 6-device to level 4-subsys (i.e. slightly earlier).

However no impact of that small difference is expected, since the arch independent kvm code doesn't trigger any init; it is the arch initcalls here which actually call kvm_init.

Cc Gleb Natapov <[email protected]>
Cc Paolo Bonzini <[email protected]>
Cc Alexander Graf <[email protected]>
Cc Benjamin Herrenschmidt <[email protected]>
Cc Paul Mackerras <[email protected]>
---
 arch/powerpc/include/asm/kvm_ppc.h |  1 -
 arch/powerpc/kvm/44x.c             | 10 +---------
 arch/powerpc/kvm/booke.c           |  6 ------
 arch/powerpc/kvm/e500.c            | 10 +---------
 arch/powerpc/kvm/e500mc.c          | 10 +---------
 5 files changed, 3 insertions(+), 34 deletions(-)
arch/powerpc/include/asm/kvm_ppc.h +0 -1
index c8317fb..8466df5 100644
@@ -109,7 +109,6 @@ extern void kvmppc_core_flush_tlb(struct kvm_vcpu *vcpu);
 extern int kvmppc_core_check_requests(struct kvm_vcpu *vcpu);
 
 extern int kvmppc_booke_init(void);
-extern void kvmppc_booke_exit(void);
 
 extern void kvmppc_core_destroy_mmu(struct kvm_vcpu *vcpu);
 extern int kvmppc_kvm_pv(struct kvm_vcpu *vcpu);
arch/powerpc/kvm/44x.c +1 -9
index 93221e8..2129fc1 100644
@@ -222,12 +222,4 @@ static int __init kvmppc_44x_init(void)
 err_out:
 	return r;
 }
-
-static void __exit kvmppc_44x_exit(void)
-{
-	kvmppc_pr_ops = NULL;
-	kvmppc_booke_exit();
-}
-
-module_init(kvmppc_44x_init);
-module_exit(kvmppc_44x_exit);
+subsys_initcall(kvmppc_44x_init);
arch/powerpc/kvm/booke.c +0 -6
index 0591e05..49dffa2 100644
@@ -1995,9 +1995,3 @@ int __init kvmppc_booke_init(void)
 #endif /* !BOOKE_HV */
 	return 0;
 }
-
-void __exit kvmppc_booke_exit(void)
-{
-	free_pages(kvmppc_booke_handlers, VCPU_SIZE_ORDER);
-	kvm_exit();
-}
arch/powerpc/kvm/e500.c +1 -9
index 497b142..115ef12 100644
@@ -564,12 +564,4 @@ static int __init kvmppc_e500_init(void)
 err_out:
 	return r;
 }
-
-static void __exit kvmppc_e500_exit(void)
-{
-	kvmppc_pr_ops = NULL;
-	kvmppc_booke_exit();
-}
-
-module_init(kvmppc_e500_init);
-module_exit(kvmppc_e500_exit);
+subsys_initcall(kvmppc_e500_init);
arch/powerpc/kvm/e500mc.c +1 -9
index 4132cd2..612c216 100644
@@ -382,12 +382,4 @@ static int __init kvmppc_e500mc_init(void)
 err_out:
 	return r;
 }
-
-static void __exit kvmppc_e500mc_exit(void)
-{
-	kvmppc_pr_ops = NULL;
-	kvmppc_booke_exit();
-}
-
-module_init(kvmppc_e500mc_init);
-module_exit(kvmppc_e500mc_exit);
+subsys_initcall(kvmppc_e500mc_init);
Signature · 1 line
1.8.4.1
#17 lore raw

Re: [PATCH 12/73] powerpc: kvm e500/44x is not modular, so don't use module_init

Quoted 5 lines · Paul Gortmaker

In powerpc, CONFIG_KVM is bool, and so are these three subarch options, for the 44x and e500 variants. This means that any module_exit() calls and functions used by them such as the kvmppc_booke_exit() are dead code. Here we remove them.

Quoted 7 lines

In addition, rather than use module_init, which is just __initcall for non-modules, we update those as well.

Note that direct use of __initcall is discouraged, vs. one of the priority categorized subgroups. As __initcall gets mapped onto device_initcall, our use of subsys_initcall (which seems to make sense for netfilter code) will thus change this

I've fixed the above -- s/netfilter/PPC KVM/

The risks of recycling commit logs...

Paul.
--

Quoted 105 lines

registration from level 6-device to level 4-subsys (i.e. slightly earlier).

However no impact of that small difference is expected, since the arch independent kvm code doesn't trigger any init; it is the arch initcalls here which actually call kvm_init.

Cc Gleb Natapov <[email protected]>
Cc Paolo Bonzini <[email protected]>
Cc Alexander Graf <[email protected]>
Cc Benjamin Herrenschmidt <[email protected]>
Cc Paul Mackerras <[email protected]>
---
 arch/powerpc/include/asm/kvm_ppc.h |  1 -
 arch/powerpc/kvm/44x.c             | 10 +---------
 arch/powerpc/kvm/booke.c           |  6 ------
 arch/powerpc/kvm/e500.c            | 10 +---------
 arch/powerpc/kvm/e500mc.c          | 10 +---------
 5 files changed, 3 insertions(+), 34 deletions(-)
arch/powerpc/include/asm/kvm_ppc.h +0 -1
index c8317fb..8466df5 100644
@@ -109,7 +109,6 @@ extern void kvmppc_core_flush_tlb(struct kvm_vcpu *vcpu);
 extern int kvmppc_core_check_requests(struct kvm_vcpu *vcpu);
 
 extern int kvmppc_booke_init(void);
-extern void kvmppc_booke_exit(void);
 
 extern void kvmppc_core_destroy_mmu(struct kvm_vcpu *vcpu);
 extern int kvmppc_kvm_pv(struct kvm_vcpu *vcpu);
arch/powerpc/kvm/44x.c +1 -9
index 93221e8..2129fc1 100644
@@ -222,12 +222,4 @@ static int __init kvmppc_44x_init(void)
 err_out:
 	return r;
 }
-
-static void __exit kvmppc_44x_exit(void)
-{
-	kvmppc_pr_ops = NULL;
-	kvmppc_booke_exit();
-}
-
-module_init(kvmppc_44x_init);
-module_exit(kvmppc_44x_exit);
+subsys_initcall(kvmppc_44x_init);
arch/powerpc/kvm/booke.c +0 -6
index 0591e05..49dffa2 100644
@@ -1995,9 +1995,3 @@ int __init kvmppc_booke_init(void)
 #endif /* !BOOKE_HV */
 	return 0;
 }
-
-void __exit kvmppc_booke_exit(void)
-{
-	free_pages(kvmppc_booke_handlers, VCPU_SIZE_ORDER);
-	kvm_exit();
-}
arch/powerpc/kvm/e500.c +1 -9
index 497b142..115ef12 100644
@@ -564,12 +564,4 @@ static int __init kvmppc_e500_init(void)
 err_out:
 	return r;
 }
-
-static void __exit kvmppc_e500_exit(void)
-{
-	kvmppc_pr_ops = NULL;
-	kvmppc_booke_exit();
-}
-
-module_init(kvmppc_e500_init);
-module_exit(kvmppc_e500_exit);
+subsys_initcall(kvmppc_e500_init);
arch/powerpc/kvm/e500mc.c +1 -9
index 4132cd2..612c216 100644
@@ -382,12 +382,4 @@ static int __init kvmppc_e500mc_init(void)
 err_out:
 	return r;
 }
-
-static void __exit kvmppc_e500mc_exit(void)
-{
-	kvmppc_pr_ops = NULL;
-	kvmppc_booke_exit();
-}
-
-module_init(kvmppc_e500mc_init);
-module_exit(kvmppc_e500mc_exit);
+subsys_initcall(kvmppc_e500mc_init);
#18 lore raw

PATCH 13/73 powerpc: use subsys_initcall for Freescale Local Bus

In reply to Paul Gortmaker

The FSL_SOC option is bool, and hence this code is either present or absent. It will never be modular, so using module_init as an alias for __initcall is rather misleading.

Fix this up now, so that we can relocate module_init from init.h into module.h in the future. If we don't do this, we'd have to add module.h to obviously non-modular code, and that would be a worse thing.

Note that direct use of __initcall is discouraged, vs. one of the priority categorized subgroups. As __initcall gets mapped onto device_initcall, our use of subsys_initcall (which makes sense for bus code) will thus change this registration from level 6-device to level 4-subsys (i.e. slightly earlier). However no observable impact of that small difference has been observed during testing, or is expected.

Cc Benjamin Herrenschmidt <[email protected]>
Cc Paul Mackerras <[email protected]>
Cc Scott Wood <[email protected]>
Cc Kumar Gala <[email protected]>
---
 arch/powerpc/sysdev/fsl_lbc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/sysdev/fsl_lbc.c +1 -1
index d631022..38138cf 100644
@@ -407,4 +407,4 @@ static int __init fsl_lbc_init(void)
 {
 	return platform_driver_register(&fsl_lbc_ctrl_driver);
 }
-module_init(fsl_lbc_init);
+subsys_initcall(fsl_lbc_init);
Signature · 1 line
1.8.4.1
#19 lore raw

PATCH 14/73 powerpc: don't use module_init for non-modular core hugetlb code

In reply to Paul Gortmaker

The hugetlbpage.o is obj-y (always built in). It will never be modular, so using module_init as an alias for __initcall is somewhat misleading.

Fix this up now, so that we can relocate module_init from init.h into module.h in the future. If we don't do this, we'd have to add module.h to obviously non-modular code, and that would be a worse thing.

Note that direct use of __initcall is discouraged, vs. one of the priority categorized subgroups. As __initcall gets mapped onto device_initcall, our use of arch_initcall (which makes sense for arch code) will thus change this registration from level 6-device to level 3-arch (i.e. slightly earlier). However no observable impact of that small difference has been observed during testing, or is expected.

Cc Benjamin Herrenschmidt <[email protected]>
Cc Paul Mackerras <[email protected]>
---
 arch/powerpc/mm/hugetlbpage.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/mm/hugetlbpage.c +1 -1
index 90bb6d9..d25c202 100644
@@ -911,7 +911,7 @@ static int __init hugetlbpage_init(void)
 	return 0;
 }
 #endif
-module_init(hugetlbpage_init);
+arch_initcall(hugetlbpage_init);
 
 void flush_dcache_icache_hugepage(struct page *page)
 {
Signature · 1 line
1.8.4.1
#20 lore raw

PATCH 15/73 powerpc: don't use module_init in non-modular 83xx suspend code

In reply to Paul Gortmaker

The suspend.o is built for SUSPEND -- which is bool, and hence this code is either present or absent. It will never be modular, so using module_init as an alias for __initcall can be somewhat misleading.

Fix this up now, so that we can relocate module_init from init.h into module.h in the future. If we don't do this, we'd have to add module.h to obviously non-modular code, and that would be a worse thing.

Note that direct use of __initcall is discouraged, vs. one of the priority categorized subgroups. As __initcall gets mapped onto device_initcall, our use of device_initcall directly in this change means that the runtime impact is zero -- it will remain at level 6 in initcall ordering.

Cc Kumar Gala <[email protected]>
Cc Benjamin Herrenschmidt <[email protected]>
Cc Paul Mackerras <[email protected]>
---
 arch/powerpc/platforms/83xx/suspend.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/powerpc/platforms/83xx/suspend.c +1 -2
index 4b4c081..e9f07c6 100644
@@ -446,5 +446,4 @@ static int pmc_init(void)
 {
 	return platform_driver_register(&pmc_driver);
 }
-
-module_init(pmc_init);
+device_initcall(pmc_init);
Signature · 1 line
1.8.4.1
#21 lore raw

PATCH 16/73 arm: include module.h in drivers/bus/omap_l3_smx.c

In reply to Paul Gortmaker

The config OMAP_INTERCONNECT that this driver depends on (in drivers/bus/Kconfig) is tristate. So it can be a module.

Also there are module related setup calls within this driver. Explicitly add module.h to includes so it won't be a build failure when future cleanups are integrated and the implicit presence of certain module prototypes disappears.

---
 drivers/bus/omap_l3_smx.c | 1 +
 1 file changed, 1 insertion(+)
drivers/bus/omap_l3_smx.c +1 -0
index acc2164..8a61433 100644
@@ -23,6 +23,7 @@
  */
 
 #include <linux/kernel.h>
+#include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/platform_device.h>
 #include <linux/interrupt.h>
Signature · 1 line
1.8.4.1
#22 lore raw

PATCH 17/73 arm: fix implicit module.h use in mach-at91 gpio.h

In reply to Paul Gortmaker

We currently get __init_or_module from init.h (implicitly) but if we move that to module.h we will get failures like this:

In file included from /home/paul/git/linux-head/arch/arm/include/asm/gpio.h:10:0,

                 from include/linux/gpio.h:48,
                 from include/linux/of_gpio.h:20,
                 from drivers/input/touchscreen/ads7846.c:30:

arch/arm/mach-at91/include/mach/gpio.h:191:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'at91_set_GPIO_periph' arch/arm/mach-at91/include/mach/gpio.h:192:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'at91_set_A_periph' arch/arm/mach-at91/include/mach/gpio.h:193:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'at91_set_B_periph' arch/arm/mach-at91/include/mach/gpio.h:194:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'at91_set_C_periph' arch/arm/mach-at91/include/mach/gpio.h:195:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'at91_set_D_periph' arch/arm/mach-at91/include/mach/gpio.h:196:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'at91_set_gpio_input' arch/arm/mach-at91/include/mach/gpio.h:197:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'at91_set_gpio_output' arch/arm/mach-at91/include/mach/gpio.h:198:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'at91_set_deglitch' arch/arm/mach-at91/include/mach/gpio.h:199:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'at91_set_debounce' arch/arm/mach-at91/include/mach/gpio.h:200:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'at91_set_multi_drive' arch/arm/mach-at91/include/mach/gpio.h:201:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'at91_set_pulldown' arch/arm/mach-at91/include/mach/gpio.h:202:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'at91_disable_schmitt_trig' make[3]: *** [drivers/input/touchscreen/ads7846.o] Error 1

Fix it up in advance by including module.h explicitly.

Cc Andrew Victor <[email protected]>
Cc Nicolas Ferre <[email protected]>
Cc Jean-Christophe Plagniol-Villard <[email protected]>
Cc Russell King <[email protected]>
---
 arch/arm/mach-at91/include/mach/gpio.h | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-at91/include/mach/gpio.h +1 -0
index 5fc2377..78abd64 100644
@@ -14,6 +14,7 @@
 #define __ASM_ARCH_AT91RM9200_GPIO_H
 
 #include <linux/kernel.h>
+#include <linux/module.h>	/* for __init_or_module */
 #include <asm/irq.h>
 
 #define MAX_GPIO_BANKS		5
Signature · 1 line
1.8.4.1
#23 lore raw

PATCH 18/73 arm: fix implicit #include <linux/init.h> in entry asm.

In reply to Paul Gortmaker

They use the "_INIT" macro and friends, and hence need to source this header file, vs. relying on getting it implicitly.

---
 arch/arm/kernel/entry-armv.S | 2 ++
 arch/arm/vfp/entry.S         | 2 ++
 2 files changed, 4 insertions(+)
arch/arm/kernel/entry-armv.S +2 -0
index b3fb8c9..ffc1c74 100644
@@ -15,6 +15,8 @@
  *  that causes it to save wrong values...  Be aware!
  */
 
+#include <linux/init.h>
+
 #include <asm/assembler.h>
 #include <asm/memory.h>
 #include <asm/glue-df.h>
arch/arm/vfp/entry.S +2 -0
index 46e1749..ec7ea24 100644
@@ -8,6 +8,8 @@
  * it under the terms of the GNU General Public License version 2 as
  * published by the Free Software Foundation.
  */
+#include <linux/init.h>
+
 #include <asm/thread_info.h>
 #include <asm/vfpmacros.h>
 #include "../kernel/entry-header.S"
Signature · 1 line
1.8.4.1
#24 lore raw

PATCH 19/73 arm: mach-s3c64xx mach-crag6410-module.c is not modular

In reply to Paul Gortmaker

Despite the name mach-crag6410-module.c, the code is built for MACH_WLF_CRAGG_6410 -- which is bool, and hence this code is either present or absent. It will never be modular, so using module_init as an alias for __initcall can be somewhat misleading.

Fix this up now, so that we can relocate module_init from init.h into module.h in the future. If we don't do this, we'd have to add module.h to obviously non-modular code, and that would be a worse thing.

Note that direct use of __initcall is discouraged, vs. one of the priority categorized subgroups. As __initcall gets mapped onto device_initcall, our use of device_initcall directly in this change means that the runtime impact is zero -- it will remain at level 6 in initcall ordering.

---
 arch/arm/mach-s3c64xx/mach-crag6410-module.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-s3c64xx/mach-crag6410-module.c +1 -1
index 7ccfef2..9c00d83 100644
@@ -401,4 +401,4 @@ static int __init wlf_gf_module_register(void)
 {
 	return i2c_add_driver(&wlf_gf_module_driver);
 }
-module_init(wlf_gf_module_register);
+device_initcall(wlf_gf_module_register);
Signature · 1 line
1.8.4.1
Tested-by on v1 19/73
#25 lore raw

Re: [PATCH 19/73] arm: mach-s3c64xx mach-crag6410-module.c is not modular

Quoted 17 lines · Paul Gortmaker

Despite the name mach-crag6410-module.c, the code is built for MACH_WLF_CRAGG_6410 -- which is bool, and hence this code is either present or absent. It will never be modular, so using module_init as an alias for __initcall can be somewhat misleading.

Fix this up now, so that we can relocate module_init from init.h into module.h in the future. If we don't do this, we'd have to add module.h to obviously non-modular code, and that would be a worse thing.

Note that direct use of __initcall is discouraged, vs. one of the priority categorized subgroups. As __initcall gets mapped onto device_initcall, our use of device_initcall directly in this change means that the runtime impact is zero -- it will remain at level 6 in initcall ordering.

Quoted 7 lines
Cc Ben Dooks <[email protected]>
Cc Kukjin Kim <[email protected]>
Cc Russell King <[email protected]>
Cc patches at opensource.wolfsonmicro.com
Cc linux-arm-kernel at lists.infradead.org

---

Thanks,
Charles

Applied
#26 lore raw

Re: [PATCH 19/73] arm: mach-s3c64xx mach-crag6410-module.c is not modular

Quoted 26 lines · Charles Keepax
Quoted 17 lines · Paul Gortmaker

Despite the name mach-crag6410-module.c, the code is built for MACH_WLF_CRAGG_6410 -- which is bool, and hence this code is either present or absent. It will never be modular, so using module_init as an alias for __initcall can be somewhat misleading.

Fix this up now, so that we can relocate module_init from init.h into module.h in the future. If we don't do this, we'd have to add module.h to obviously non-modular code, and that would be a worse thing.

Note that direct use of __initcall is discouraged, vs. one of the priority categorized subgroups. As __initcall gets mapped onto device_initcall, our use of device_initcall directly in this change means that the runtime impact is zero -- it will remain at level 6 in initcall ordering.

Quoted 7 lines
Cc Ben Dooks<[email protected]>
Cc Kukjin Kim<[email protected]>
Cc Russell King<[email protected]>
Cc patches at opensource.wolfsonmicro.com
Cc linux-arm-kernel at lists.infradead.org

---

Quoted 2 lines

Thanks, applied.

- Kukjin

#27 lore raw

PATCH 20/73 arm: use subsys_initcall in non-modular pl320 IPC code

In reply to Paul Gortmaker

The drivers/mailbox/pl320-ipc.o is dependent on config PL320_MBOX which is declared as a bool. Hence the code is never going to be modular. So using module_init as an alias for __initcall can be somewhat misleading.

Fix this up now, so that we can relocate module_init from init.h into module.h in the future. If we don't do this, we'd have to add module.h to obviously non-modular code, and that would be a worse thing. Also add an inclusion of init.h, as that was previously implicit.

Note that direct use of __initcall is discouraged, vs. one of the priority categorized subgroups. As __initcall gets mapped onto device_initcall, our use of subsys_initcall (which seems to make sense for netfilter code) will thus change this registration from level 6-device to level 4-subsys (i.e. slightly earlier). However no impact of that small difference is expected.

---
 drivers/mailbox/pl320-ipc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mailbox/pl320-ipc.c +1 -1
index d873cba..b2737a2 100644
@@ -195,4 +195,4 @@ static int __init ipc_init(void)
 {
 	return amba_driver_register(&pl320_driver);
 }
-module_init(ipc_init);
+subsys_initcall(ipc_init);
Signature · 1 line
1.8.4.1
maintainer
#28 lore raw

Re: [PATCH 20/73] arm: use subsys_initcall in non-modular pl320 IPC code

Quoted 7 lines · On Tuesday 21 January 2014 16:22:23 Paul Gortmaker wrote:

Note that direct use of __initcall is discouraged, vs. one of the priority categorized subgroups. As __initcall gets mapped onto device_initcall, our use of subsys_initcall (which seems to make sense for netfilter code) will thus change this registration from level 6-device to level 4-subsys (i.e. slightly earlier). However no impact of that small difference is expected.

This doesn't have anything to do with netfilter. The only user of this driver at the moment is the highbank cpufreq driver, but that could change.

Arnd

#29 lore raw

Re: [PATCH 20/73] arm: use subsys_initcall in non-modular pl320 IPC code

Quoted 9 lines · Arnd Bergmann
Quoted 7 lines · On Tuesday 21 January 2014 16:22:23 Paul Gortmaker wrote:

Note that direct use of __initcall is discouraged, vs. one of the priority categorized subgroups. As __initcall gets mapped onto device_initcall, our use of subsys_initcall (which seems to make sense for netfilter code) will thus change this registration from level 6-device to level 4-subsys (i.e. slightly earlier). However no impact of that small difference is expected.

Quoted 3 lines

This doesn't have anything to do with netfilter. The only user of this driver at the moment is the highbank cpufreq driver, but that could change.

Thanks -- cut and paste error from an earlier, similar changeset. Will "s/netfilter/IPC/"

Paul.
--

Quoted 3 lines

Arnd

#30 lore raw

PATCH 21/73 arm: don't use module_init in non-modular mach-vexpress/spc.c code

In reply to Paul Gortmaker

The spc.o is built for ARCH_VEXPRESS_SPC -- which is bool, and hence this code is either present or absent. It will never be modular, so using module_init as an alias for __initcall can be somewhat misleading.

Fix this up now, so that we can relocate module_init from init.h into module.h in the future. If we don't do this, we'd have to add module.h to obviously non-modular code, and that would be a worse thing.

Note that direct use of __initcall is discouraged, vs. one of the priority categorized subgroups. As __initcall gets mapped onto device_initcall, our use of device_initcall directly in this change means that the runtime impact is zero -- it will remain at level 6 in initcall ordering.

---
 arch/arm/mach-vexpress/spc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-vexpress/spc.c +1 -1
index c26ef5b..9312a9b 100644
@@ -581,4 +581,4 @@ static int __init ve_spc_clk_init(void)
 	platform_device_register_simple("vexpress-spc-cpufreq", -1, NULL, 0);
 	return 0;
 }
-module_init(ve_spc_clk_init);
+device_initcall(ve_spc_clk_init);
Signature · 1 line
1.8.4.1
#31 lore raw

PATCH 22/73 alpha: don't use module_init for non-modular core code

In reply to Paul Gortmaker

The srm console is always built in. It will never be modular, so using module_init as an alias for __initcall is rather misleading.

Fix this up now, so that we can relocate module_init from init.h into module.h in the future. If we don't do this, we'd have to add module.h to obviously non-modular code, and that would be a worse thing.

Direct use of __initcall is discouraged, vs prioritized ones. Use of device_initcall is consistent with what __initcall maps onto, and hence does not change the init order, making the
impact of this change zero. Should someone with real hardware
for boot testing want to change it later to arch_initcall or console_initcall, they can do that at a later date.

Cc Richard Henderson <[email protected]>
Cc Ivan Kokshaysky <[email protected]>
Cc Matt Turner <[email protected]>
---
 arch/alpha/kernel/srmcons.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/alpha/kernel/srmcons.c +1 -2
index 6f01d9a..72b5951 100644
@@ -237,8 +237,7 @@ srmcons_init(void)
 
 	return -ENODEV;
 }
-
-module_init(srmcons_init);
+device_initcall(srmcons_init);
 
 
 /*
Signature · 1 line
1.8.4.1
Reviewed-by on v1 22/73
#32 lore raw

Re: [PATCH 22/73] alpha: don't use module_init for non-modular core code

Quoted 16 lines · Paul Gortmaker

The srm console is always built in. It will never be modular, so using module_init as an alias for __initcall is rather misleading.

Fix this up now, so that we can relocate module_init from init.h into module.h in the future. If we don't do this, we'd have to add module.h to obviously non-modular code, and that would be a worse thing.

Direct use of __initcall is discouraged, vs prioritized ones. Use of device_initcall is consistent with what __initcall maps onto, and hence does not change the init order, making the
impact of this change zero. Should someone with real hardware
for boot testing want to change it later to arch_initcall or console_initcall, they can do that at a later date.

Quoted 8 lines
Cc Richard Henderson <[email protected]>
Cc Ivan Kokshaysky <[email protected]>
Cc Matt Turner <[email protected]>
---
 arch/alpha/kernel/srmcons.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

r~

#33 lore raw

PATCH 23/73 sparc: don't use module_init in non-modular pci.c code

In reply to Paul Gortmaker

The pci.o is built for SPARC64_PCI -- which is bool, and hence this code is either present or absent. It will never be modular, so using module_init as an alias for __initcall can be somewhat misleading.

Fix this up now, so that we can relocate module_init from init.h into module.h in the future. If we don't do this, we'd have to add module.h to obviously non-modular code, and that would be a worse thing.

Note that direct use of __initcall is discouraged, vs. one of the priority categorized subgroups. As __initcall gets mapped onto device_initcall, our use of device_initcall directly in this change means that the runtime impact is zero -- it will remain at level 6 in initcall ordering.

---
 arch/sparc/kernel/pci.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/sparc/kernel/pci.c +1 -2
index 7de8d1f..1555bbc 100644
@@ -1005,6 +1005,5 @@ static int __init of_pci_slot_init(void)
 
 	return 0;
 }
-
-module_init(of_pci_slot_init);
+device_initcall(of_pci_slot_init);
 #endif
Signature · 1 line
1.8.4.1
maintainer
#34 lore raw

Re: [PATCH 23/73] sparc: don't use module_init in non-modular pci.c code

From: Paul Gortmaker <[email protected]>
Date: Tue, 21 Jan 2014 16:22:26 -0500

Quoted 16 lines

The pci.o is built for SPARC64_PCI -- which is bool, and hence this code is either present or absent. It will never be modular, so using module_init as an alias for __initcall can be somewhat misleading.

Fix this up now, so that we can relocate module_init from init.h into module.h in the future. If we don't do this, we'd have to add module.h to obviously non-modular code, and that would be a worse thing.

Note that direct use of __initcall is discouraged, vs. one of the priority categorized subgroups. As __initcall gets mapped onto device_initcall, our use of device_initcall directly in this change means that the runtime impact is zero -- it will remain at level 6 in initcall ordering.

Quoted 4 lines

ACK

#35 lore raw

PATCH 24/73 m68k: don't use module_init in non-modular mvme16x/rtc.c code

In reply to Paul Gortmaker

The rtc.o is built for obj-y, i.e. always built in. It will never be modular, so using module_init as an alias for __initcall can be somewhat misleading.

Fix this up now, so that we can relocate module_init from init.h into module.h in the future. If we don't do this, we'd have to add module.h to obviously non-modular code, and that would be a worse thing.

Note that direct use of __initcall is discouraged, vs. one of the priority categorized subgroups. As __initcall gets mapped onto device_initcall, our use of device_initcall directly in this change means that the runtime impact is zero -- it will remain at level 6 in initcall ordering.

---
 arch/m68k/mvme16x/rtc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/m68k/mvme16x/rtc.c +1 -1
index 6ef7a81..1755e2f 100644
@@ -161,4 +161,4 @@ static int __init rtc_MK48T08_init(void)
 	printk(KERN_INFO "MK48T08 Real Time Clock Driver v%s\n", RTC_VERSION);
 	return misc_register(&rtc_dev);
 }
-module_init(rtc_MK48T08_init);
+device_initcall(rtc_MK48T08_init);
Signature · 1 line
1.8.4.1
#36 lore raw

PATCH 25/73 ia64: don't use module_init for non-modular core kernel/mca.c code

In reply to Paul Gortmaker

The mca.c code is always built in. It will never be modular, so using module_init as an alias for __initcall is rather misleading.

Fix this up now, so that we can relocate module_init from init.h into module.h in the future. If we don't do this, we'd have to add module.h to obviously non-modular code, and that would be a worse thing.

Direct use of __initcall is discouraged, vs prioritized ones. Use of device_initcall is consistent with what __initcall maps onto, and hence does not change the init order, making the
impact of this change zero. Should someone with real hardware
for boot testing want to change it later to arch_initcall or something different, they can do that at a later date.

---
 arch/ia64/sn/kernel/mca.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
arch/ia64/sn/kernel/mca.c +1 -2
index 27793f7..5b799d4d 100644
@@ -142,5 +142,4 @@ static int __init sn_salinfo_init(void)
 		salinfo_platform_oemdata = &sn_salinfo_platform_oemdata;
 	return 0;
 }
-
-module_init(sn_salinfo_init)
+device_initcall(sn_salinfo_init);
Signature · 1 line
1.8.4.1
#37 lore raw

PATCH 26/73 ia64: don't use module_init in non-modular sim/simscsi.c code

In reply to Paul Gortmaker

The simscsi.o is built for HP_SIMSCSI -- which is bool, and hence this code is either present or absent. It will never be modular, so using module_init as an alias for __initcall can be somewhat misleading.

Fix this up now, so that we can relocate module_init from init.h into module.h in the future. If we don't do this, we'd have to add module.h to obviously non-modular code, and that would be a worse thing.

Note that direct use of __initcall is discouraged, vs. one of the priority categorized subgroups. As __initcall gets mapped onto device_initcall, our use of device_initcall directly in this change means that the runtime impact is zero -- it will remain at level 6 in initcall ordering.

And since it can't be modular, we remove all the __exitcall stuff related to module_exit() -- it is dead code that won't ever be executed.

---
 arch/ia64/hp/sim/simscsi.c | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)
arch/ia64/hp/sim/simscsi.c +1 -10
index 3a428f1..085047f 100644
@@ -368,13 +368,4 @@ simscsi_init(void)
 	scsi_host_put(host);
 	return error;
 }
-
-static void __exit
-simscsi_exit(void)
-{
-	scsi_remove_host(host);
-	scsi_host_put(host);
-}
-
-module_init(simscsi_init);
-module_exit(simscsi_exit);
+device_initcall(simscsi_init);
Signature · 1 line
1.8.4.1
#38 lore raw

PATCH 27/73 drivers/clk: don't use module_init in clk-nomadik.c which is non-modular

In reply to Paul Gortmaker

The clk-nomadik.o is built for ARCH_NOMADIK -- which is bool, and hence this code is either present or absent. It will never be modular, so using module_init as an alias for __initcall can be somewhat misleading.

Fix this up now, so that we can relocate module_init from init.h into module.h in the future. If we don't do this, we'd have to add module.h to obviously non-modular code, and that would be a worse thing.

Note that direct use of __initcall is discouraged, vs. one of the priority categorized subgroups. As __initcall gets mapped onto device_initcall, our use of device_initcall directly in this change means that the runtime impact is zero -- it will remain at level 6 in initcall ordering.

Cc Mike Turquette <[email protected]>
Cc linux-arm-kernel at lists.infradead.org
---
 drivers/clk/clk-nomadik.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/clk/clk-nomadik.c +1 -2
index 6a934a5..5be9b9f 100644
@@ -500,8 +500,7 @@ static int __init nomadik_src_clk_init_debugfs(void)
 			    NULL, NULL, &nomadik_src_clk_debugfs_ops);
 	return 0;
 }
-
-module_init(nomadik_src_clk_init_debugfs);
+device_initcall(nomadik_src_clk_init_debugfs);
 
 #endif
 
Signature · 1 line
1.8.4.1
#39 lore raw

Re: [PATCH 27/73] drivers/clk: don't use module_init in clk-nomadik.c which is non-modular

Quoting Paul Gortmaker (2014-01-21 13:22:30)

Quoted 16 lines

The clk-nomadik.o is built for ARCH_NOMADIK -- which is bool, and hence this code is either present or absent. It will never be modular, so using module_init as an alias for __initcall can be somewhat misleading.

Fix this up now, so that we can relocate module_init from init.h into module.h in the future. If we don't do this, we'd have to add module.h to obviously non-modular code, and that would be a worse thing.

Note that direct use of __initcall is discouraged, vs. one of the priority categorized subgroups. As __initcall gets mapped onto device_initcall, our use of device_initcall directly in this change means that the runtime impact is zero -- it will remain at level 6 in initcall ordering.

Quoted 3 lines
Cc Mike Turquette <[email protected]>
Cc linux-arm-kernel at lists.infradead.org

Looks good to me.

Regards,
Mike

Quoted 21 lines
---
 drivers/clk/clk-nomadik.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/clk/clk-nomadik.c +1 -2
index 6a934a5..5be9b9f 100644
@@ -500,8 +500,7 @@ static int __init nomadik_src_clk_init_debugfs(void)
                            NULL, NULL, &nomadik_src_clk_debugfs_ops);
        return 0;
 }
-
-module_init(nomadik_src_clk_init_debugfs);
+device_initcall(nomadik_src_clk_init_debugfs);
 
 #endif
 
Signature · 1 line
1.8.4.1
#40 lore raw

PATCH 28/73 cpuidle: don't use modular platform register in non-modular ARM drivers

In reply to Paul Gortmaker

These two drivers are configured with Kconfig options that are both declared as bool. Hence it is not possible for the code to be built as modular. However the code is currently using the module_platform_driver() macro for driver registration.

While this currently works, we really don't want to be including the module.h header in non-modular code, which we'll be forced to do, pending some upcoming code relocation from init.h into module.h. So we fix it now by using the non-modular equivalent.

With some macro detangulation, and a little help from cpp, we can see that module_platform_driver(calxeda_cpuidle_plat_driver) gets roughly translated into:

  static int __init calxeda_cpuidle_plat_driver_init(void)
  {
        return platform_driver_register(&calxeda_cpuidle_plat_driver);
  }
  module_init(calxeda_cpuidle_plat_driver_init);

  static void __exit calxeda_cpuidle_plat_driver_exit(void)
  {
        platform_driver_unregister(&calxeda_cpuidle_plat_driver);
  }
  module_exit(calxeda_cpuidle_plat_driver_exit);

[and similarly for the other file, cpuidle-zynq.c]

And since we've already established that the code is non-modular, we can completely drop any code relating to module_exit. For non modular code, module_init beomes __initcall. But direct use of __initcall is discouraged, vs. one of the priority categorized subgroups. As __initcall gets mapped onto device_initcall, our use of device_initcall directly in this change means that the runtime impact is zero -- they will remain at level 6 in the initcall ordering.

---
 drivers/cpuidle/cpuidle-calxeda.c | 6 +++++-
 drivers/cpuidle/cpuidle-zynq.c    | 6 +++++-
 2 files changed, 10 insertions(+), 2 deletions(-)
drivers/cpuidle/cpuidle-calxeda.c +5 -1
index 6e51114..631e2cd 100644
@@ -78,4 +78,8 @@ static struct platform_driver calxeda_cpuidle_plat_driver = {
         .probe = calxeda_cpuidle_probe,
 };
 
-module_platform_driver(calxeda_cpuidle_plat_driver);
+static int __init calxeda_cpuidle_plat_driver_init(void)
+{
+	return platform_driver_register(&calxeda_cpuidle_plat_driver);
+}
+device_initcall(calxeda_cpuidle_plat_driver_init);
drivers/cpuidle/cpuidle-zynq.c +5 -1
index aded759..a1aae51 100644
@@ -85,4 +85,8 @@ static struct platform_driver zynq_cpuidle_driver = {
 	.probe = zynq_cpuidle_probe,
 };
 
-module_platform_driver(zynq_cpuidle_driver);
+static int __init zynq_cpuidle_driver_init(void)
+{
+	return platform_driver_register(&zynq_cpuidle_driver);
+}
+device_initcall(zynq_cpuidle_driver_init);
Signature · 1 line
1.8.4.1
#41 lore raw

PATCH 29/73 drivers/platform: don't use modular register in non-modular pdev_bus.c

In reply to Paul Gortmaker

This driver is configured with a Kconfig option that is declared as a bool. Hence it is not possible for the code to be built as modular. However the code is currently using the module_platform_driver() macro for driver registration.

While this currently works, we really don't want to be including the module.h header in non-modular code, which we'll be forced to do, pending some upcoming code relocation from init.h into module.h. So we fix it now by using the non-modular equivalent.

With some macro detangulation, and a little help from cpp, we can see that module_platform_driver(goldfish_pdev_bus_driver) gets roughly translated into:

  static int __init goldfish_pdev_bus_driver_init(void)
  {
        return platform_driver_register(&goldfish_pdev_bus_driver);
  }
  module_init(goldfish_pdev_bus_driver_init);

  static void __exit goldfish_pdev_bus_driver_exit(void)
  {
        platform_driver_unregister(&goldfish_pdev_bus_driver);
  }
  module_exit(goldfish_pdev_bus_driver_exit);

And since we've already established that the code is non-modular, we can completely drop any code relating to module_exit. For non modular code, module_init beomes __initcall. But direct use of __initcall is discouraged, vs. one of the priority categorized subgroups. As __initcall gets mapped onto device_initcall, our use of device_initcall directly in this change means that the runtime impact is zero -- they will remain at level 6 in the initcall ordering.

---
 drivers/platform/goldfish/pdev_bus.c | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)
drivers/platform/goldfish/pdev_bus.c +5 -10
index 92cc4cf..e4e999f 100644
@@ -221,20 +221,15 @@ free_resources:
 	return ret;
 }
 
-static int goldfish_pdev_bus_remove(struct platform_device *pdev)
-{
-	iounmap(pdev_bus_base);
-	free_irq(pdev_bus_irq, pdev);
-	release_mem_region(pdev_bus_addr, pdev_bus_len);
-	return 0;
-}
-
 static struct platform_driver goldfish_pdev_bus_driver = {
 	.probe = goldfish_pdev_bus_probe,
-	.remove = goldfish_pdev_bus_remove,
 	.driver = {
 		.name = "goldfish_pdev_bus"
 	}
 };
 
-module_platform_driver(goldfish_pdev_bus_driver);
+static int __init goldfish_pdev_bus_driver_init(void)
+{
+	return platform_driver_register(&goldfish_pdev_bus_driver);
+}
+device_initcall(goldfish_pdev_bus_driver_init);
Signature · 1 line
1.8.4.1
#42 lore raw

PATCH 30/73 drivers/i2c: busses/i2c-acorn.c is tristate and should use module.h

In reply to Paul Gortmaker

This file is controlled by a tristate Kconfig option, and hence needs to include module.h so that it can get module_init() once we relocate it from init.h into module.h in the future.

Note that module_exit() appears to be missing from the driver, so it is questionable whether it would actually work for a removal and reload cycle if it was configured for a modular build.

---
 drivers/i2c/busses/i2c-acorn.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/busses/i2c-acorn.c +1 -1
index ed9f48d..9d7be5a 100644
@@ -12,7 +12,7 @@
  *  On Acorn machines, the following i2c devices are on the bus:
  *	- PCF8583 real time clock & static RAM
  */
-#include <linux/init.h>
+#include <linux/module.h>
 #include <linux/i2c.h>
 #include <linux/i2c-algo-bit.h>
 #include <linux/io.h>
Signature · 1 line
1.8.4.1
Applied
#43 lore raw

Re: [PATCH 30/73] drivers/i2c: busses/i2c-acorn.c is tristate and should use module.h

Quoted 11 lines · Paul Gortmaker

This file is controlled by a tristate Kconfig option, and hence needs to include module.h so that it can get module_init() once we relocate it from init.h into module.h in the future.

Note that module_exit() appears to be missing from the driver, so it is questionable whether it would actually work for a removal and reload cycle if it was configured for a modular build.

Applied to for-current, thanks!

#44 lore raw

PATCH 31/73 module: relocate module_init from init.h to module.h

In reply to Paul Gortmaker

Modular users will always be users of init functionality, but users of init functionality are not necessarily always modules.

Hence any functionality like module_init and module_exit would be more at home in the module.h file. And module.h should explicitly include init.h to make the dependency clear.

We've already done all the legwork needed to ensure that this move does not cause any build regressions due to implicit header file include assumptions about where module_init lives.

---
 include/linux/init.h   | 66 ---------------------------------------------
 include/linux/module.h | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 72 insertions(+), 66 deletions(-)
include/linux/init.h +0 -66
index f693cc3..630beb3 100644
@@ -244,56 +244,8 @@ void __init parse_early_param(void);
 void __init parse_early_options(char *cmdline);
 #endif /* __ASSEMBLY__ */
 
-/**
- * module_init() - driver initialization entry point
- * @x: function to be run at kernel boot time or module insertion
- * 
- * module_init() will either be called during do_initcalls() (if
- * builtin) or at module insertion time (if a module).  There can only
- * be one per module.
- */
-#define module_init(x)	__initcall(x);
-
-/**
- * module_exit() - driver exit entry point
- * @x: function to be run when driver is removed
- * 
- * module_exit() will wrap the driver clean-up code
- * with cleanup_module() when used with rmmod when
- * the driver is a module.  If the driver is statically
- * compiled into the kernel, module_exit() has no effect.
- * There can only be one per module.
- */
-#define module_exit(x)	__exitcall(x);
-
 #else /* MODULE */
 
-/* Don't use these in loadable modules, but some people do... */
-#define early_initcall(fn)		module_init(fn)
-#define core_initcall(fn)		module_init(fn)
-#define postcore_initcall(fn)		module_init(fn)
-#define arch_initcall(fn)		module_init(fn)
-#define subsys_initcall(fn)		module_init(fn)
-#define fs_initcall(fn)			module_init(fn)
-#define rootfs_initcall(fn)		module_init(fn)
-#define device_initcall(fn)		module_init(fn)
-#define late_initcall(fn)		module_init(fn)
-
-#define console_initcall(fn)		module_init(fn)
-#define security_initcall(fn)		module_init(fn)
-
-/* Each module must use one module_init(). */
-#define module_init(initfn)					\
-	static inline initcall_t __inittest(void)		\
-	{ return initfn; }					\
-	int init_module(void) __attribute__((alias(#initfn)));
-
-/* This is only required if you want to be unloadable. */
-#define module_exit(exitfn)					\
-	static inline exitcall_t __exittest(void)		\
-	{ return exitfn; }					\
-	void cleanup_module(void) __attribute__((alias(#exitfn)));
-
 #define __setup_param(str, unique_id, fn)	/* nothing */
 #define __setup(str, func) 			/* nothing */
 #endif
@@ -301,24 +253,6 @@ void __init parse_early_options(char *cmdline);
 /* Data marked not to be saved by software suspend */
 #define __nosavedata __section(.data..nosave)
 
-/* This means "can be init if no module support, otherwise module load
-   may call it." */
-#ifdef CONFIG_MODULES
-#define __init_or_module
-#define __initdata_or_module
-#define __initconst_or_module
-#define __INIT_OR_MODULE	.text
-#define __INITDATA_OR_MODULE	.data
-#define __INITRODATA_OR_MODULE	.section ".rodata","a",%progbits
-#else
-#define __init_or_module __init
-#define __initdata_or_module __initdata
-#define __initconst_or_module __initconst
-#define __INIT_OR_MODULE __INIT
-#define __INITDATA_OR_MODULE __INITDATA
-#define __INITRODATA_OR_MODULE __INITRODATA
-#endif /*CONFIG_MODULES*/
-
 #ifdef MODULE
 #define __exit_p(x) x
 #else
include/linux/module.h +72 -0

84 lines not on this page · raw message

Signature · 1 line
1.8.4.1
Acked-by on v1 31/73
#45 lore raw

Re: [PATCH 31/73] module: relocate module_init from init.h to module.h

Quoted 7 lines · Paul Gortmaker

Modular users will always be users of init functionality, but users of init functionality are not necessarily always modules.

Hence any functionality like module_init and module_exit would be more at home in the module.h file. And module.h should explicitly include init.h to make the dependency clear.

Quoted 6 lines

We've already done all the legwork needed to ensure that this move does not cause any build regressions due to implicit header file include assumptions about where module_init lives.

Want to delete the extraneous semicolons, for bonus points? :)

Quoted 1 line

+#define module_init(x) __initcall(x);

...

Quoted 1 line

+#define module_exit(x) __exitcall(x);

Cheers,
Rusty.

#46 lore raw

Re: [PATCH 31/73] module: relocate module_init from init.h to module.h

Quoted 15 lines · Rusty Russell
Quoted 7 lines · Paul Gortmaker

Modular users will always be users of init functionality, but users of init functionality are not necessarily always modules.

Hence any functionality like module_init and module_exit would be more at home in the module.h file. And module.h should explicitly include init.h to make the dependency clear.

Quoted 6 lines

We've already done all the legwork needed to ensure that this move does not cause any build regressions due to implicit header file include assumptions about where module_init lives.

Quoted 7 lines

Want to delete the extraneous semicolons, for bonus points? :)

Quoted 1 line

+#define module_init(x) __initcall(x);

...

Quoted 1 line

+#define module_exit(x) __exitcall(x);

There are still around 380 modules that use "module_init(x)" without a trailing semi-colon. That would make lots of build errors/warnings, I think. There was also a 2012 patch to fix those and change the module_init() macro.

What happened there?

ISTR (maybe incorrectly) that Linus once argued for leaving the trailing semi-colon there (perhaps 8 years ago). who knows?

Signature · 1 line
~Randy
#47 lore raw

Re: [PATCH 31/73] module: relocate module_init from init.h to module.h

In reply to Rusty Russell
Quoted 12 lines · Rusty Russell
Quoted 11 lines · Paul Gortmaker

Modular users will always be users of init functionality, but users of init functionality are not necessarily always modules.

Hence any functionality like module_init and module_exit would be more at home in the module.h file. And module.h should explicitly include init.h to make the dependency clear.

We've already done all the legwork needed to ensure that this move does not cause any build regressions due to implicit header file include assumptions about where module_init lives.

Quoted 8 lines
Quoted 2 lines

Want to delete the extraneous semicolons, for bonus points? :)

Quoted 1 line

+#define module_init(x) __initcall(x);

I would if I could, but as I was discussing on irc with hpa about a week ago, there are ~600 users of module_init who are relying on
that extra ";" that we need to fix 1st... :-) [on my todo list!]

Thanks for the review; much appreciated,
Paul.
--

Quoted 9 lines

...

Quoted 1 line

+#define module_exit(x) __exitcall(x);

Cheers,
Rusty.
--
To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#48 lore raw

PATCH 32/73 logo: emit "#include <linux/init.h> in autogenerated C file

In reply to Paul Gortmaker

The header linux_logo.h itself does not use any __init type directives, but the autogenerated C file itself does. Hence move the include directive into the autogenerated file.

---
 include/linux/linux_logo.h | 3 ---
 scripts/pnmtologo.c        | 1 +
 2 files changed, 1 insertion(+), 3 deletions(-)
include/linux/linux_logo.h +0 -3
index ca5bd91..aea584c 100644
@@ -14,9 +14,6 @@
  *  but should contain %s to display the version
  */
 
-#include <linux/init.h>
-
-
 #define LINUX_LOGO_MONO		1	/* monochrome black/white */
 #define LINUX_LOGO_VGA16	2	/* 16 colors VGA text palette */
 #define LINUX_LOGO_CLUT224	3	/* 224 colors */
scripts/pnmtologo.c +1 -0
index 68bb4ef..06a4b4e 100644
@@ -243,6 +243,7 @@ static void write_header(void)
     fputs(" *\n", out);
     fprintf(out, " *  Linux logo %s\n", logoname);
     fputs(" */\n\n", out);
+    fputs("#include <linux/init.h>\n", out);
     fputs("#include <linux/linux_logo.h>\n\n", out);
     fprintf(out, "static unsigned char %s_data[] __initdata = {\n",
 	    logoname);
Signature · 1 line
1.8.4.1
#49 lore raw

PATCH 33/73 arm: delete non-required instances of include <linux/init.h>

In reply to Paul Gortmaker

None of these files are actually using any __init type directives and hence don't need to include <linux/init.h>. Most are just a left over from __devinit and __cpuinit removal, or simply due to code getting copied from one driver to the next.

---
 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-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-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 -
 arch/arm/mach-iop33x/uart.c               | 1 -
 arch/arm/mach-msm/headsmp.S               | 1 -
 arch/arm/mach-msm/proc_comm.h             | 1 -
 arch/arm/mach-mvebu/headsmp.S             | 1 -
 arch/arm/mach-netx/fb.c                   | 1 -
 arch/arm/mach-netx/pfifo.c                | 1 -
 arch/arm/mach-netx/xc.c                   | 1 -
 arch/arm/mach-nspire/clcd.c               | 1 -
 arch/arm/mach-omap1/fpga.c                | 1 -
 arch/arm/mach-omap1/include/mach/serial.h | 1 -
 arch/arm/mach-omap2/omap-headsmp.S        | 1 -
 arch/arm/mach-omap2/omap3-restart.c       | 1 -
 arch/arm/mach-omap2/vc3xxx_data.c         | 1 -
 arch/arm/mach-omap2/vc44xx_data.c         | 1 -
 arch/arm/mach-omap2/vp3xxx_data.c         | 1 -
 arch/arm/mach-omap2/vp44xx_data.c         | 1 -
 arch/arm/mach-prima2/headsmp.S            | 1 -
 arch/arm/mach-pxa/clock-pxa2xx.c          | 1 -
 arch/arm/mach-pxa/clock-pxa3xx.c          | 1 -
 arch/arm/mach-pxa/corgi_pm.c              | 1 -
 arch/arm/mach-pxa/mfp-pxa3xx.c            | 1 -
 arch/arm/mach-pxa/spitz_pm.c              | 1 -
 arch/arm/mach-s3c24xx/clock-s3c244x.c     | 1 -
 arch/arm/mach-s3c24xx/iotiming-s3c2410.c  | 1 -
 arch/arm/mach-s3c24xx/iotiming-s3c2412.c  | 1 -
 arch/arm/mach-s3c24xx/irq-pm.c            | 1 -
 arch/arm/mach-s3c24xx/pm.c                | 1 -
 arch/arm/mach-s5p64x0/clock.c             | 1 -
 arch/arm/mach-sa1100/ssp.c                | 1 -
 arch/arm/mach-shmobile/headsmp-scu.S      | 1 -
 arch/arm/mach-shmobile/headsmp.S          | 1 -
 arch/arm/mach-shmobile/platsmp.c          | 1 -
 arch/arm/mach-shmobile/sleep-sh7372.S     | 1 -
 arch/arm/mach-socfpga/headsmp.S           | 1 -
 arch/arm/mach-sti/headsmp.S               | 1 -
 arch/arm/mach-sunxi/headsmp.S             | 1 -
 arch/arm/mach-tegra/flowctrl.c            | 1 -
 arch/arm/mach-tegra/headsmp.S             | 1 -
 arch/arm/mach-tegra/reset-handler.S       | 1 -
 arch/arm/mach-u300/dummyspichip.c         | 1 -
 arch/arm/mach-ux500/board-mop500-audio.c  | 1 -
 arch/arm/mach-ux500/headsmp.S             | 1 -
 arch/arm/mach-versatile/versatile_ab.c    | 1 -
 arch/arm/mach-zynq/headsmp.S              | 1 -
 arch/arm/mm/hugetlbpage.c                 | 1 -
 arch/arm/plat-iop/i2c.c                   | 1 -
 arch/arm/plat-samsung/pm-check.c          | 1 -
 arch/arm/plat-samsung/pm-gpio.c           | 1 -
 arch/arm/plat-samsung/s5p-irq-pm.c        | 1 -
 arch/arm/plat-versatile/headsmp.S         | 1 -
 arch/arm/plat-versatile/platsmp.c         | 1 -
 63 files changed, 63 deletions(-)
arch/arm/common/dmabounce.c +0 -1
index 1143c4d..ee568605 100644
@@ -23,7 +23,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/page-flags.h>
 #include <linux/device.h>
arch/arm/firmware/trusted_foundations.c +0 -1
index ef1e3d8..a07fc24 100644
@@ -15,7 +15,6 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/of.h>
 #include <asm/firmware.h>
 #include <asm/trusted_foundations.h>
arch/arm/include/asm/arch_timer.h +0 -1
index 0704e0c..30cc2fb 100644
@@ -4,7 +4,6 @@
 #include <asm/barrier.h>
 #include <asm/errno.h>
 #include <linux/clocksource.h>
-#include <linux/init.h>
 #include <linux/types.h>
 
 #include <clocksource/arm_arch_timer.h>
arch/arm/kernel/entry-header.S +0 -1
index 39f89fb..989ca33 100644
@@ -1,4 +1,3 @@
-#include <linux/init.h>
 #include <linux/linkage.h>
 
 #include <asm/assembler.h>
arch/arm/kernel/hyp-stub.S +0 -1
index 797b1a6..54bbb51 100644
@@ -16,7 +16,6 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#include <linux/init.h>
 #include <linux/linkage.h>
 #include <asm/assembler.h>
 #include <asm/virt.h>
arch/arm/kernel/suspend.c +0 -1
index 2835d35..59afe38 100644
@@ -1,4 +1,3 @@
-#include <linux/init.h>
 #include <linux/slab.h>
 
 #include <asm/cacheflush.h>
arch/arm/kernel/unwind.c +0 -1
index 00df012..eb05820 100644
@@ -38,7 +38,6 @@
 #endif /* __CHECKER__ */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/export.h>
 #include <linux/sched.h>
 #include <linux/slab.h>
arch/arm/mach-cns3xxx/pm.c +0 -1
index fb38c72..e10635f 100644
@@ -6,7 +6,6 @@
  * published by the Free Software Foundation.
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/io.h>
 #include <linux/delay.h>
arch/arm/mach-exynos/headsmp.S +0 -1
index cdd9d91..b6c8617 100644
@@ -11,7 +11,6 @@
  * published by the Free Software Foundation.
  */
 #include <linux/linkage.h>
-#include <linux/init.h>
 
 /*
  * exynos4 specific entry point for secondary CPUs.  This provides
arch/arm/mach-footbridge/personal.c +0 -1
index 7bdeabd..1964734 100644
@@ -3,7 +3,6 @@
  *
  * Personal server (Skiff) machine fixup
  */
-#include <linux/init.h>
 #include <linux/spinlock.h>
 
 #include <asm/hardware/dec21285.h>
arch/arm/mach-imx/headsmp.S +0 -1
index 627f16f..3b47e8f 100644
@@ -11,7 +11,6 @@
  */
 
 #include <linux/linkage.h>
-#include <linux/init.h>
 #include <asm/asm-offsets.h>
 #include <asm/hardware/cache-l2x0.h>
 
arch/arm/mach-imx/iomux-v3.c +0 -1
index 9dae74b..e1de1b2 100644
@@ -19,7 +19,6 @@
  * MA 02110-1301, USA.
  */
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/string.h>
arch/arm/mach-iop33x/uart.c +0 -1
index bbf54d7..2c8a35f 100644
@@ -10,7 +10,6 @@
  */
 
 #include <linux/mm.h>
-#include <linux/init.h>
 #include <linux/major.h>
 #include <linux/fs.h>
 #include <linux/platform_device.h>
arch/arm/mach-msm/headsmp.S +0 -1
index 6c62c3f..d41bbbf 100644
@@ -9,7 +9,6 @@
  * published by the Free Software Foundation.
  */
 #include <linux/linkage.h>
-#include <linux/init.h>
 
 /*
  * MSM specific entry point for secondary CPUs.  This provides
arch/arm/mach-msm/proc_comm.h +0 -1
index e8d043a..63fd358 100644
@@ -16,7 +16,6 @@
 #ifndef _ARCH_ARM_MACH_MSM_PROC_COMM_H_
 #define _ARCH_ARM_MACH_MSM_PROC_COMM_H_
 
-#include <linux/init.h>
 
 enum {
 	PCOM_CMD_IDLE = 0x0,
arch/arm/mach-mvebu/headsmp.S +0 -1
index 3dd80df..7d77ef7 100644
@@ -19,7 +19,6 @@
  */
 
 #include <linux/linkage.h>
-#include <linux/init.h>
 
 #include <asm/assembler.h>
 
arch/arm/mach-netx/fb.c +0 -1
index d122ee6..40b3c12 100644
@@ -18,7 +18,6 @@
  */
 
 #include <linux/device.h>
-#include <linux/init.h>
 #include <linux/dma-mapping.h>
 #include <linux/amba/bus.h>
 #include <linux/amba/clcd.h>
arch/arm/mach-netx/pfifo.c +0 -1
index 0398494..8e1856d 100644
@@ -17,7 +17,6 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/mutex.h>
 #include <linux/io.h>
arch/arm/mach-netx/xc.c +0 -1
index f1c972d..d9aea9c 100644
@@ -17,7 +17,6 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-#include <linux/init.h>
 #include <linux/device.h>
 #include <linux/firmware.h>
 #include <linux/mutex.h>
arch/arm/mach-nspire/clcd.c +0 -1
index abea126..92c1557 100644
@@ -9,7 +9,6 @@
  *
  */
 
-#include <linux/init.h>
 #include <linux/of.h>
 #include <linux/amba/bus.h>
 #include <linux/amba/clcd.h>
arch/arm/mach-omap1/fpga.c +0 -1
index 3c0e422..a8a492a 100644
@@ -18,7 +18,6 @@
 
 #include <linux/types.h>
 #include <linux/gpio.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/device.h>
 #include <linux/errno.h>
arch/arm/mach-omap1/include/mach/serial.h +0 -1
index 2ce6a2d..0ad7fe9 100644
@@ -11,7 +11,6 @@
 #ifndef __ASM_ARCH_SERIAL_H
 #define __ASM_ARCH_SERIAL_H
 
-#include <linux/init.h>
 
 /*
  * Memory entry used for the DEBUG_LL UART configuration, relative to
arch/arm/mach-omap2/omap-headsmp.S +0 -1
index 75e9295..4259a17 100644
@@ -16,7 +16,6 @@
  */
 
 #include <linux/linkage.h>
-#include <linux/init.h>
 
 #include "omap44xx.h"
 
arch/arm/mach-omap2/omap3-restart.c +0 -1
index 5de2a0c..5b457fb 100644
@@ -11,7 +11,6 @@
  * published by the Free Software Foundation.
  */
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/reboot.h>
 
 #include "iomap.h"
arch/arm/mach-omap2/vc3xxx_data.c +0 -1
index 75bc4aa..1cdd18a 100644
@@ -16,7 +16,6 @@
  */
 #include <linux/io.h>
 #include <linux/err.h>
-#include <linux/init.h>
 
 #include "common.h"
 
arch/arm/mach-omap2/vc44xx_data.c +0 -1
index 085e5d6..6134cfd 100644
@@ -16,7 +16,6 @@
  */
 #include <linux/io.h>
 #include <linux/err.h>
-#include <linux/init.h>
 
 #include "common.h"
 
arch/arm/mach-omap2/vp3xxx_data.c +0 -1
index 1914e02..f99ca62 100644
@@ -17,7 +17,6 @@
 
 #include <linux/io.h>
 #include <linux/err.h>
-#include <linux/init.h>
 
 #include "common.h"
 
arch/arm/mach-omap2/vp44xx_data.c +0 -1
index e62f6b0..9036d26 100644
@@ -17,7 +17,6 @@
 
 #include <linux/io.h>
 #include <linux/err.h>
-#include <linux/init.h>
 
 #include "common.h"
 
arch/arm/mach-prima2/headsmp.S +0 -1
index d86fe33..3567ea8 100644
@@ -7,7 +7,6 @@
  */
 
 #include <linux/linkage.h>
-#include <linux/init.h>
 
 /*
  * SIRFSOC specific entry point for secondary CPUs.  This provides
arch/arm/mach-pxa/clock-pxa2xx.c +0 -1
index 9ee2ad6..0d9a905 100644
@@ -8,7 +8,6 @@
 
 #include <linux/module.h>
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/io.h>
 #include <linux/syscore_ops.h>
 
arch/arm/mach-pxa/clock-pxa3xx.c +0 -1
index d4e9499..1dab509 100644
@@ -8,7 +8,6 @@
 
 #include <linux/module.h>
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/io.h>
 #include <linux/syscore_ops.h>
 
arch/arm/mach-pxa/corgi_pm.c +0 -1
index 7a39efc..aa38aab 100644
@@ -11,7 +11,6 @@
 
 #include <linux/module.h>
 #include <linux/stat.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/delay.h>
 #include <linux/gpio.h>
arch/arm/mach-pxa/mfp-pxa3xx.c +0 -1
index 89863a0..1c4de06 100644
@@ -15,7 +15,6 @@
 
 #include <linux/module.h>
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/io.h>
 #include <linux/syscore_ops.h>
 
arch/arm/mach-pxa/spitz_pm.c +0 -1
index e191f99..24318fe 100644
@@ -11,7 +11,6 @@
 
 #include <linux/module.h>
 #include <linux/stat.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/delay.h>
 #include <linux/gpio.h>
arch/arm/mach-s3c24xx/clock-s3c244x.c +0 -1
index 6d9b688..71f5852 100644
@@ -21,7 +21,6 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/list.h>
arch/arm/mach-s3c24xx/iotiming-s3c2410.c +0 -1
index 4cd13ab..8e0228b 100644
@@ -10,7 +10,6 @@
  * published by the Free Software Foundation.
 */
 
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/errno.h>
 #include <linux/cpufreq.h>
arch/arm/mach-s3c24xx/iotiming-s3c2412.c +0 -1
index bd064c0..d695764 100644
@@ -10,7 +10,6 @@
  * published by the Free Software Foundation.
 */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/interrupt.h>
 #include <linux/ioport.h>
arch/arm/mach-s3c24xx/irq-pm.c +0 -1
index b91341e..12ed85f 100644
@@ -11,7 +11,6 @@
  * published by the Free Software Foundation.
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/interrupt.h>
 #include <linux/irq.h>
arch/arm/mach-s3c24xx/pm.c +0 -1
index 052ca23..6749ebb 100644
@@ -26,7 +26,6 @@
  * Thanks to Dimitry Andric for debugging
 */
 
-#include <linux/init.h>
 #include <linux/suspend.h>
 #include <linux/errno.h>
 #include <linux/time.h>
arch/arm/mach-s5p64x0/clock.c +0 -1
index 57e7189..e0e802f6 100644
@@ -10,7 +10,6 @@
  * published by the Free Software Foundation.
 */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/list.h>
arch/arm/mach-sa1100/ssp.c +0 -1
index e22fca9..dd04880 100644
@@ -16,7 +16,6 @@
 #include <linux/errno.h>
 #include <linux/interrupt.h>
 #include <linux/ioport.h>
-#include <linux/init.h>
 #include <linux/io.h>
 
 #include <mach/hardware.h>
arch/arm/mach-shmobile/headsmp-scu.S +0 -1
index f45dde7..df583ef 100644
@@ -20,7 +20,6 @@
  */
 
 #include <linux/linkage.h>
-#include <linux/init.h>
 #include <asm/memory.h>
 
 /*
arch/arm/mach-shmobile/headsmp.S +0 -1
index e5be5c8..8189e46 100644
@@ -11,7 +11,6 @@
  * published by the Free Software Foundation.
  */
 #include <linux/linkage.h>
-#include <linux/init.h>
 #include <asm/memory.h>
 
 ENTRY(shmobile_invalidate_start)
arch/arm/mach-shmobile/platsmp.c +0 -1
index 9ebc246..73cf12c 100644
@@ -10,7 +10,6 @@
  * it under the terms of the GNU General Public License version 2 as
  * published by the Free Software Foundation.
  */
-#include <linux/init.h>
 #include <asm/cacheflush.h>
 #include <asm/smp_plat.h>
 #include <mach/common.h>
arch/arm/mach-shmobile/sleep-sh7372.S +0 -1
index 9782862..df35418 100644
@@ -30,7 +30,6 @@
  */
 
 #include <linux/linkage.h>
-#include <linux/init.h>
 #include <asm/memory.h>
 #include <asm/assembler.h>
 
arch/arm/mach-socfpga/headsmp.S +0 -1
index 95c115d..eb59d39 100644
@@ -8,7 +8,6 @@
  * published by the Free Software Foundation.
  */
 #include <linux/linkage.h>
-#include <linux/init.h>
 
 	.arch	armv7-a
 
arch/arm/mach-sti/headsmp.S +0 -1
index 4c09bae..66eb429 100644
@@ -14,7 +14,6 @@
  * published by the Free Software Foundation.
  */
 #include <linux/linkage.h>
-#include <linux/init.h>
 
 /*
  * ST specific entry point for secondary CPUs.  This provides
arch/arm/mach-sunxi/headsmp.S +0 -1
index a10d494..8bcc5c9 100644
@@ -1,5 +1,4 @@
 #include <linux/linkage.h>
-#include <linux/init.h>
 
         .section ".text.head", "ax"
 
arch/arm/mach-tegra/flowctrl.c +0 -1
index ce8ab8a..43ae750 100644
@@ -18,7 +18,6 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/io.h>
 #include <linux/cpumask.h>
arch/arm/mach-tegra/headsmp.S +0 -1
index 2072e73..8239a04 100644
@@ -1,5 +1,4 @@
 #include <linux/linkage.h>
-#include <linux/init.h>
 
 #include "sleep.h"
 
arch/arm/mach-tegra/reset-handler.S +0 -1
index 8c1ba4f..9aa6cd3 100644
@@ -15,7 +15,6 @@
  */
 
 #include <linux/linkage.h>
-#include <linux/init.h>
 
 #include <asm/cache.h>
 #include <asm/asm-offsets.h>
arch/arm/mach-u300/dummyspichip.c +0 -1
index ec0283c..59043aa 100644
@@ -6,7 +6,6 @@
  * This is a dummy loopback SPI "chip" used for testing SPI.
  * Author: Linus Walleij <[email protected]>
  */
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/device.h>
arch/arm/mach-ux500/board-mop500-audio.c +0 -1
index 9309ad4..f5b4bdd 100644
@@ -5,7 +5,6 @@
  */
 
 #include <linux/platform_device.h>
-#include <linux/init.h>
 #include <linux/gpio.h>
 #include <linux/platform_data/dma-ste-dma40.h>
 
arch/arm/mach-ux500/headsmp.S +0 -1
index 9cdea04..9f2887e 100644
@@ -9,7 +9,6 @@
  * published by the Free Software Foundation.
  */
 #include <linux/linkage.h>
-#include <linux/init.h>
 
 /*
  * U8500 specific entry point for secondary CPUs.
arch/arm/mach-versatile/versatile_ab.c +0 -1
index 1caef10..b629bd8 100644
@@ -19,7 +19,6 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-#include <linux/init.h>
 #include <linux/device.h>
 #include <linux/amba/bus.h>
 #include <linux/io.h>
arch/arm/mach-zynq/headsmp.S +0 -1
index 57a3286..e9cf28b 100644
@@ -7,7 +7,6 @@
  * published by the Free Software Foundation.
  */
 #include <linux/linkage.h>
-#include <linux/init.h>
 
 ENTRY(zynq_secondary_trampoline)
 	ldr	r0, [pc]
arch/arm/mm/hugetlbpage.c +0 -1
index 54ee616..e5ce0e14 100644
@@ -19,7 +19,6 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  */
 
-#include <linux/init.h>
 #include <linux/fs.h>
 #include <linux/mm.h>
 #include <linux/hugetlb.h>
arch/arm/plat-iop/i2c.c +0 -1
index 88215ad..9886bbc 100644
@@ -11,7 +11,6 @@
  */
 
 #include <linux/mm.h>
-#include <linux/init.h>
 #include <linux/major.h>
 #include <linux/fs.h>
 #include <linux/platform_device.h>
arch/arm/plat-samsung/pm-check.c +0 -1
index 3cbd626..0ec4edb 100644
@@ -14,7 +14,6 @@
 
 #include <linux/kernel.h>
 #include <linux/suspend.h>
-#include <linux/init.h>
 #include <linux/crc32.h>
 #include <linux/ioport.h>
 #include <linux/slab.h>
arch/arm/plat-samsung/pm-gpio.c +0 -1
index dd4c15d0..4be6658 100644
@@ -15,7 +15,6 @@
 
 #include <linux/kernel.h>
 #include <linux/device.h>
-#include <linux/init.h>
 #include <linux/io.h>
 #include <linux/gpio.h>
 
arch/arm/plat-samsung/s5p-irq-pm.c +0 -1
index 5914980..009ee74 100644
@@ -12,7 +12,6 @@
  * published by the Free Software Foundation.
 */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/interrupt.h>
 
arch/arm/plat-versatile/headsmp.S +0 -1
index 40f27e5..7e04098 100644
@@ -9,7 +9,6 @@
  * published by the Free Software Foundation.
  */
 #include <linux/linkage.h>
-#include <linux/init.h>
 #include <asm/assembler.h>
 
 /*
arch/arm/plat-versatile/platsmp.c +0 -1
index 53feb90..934c512 100644
@@ -8,7 +8,6 @@
  * it under the terms of the GNU General Public License version 2 as
  * published by the Free Software Foundation.
  */
-#include <linux/init.h>
 #include <linux/errno.h>
 #include <linux/delay.h>
 #include <linux/device.h>
Signature · 1 line
1.8.4.1
#50 lore raw

PATCH 34/73 mips: delete non-required instances of include <linux/init.h>

In reply to Paul Gortmaker

None of these files are actually using any __init type directives and hence don't need to include <linux/init.h>. Most are just a left over from __devinit and __cpuinit removal, or simply due to code getting copied from one driver to the next.

---
 arch/mips/alchemy/common/power.c               | 1 -
 arch/mips/ath79/common.h                       | 1 -
 arch/mips/bcm47xx/nvram.c                      | 1 -
 arch/mips/bcm63xx/early_printk.c               | 1 -
 arch/mips/boot/compressed/dbg.c                | 1 -
 arch/mips/boot/compressed/uart-16550.c         | 1 -
 arch/mips/cavium-octeon/smp.c                  | 1 -
 arch/mips/fw/arc/file.c                        | 1 -
 arch/mips/include/asm/highmem.h                | 1 -
 arch/mips/include/asm/mach-ath79/ar71xx_regs.h | 1 -
 arch/mips/include/asm/mach-generic/floppy.h    | 1 -
 arch/mips/include/asm/mach-jazz/floppy.h       | 1 -
 arch/mips/jz4740/platform.c                    | 1 -
 arch/mips/kernel/bmips_vec.S                   | 1 -
 arch/mips/kernel/crash.c                       | 1 -
 arch/mips/kernel/spram.c                       | 1 -
 arch/mips/kernel/sync-r4k.c                    | 1 -
 arch/mips/kvm/kvm_tlb.c                        | 1 -
 arch/mips/lantiq/xway/clk.c                    | 1 -
 arch/mips/lasat/at93c.c                        | 1 -
 arch/mips/lasat/picvue.c                       | 1 -
 arch/mips/lib/uncached.c                       | 1 -
 arch/mips/loongson/lemote-2f/clock.c           | 1 -
 arch/mips/mm/c-octeon.c                        | 1 -
 arch/mips/mm/c-r3k.c                           | 1 -
 arch/mips/mm/cache.c                           | 1 -
 arch/mips/mm/cex-sb1.S                         | 1 -
 arch/mips/mm/hugetlbpage.c                     | 1 -
 arch/mips/mm/page.c                            | 1 -
 arch/mips/mm/sc-rm7k.c                         | 1 -
 arch/mips/mm/tlb-r3k.c                         | 1 -
 arch/mips/mm/tlb-r8k.c                         | 1 -
 arch/mips/mm/tlbex.c                           | 1 -
 arch/mips/mm/uasm-micromips.c                  | 1 -
 arch/mips/mm/uasm-mips.c                       | 1 -
 arch/mips/mti-malta/malta-amon.c               | 1 -
 arch/mips/mti-sead3/sead3-pic32-bus.c          | 1 -
 arch/mips/netlogic/common/reset.S              | 1 -
 arch/mips/netlogic/common/smpboot.S            | 1 -
 arch/mips/netlogic/xlp/wakeup.c                | 1 -
 arch/mips/netlogic/xlr/wakeup.c                | 1 -
 arch/mips/pci/fixup-rc32434.c                  | 1 -
 arch/mips/pci/fixup-sb1250.c                   | 1 -
 arch/mips/pci/ops-bcm63xx.c                    | 1 -
 arch/mips/pci/ops-bonito64.c                   | 1 -
 arch/mips/pci/ops-lantiq.c                     | 1 -
 arch/mips/pci/ops-loongson2.c                  | 1 -
 arch/mips/pci/ops-mace.c                       | 1 -
 arch/mips/pci/ops-msc.c                        | 1 -
 arch/mips/pci/ops-nile4.c                      | 1 -
 arch/mips/pci/ops-rc32434.c                    | 1 -
 arch/mips/pci/pci-ip27.c                       | 1 -
 arch/mips/sgi-ip27/ip27-console.c              | 1 -
 arch/mips/sgi-ip27/ip27-irq-pci.c              | 1 -
 arch/mips/sgi-ip27/ip27-klconfig.c             | 1 -
 arch/mips/sgi-ip27/ip27-xtalk.c                | 1 -
 56 files changed, 56 deletions(-)
arch/mips/alchemy/common/power.c +0 -1
index 0c7fce2..bdb28dee 100644
@@ -29,7 +29,6 @@
  *  675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <linux/init.h>
 #include <linux/pm.h>
 #include <linux/sysctl.h>
 #include <linux/jiffies.h>
arch/mips/ath79/common.h +0 -1
index 648d2da..a312071 100644
@@ -15,7 +15,6 @@
 #define __ATH79_COMMON_H
 
 #include <linux/types.h>
-#include <linux/init.h>
 
 #define ATH79_MEM_SIZE_MIN	(2 * 1024 * 1024)
 #define ATH79_MEM_SIZE_MAX	(128 * 1024 * 1024)
arch/mips/bcm47xx/nvram.c +0 -1
index 085a3ee..6decb27 100644
@@ -11,7 +11,6 @@
  * option) any later version.
  */
 
-#include <linux/init.h>
 #include <linux/types.h>
 #include <linux/module.h>
 #include <linux/ssb/ssb.h>
arch/mips/bcm63xx/early_printk.c +0 -1
index f92f1a2..6092226 100644
@@ -6,7 +6,6 @@
  * Copyright (C) 2008 Maxime Bizon <[email protected]>
  */
 
-#include <linux/init.h>
 #include <bcm63xx_io.h>
 #include <linux/serial_bcm63xx.h>
 
arch/mips/boot/compressed/dbg.c +0 -1
index 134a616..06c6a5b 100644
@@ -6,7 +6,6 @@
  * need to implement your own putc().
  */
 #include <linux/compiler.h>
-#include <linux/init.h>
 #include <linux/types.h>
 
 void __weak putc(char c)
arch/mips/boot/compressed/uart-16550.c +0 -1
index 869172d..237494b 100644
@@ -4,7 +4,6 @@
 
 #include <linux/types.h>
 #include <linux/serial_reg.h>
-#include <linux/init.h>
 
 #include <asm/addrspace.h>
 
arch/mips/cavium-octeon/smp.c +0 -1
index 24a2167..67a078f 100644
@@ -6,7 +6,6 @@
  * Copyright (C) 2004-2008, 2009, 2010 Cavium Networks
  */
 #include <linux/cpu.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/smp.h>
 #include <linux/interrupt.h>
arch/mips/fw/arc/file.c +0 -1
index a8b0803..49fd3ff 100644
@@ -8,7 +8,6 @@
  * Copyright (C) 1994, 1995, 1996, 1999 Ralf Baechle
  * Copyright (C) 1999 Silicon Graphics, Inc.
  */
-#include <linux/init.h>
 
 #include <asm/fw/arc/types.h>
 #include <asm/sgialib.h>
arch/mips/include/asm/highmem.h +0 -1
index b0dd0c8..572e63e 100644
@@ -19,7 +19,6 @@
 
 #ifdef __KERNEL__
 
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/uaccess.h>
 #include <asm/kmap_types.h>
arch/mips/include/asm/mach-ath79/ar71xx_regs.h +0 -1
index b86a125..cd41e93 100644
@@ -16,7 +16,6 @@
 #define __ASM_MACH_AR71XX_REGS_H
 
 #include <linux/types.h>
-#include <linux/init.h>
 #include <linux/io.h>
 #include <linux/bitops.h>
 
arch/mips/include/asm/mach-generic/floppy.h +0 -1
index 5b5cd68..e2561d9 100644
@@ -9,7 +9,6 @@
 #define __ASM_MACH_GENERIC_FLOPPY_H
 
 #include <linux/delay.h>
-#include <linux/init.h>
 #include <linux/ioport.h>
 #include <linux/sched.h>
 #include <linux/linkage.h>
arch/mips/include/asm/mach-jazz/floppy.h +0 -1
index 62aa1e2..4b86c88 100644
@@ -9,7 +9,6 @@
 #define __ASM_MACH_JAZZ_FLOPPY_H
 
 #include <linux/delay.h>
-#include <linux/init.h>
 #include <linux/linkage.h>
 #include <linux/types.h>
 #include <linux/mm.h>
arch/mips/jz4740/platform.c +0 -1
index 1be41e2..a447101 100644
@@ -14,7 +14,6 @@
  */
 
 #include <linux/device.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/platform_device.h>
 #include <linux/resource.h>
arch/mips/kernel/bmips_vec.S +0 -1
index 122aa7f..a5bf73d 100644
@@ -8,7 +8,6 @@
  * Reset/NMI/re-entry vectors for BMIPS processors
  */
 
-#include <linux/init.h>
 
 #include <asm/asm.h>
 #include <asm/asmmacro.h>
arch/mips/kernel/crash.c +0 -1
index 93aa302..d212646 100644
@@ -5,7 +5,6 @@
 #include <linux/bootmem.h>
 #include <linux/crash_dump.h>
 #include <linux/delay.h>
-#include <linux/init.h>
 #include <linux/irq.h>
 #include <linux/types.h>
 #include <linux/sched.h>
arch/mips/kernel/spram.c +0 -1
index dfed8a4..b242e2c 100644
@@ -8,7 +8,6 @@
  *
  * Copyright (C) 2007, 2008 MIPS Technologies, Inc.
  */
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/ptrace.h>
 #include <linux/stddef.h>
arch/mips/kernel/sync-r4k.c +0 -1
index 84536bf..c24ad5f 100644
@@ -11,7 +11,6 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/irqflags.h>
 #include <linux/cpumask.h>
 
arch/mips/kvm/kvm_tlb.c +0 -1
index c777dd3..26db6ba 100644
@@ -10,7 +10,6 @@
 * Authors: Sanjay Lal <[email protected]>
 */
 
-#include <linux/init.h>
 #include <linux/sched.h>
 #include <linux/smp.h>
 #include <linux/mm.h>
arch/mips/lantiq/xway/clk.c +0 -1
index 1ab576d..8750dc0 100644
@@ -8,7 +8,6 @@
 
 #include <linux/io.h>
 #include <linux/export.h>
-#include <linux/init.h>
 #include <linux/clk.h>
 
 #include <asm/time.h>
arch/mips/lasat/at93c.c +0 -1
index 793e234..942f32b 100644
@@ -8,7 +8,6 @@
 #include <linux/delay.h>
 #include <asm/lasat/lasat.h>
 #include <linux/module.h>
-#include <linux/init.h>
 
 #include "at93c.h"
 
arch/mips/lasat/picvue.c +0 -1
index 7eb3348..d613b97 100644
@@ -9,7 +9,6 @@
 #include <asm/bootinfo.h>
 #include <asm/lasat/lasat.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/errno.h>
 #include <linux/string.h>
 
arch/mips/lib/uncached.c +0 -1
index d8522f8..09d5dee 100644
@@ -8,7 +8,6 @@
  *	Author: Maciej W. Rozycki <[email protected]>
  */
 
-#include <linux/init.h>
 
 #include <asm/addrspace.h>
 #include <asm/bug.h>
arch/mips/loongson/lemote-2f/clock.c +0 -1
index 4dc2f5f..aed32b8 100644
@@ -10,7 +10,6 @@
 #include <linux/cpufreq.h>
 #include <linux/errno.h>
 #include <linux/export.h>
-#include <linux/init.h>
 #include <linux/list.h>
 #include <linux/mutex.h>
 #include <linux/spinlock.h>
arch/mips/mm/c-octeon.c +0 -1
index c8efdb5..f41a5c5 100644
@@ -6,7 +6,6 @@
  * Copyright (C) 2005-2007 Cavium Networks
  */
 #include <linux/export.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/sched.h>
 #include <linux/smp.h>
arch/mips/mm/c-r3k.c +0 -1
index 2fcde0c..135ec31 100644
@@ -9,7 +9,6 @@
  * Copyright (C) 1998 Gleb Raiko & Vladimir Roganov
  * Copyright (C) 2001, 2004, 2007  Maciej W. Rozycki
  */
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/sched.h>
 #include <linux/smp.h>
arch/mips/mm/cache.c +0 -1
index 15f813c..fde7e56 100644
@@ -8,7 +8,6 @@
  */
 #include <linux/fs.h>
 #include <linux/fcntl.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/linkage.h>
 #include <linux/module.h>
arch/mips/mm/cex-sb1.S +0 -1
index 191cf6e..5d5f296 100644
@@ -15,7 +15,6 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  */
-#include <linux/init.h>
 
 #include <asm/asm.h>
 #include <asm/regdef.h>
arch/mips/mm/hugetlbpage.c +0 -1
index 01fda44..77e0ae0 100644
@@ -11,7 +11,6 @@
  * Copyright (C) 2008, 2009 Cavium Networks, Inc.
  */
 
-#include <linux/init.h>
 #include <linux/fs.h>
 #include <linux/mm.h>
 #include <linux/hugetlb.h>
arch/mips/mm/page.c +0 -1
index cbd81d1..58033c4 100644
@@ -8,7 +8,6 @@
  * Copyright (C) 2008  Thiemo Seufer
  * Copyright (C) 2012  MIPS Technologies, Inc.
  */
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/sched.h>
 #include <linux/smp.h>
arch/mips/mm/sc-rm7k.c +0 -1
index aaffbba..9ac1efc 100644
@@ -6,7 +6,6 @@
 
 #undef DEBUG
 
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/mm.h>
 #include <linux/bitops.h>
arch/mips/mm/tlb-r3k.c +0 -1
index 9aca109..d657493 100644
@@ -10,7 +10,6 @@
  * Copyright (C) 2002  Ralf Baechle
  * Copyright (C) 2002  Maciej W. Rozycki
  */
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/sched.h>
 #include <linux/smp.h>
arch/mips/mm/tlb-r8k.c +0 -1
index 6a99733..138a2ec 100644
@@ -8,7 +8,6 @@
  * Carsten Langgaard, [email protected]
  * Copyright (C) 2002 MIPS Technologies, Inc.  All rights reserved.
  */
-#include <linux/init.h>
 #include <linux/sched.h>
 #include <linux/smp.h>
 #include <linux/mm.h>
arch/mips/mm/tlbex.c +0 -1
index 6fdfe1f..b234b1b 100644
@@ -26,7 +26,6 @@
 #include <linux/types.h>
 #include <linux/smp.h>
 #include <linux/string.h>
-#include <linux/init.h>
 #include <linux/cache.h>
 
 #include <asm/cacheflush.h>
arch/mips/mm/uasm-micromips.c +0 -1
index 060000f..b8d580c 100644
@@ -15,7 +15,6 @@
 
 #include <linux/kernel.h>
 #include <linux/types.h>
-#include <linux/init.h>
 
 #include <asm/inst.h>
 #include <asm/elf.h>
arch/mips/mm/uasm-mips.c +0 -1
index 0c72458..3abd609 100644
@@ -15,7 +15,6 @@
 
 #include <linux/kernel.h>
 #include <linux/types.h>
-#include <linux/init.h>
 
 #include <asm/inst.h>
 #include <asm/elf.h>
arch/mips/mti-malta/malta-amon.c +0 -1
index 0319ad8..592ac04 100644
@@ -9,7 +9,6 @@
  * Arbitrary Monitor Interface
  */
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/smp.h>
 
 #include <asm/addrspace.h>
arch/mips/mti-sead3/sead3-pic32-bus.c +0 -1
index eb2bf93..3b12aa5 100644
@@ -8,7 +8,6 @@
 #include <linux/delay.h>
 #include <linux/kernel.h>
 #include <linux/spinlock.h>
-#include <linux/init.h>
 #include <linux/io.h>
 #include <linux/errno.h>
 
arch/mips/netlogic/common/reset.S +0 -1
index dfbf94d..b231fe1 100644
@@ -32,7 +32,6 @@
  * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include <linux/init.h>
 
 #include <asm/asm.h>
 #include <asm/asm-offsets.h>
arch/mips/netlogic/common/smpboot.S +0 -1
index db3b894..8597657 100644
@@ -32,7 +32,6 @@
  * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include <linux/init.h>
 
 #include <asm/asm.h>
 #include <asm/asm-offsets.h>
arch/mips/netlogic/xlp/wakeup.c +0 -1
index 4eb7cdb..9a92617 100644
@@ -32,7 +32,6 @@
  * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/threads.h>
 
arch/mips/netlogic/xlr/wakeup.c +0 -1
index ec60e71..d61cba1 100644
@@ -32,7 +32,6 @@
  * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/threads.h>
 
arch/mips/pci/fixup-rc32434.c +0 -1
index d0f6ecb..7fcafd5 100644
@@ -27,7 +27,6 @@
 #include <linux/types.h>
 #include <linux/pci.h>
 #include <linux/kernel.h>
-#include <linux/init.h>
 
 #include <asm/mach-rc32434/rc32434.h>
 #include <asm/mach-rc32434/irq.h>
arch/mips/pci/fixup-sb1250.c +0 -1
index 1441bec..8feae91 100644
@@ -8,7 +8,6 @@
  *	2 of the License, or (at your option) any later version.
  */
 
-#include <linux/init.h>
 #include <linux/pci.h>
 
 /*
arch/mips/pci/ops-bcm63xx.c +0 -1
index 6144bb3..13eea69 100644
@@ -9,7 +9,6 @@
 #include <linux/types.h>
 #include <linux/pci.h>
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/io.h>
 
arch/mips/pci/ops-bonito64.c +0 -1
index 830352e..c06205a 100644
@@ -22,7 +22,6 @@
 #include <linux/types.h>
 #include <linux/pci.h>
 #include <linux/kernel.h>
-#include <linux/init.h>
 
 #include <asm/mips-boards/bonito64.h>
 
arch/mips/pci/ops-lantiq.c +0 -1
index 16e7c25..e5738ee 100644
@@ -9,7 +9,6 @@
 #include <linux/types.h>
 #include <linux/pci.h>
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/mm.h>
 #include <asm/addrspace.h>
arch/mips/pci/ops-loongson2.c +0 -1
index 98254af..24138bb 100644
@@ -14,7 +14,6 @@
 #include <linux/types.h>
 #include <linux/pci.h>
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/export.h>
 
 #include <loongson.h>
arch/mips/pci/ops-mace.c +0 -1
index 1cfb558..6b5821f 100644
@@ -6,7 +6,6 @@
  * Copyright (C) 2000, 2001 Keith M Wesolowski
  */
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/pci.h>
 #include <linux/types.h>
 #include <asm/pci.h>
arch/mips/pci/ops-msc.c +0 -1
index 92a8543..dbbf365 100644
@@ -24,7 +24,6 @@
 #include <linux/types.h>
 #include <linux/pci.h>
 #include <linux/kernel.h>
-#include <linux/init.h>
 
 #include <asm/mips-boards/msc01_pci.h>
 
arch/mips/pci/ops-nile4.c +0 -1
index 499e35c..a1a7c9f 100644
@@ -1,5 +1,4 @@
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/pci.h>
 #include <asm/bootinfo.h>
 
arch/mips/pci/ops-rc32434.c +0 -1
index 7c7182e..874ed6d 100644
@@ -26,7 +26,6 @@
  *  675 Mass Ave, Cambridge, MA 02139, USA.
  */
 #include <linux/delay.h>
-#include <linux/init.h>
 #include <linux/io.h>
 #include <linux/pci.h>
 #include <linux/types.h>
arch/mips/pci/pci-ip27.c +0 -1
index 162b4cb..0f09eaf 100644
@@ -7,7 +7,6 @@
  * Copyright (C) 1999, 2000, 04 Ralf Baechle ([email protected])
  * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
  */
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/export.h>
 #include <linux/pci.h>
arch/mips/sgi-ip27/ip27-console.c +0 -1
index b952d5b..45fdfbc 100644
@@ -5,7 +5,6 @@
  *
  * Copyright (C) 2001, 2002 Ralf Baechle
  */
-#include <linux/init.h>
 
 #include <asm/page.h>
 #include <asm/sn/addrs.h>
arch/mips/sgi-ip27/ip27-irq-pci.c +0 -1
index ec22ec5..2a1c407 100644
@@ -8,7 +8,6 @@
 
 #undef DEBUG
 
-#include <linux/init.h>
 #include <linux/irq.h>
 #include <linux/errno.h>
 #include <linux/signal.h>
arch/mips/sgi-ip27/ip27-klconfig.c +0 -1
index 7afe146..c873d62 100644
@@ -2,7 +2,6 @@
  * Copyright (C) 1999, 2000 Ralf Baechle ([email protected])
  * Copyright (C) 1999, 2000 Silicon Graphics, Inc.
  */
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/sched.h>
 #include <linux/interrupt.h>
arch/mips/sgi-ip27/ip27-xtalk.c +0 -1
index d59b820..20f582a 100644
@@ -7,7 +7,6 @@
  * Generic XTALK initialization code
  */
 
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/smp.h>
 #include <asm/sn/types.h>
Signature · 1 line
1.8.4.1
#51 lore raw

PATCH 35/73 sparc: delete non-required instances of include <linux/init.h>

In reply to Paul Gortmaker

None of these files are actually using any __init type directives and hence don't need to include <linux/init.h>. Most are just a left over from __devinit and __cpuinit removal, or simply due to code getting copied from one driver to the next.

---
 arch/sparc/kernel/cpumap.c           | 1 -
 arch/sparc/kernel/ebus.c             | 1 -
 arch/sparc/kernel/hvtramp.S          | 1 -
 arch/sparc/kernel/of_device_common.c | 1 -
 arch/sparc/kernel/pci_common.c       | 1 -
 arch/sparc/kernel/process_32.c       | 1 -
 arch/sparc/kernel/sparc_ksyms_32.c   | 1 -
 arch/sparc/kernel/sparc_ksyms_64.c   | 1 -
 arch/sparc/kernel/trampoline_32.S    | 1 -
 arch/sparc/kernel/trampoline_64.S    | 1 -
 arch/sparc/mm/hugetlbpage.c          | 1 -
 arch/sparc/mm/tlb.c                  | 1 -
 arch/sparc/prom/p1275.c              | 1 -
 drivers/sbus/char/bbc_i2c.c          | 1 -
 drivers/sbus/char/display7seg.c      | 1 -
 drivers/sbus/char/envctrl.c          | 1 -
 drivers/sbus/char/flash.c            | 1 -
 drivers/sbus/char/uctrl.c            | 1 -
 18 files changed, 18 deletions(-)
arch/sparc/kernel/cpumap.c +0 -1
index cb5d272..de1c844 100644
@@ -6,7 +6,6 @@
 #include <linux/export.h>
 #include <linux/slab.h>
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/cpumask.h>
 #include <linux/spinlock.h>
 #include <asm/cpudata.h>
arch/sparc/kernel/ebus.c +0 -1
index e306fb08..acf8314 100644
@@ -7,7 +7,6 @@
 #include <linux/export.h>
 #include <linux/kernel.h>
 #include <linux/types.h>
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/delay.h>
 
arch/sparc/kernel/hvtramp.S +0 -1
index 4eb1a5a..b7ddcdd 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2007, 2008 David S. Miller <[email protected]>
  */
 
-#include <linux/init.h>
 
 #include <asm/thread_info.h>
 #include <asm/hypervisor.h>
arch/sparc/kernel/of_device_common.c +0 -1
index de199bf..3241f56 100644
@@ -1,7 +1,6 @@
 #include <linux/string.h>
 #include <linux/kernel.h>
 #include <linux/of.h>
-#include <linux/init.h>
 #include <linux/export.h>
 #include <linux/mod_devicetable.h>
 #include <linux/errno.h>
arch/sparc/kernel/pci_common.c +0 -1
index a689598..944a065 100644
@@ -5,7 +5,6 @@
 
 #include <linux/string.h>
 #include <linux/slab.h>
-#include <linux/init.h>
 #include <linux/pci.h>
 #include <linux/device.h>
 #include <linux/of_device.h>
arch/sparc/kernel/process_32.c +0 -1
index fdd819d..510baec 100644
@@ -22,7 +22,6 @@
 #include <linux/reboot.h>
 #include <linux/delay.h>
 #include <linux/pm.h>
-#include <linux/init.h>
 #include <linux/slab.h>
 
 #include <asm/auxio.h>
arch/sparc/kernel/sparc_ksyms_32.c +0 -1
index e521c54..bf4ccb1 100644
@@ -6,7 +6,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 
 #include <asm/pgtable.h>
 #include <asm/uaccess.h>
arch/sparc/kernel/sparc_ksyms_64.c +0 -1
index 9f5e24d..a92d5d2 100644
@@ -7,7 +7,6 @@
 
 #include <linux/export.h>
 #include <linux/pci.h>
-#include <linux/init.h>
 #include <linux/bitops.h>
 
 #include <asm/cpudata.h>
arch/sparc/kernel/trampoline_32.S +0 -1
index 76dcbd3..3eed99f 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 1998 Jakub Jelinek ([email protected])
  */
 
-#include <linux/init.h>
 #include <asm/head.h>
 #include <asm/psr.h>
 #include <asm/page.h>
arch/sparc/kernel/trampoline_64.S +0 -1
index ad4bde3..737f8cb 100644
@@ -4,7 +4,6 @@
  * Copyright (C) 1997 David S. Miller ([email protected])
  */
 
-#include <linux/init.h>
 
 #include <asm/head.h>
 #include <asm/asi.h>
arch/sparc/mm/hugetlbpage.c +0 -1
index 3096317..9bd9ce8 100644
@@ -4,7 +4,6 @@
  * Copyright (C) 2002, 2003, 2006 David S. Miller ([email protected])
  */
 
-#include <linux/init.h>
 #include <linux/fs.h>
 #include <linux/mm.h>
 #include <linux/hugetlb.h>
arch/sparc/mm/tlb.c +0 -1
index ad3bf4b..b12cb5e 100644
@@ -4,7 +4,6 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/percpu.h>
 #include <linux/mm.h>
 #include <linux/swap.h>
arch/sparc/prom/p1275.c +0 -1
index 04a4540..e58b817 100644
@@ -5,7 +5,6 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/sched.h>
 #include <linux/smp.h>
 #include <linux/string.h>
drivers/sbus/char/bbc_i2c.c +0 -1
index c1441ed..c7763e4 100644
@@ -11,7 +11,6 @@
 #include <linux/sched.h>
 #include <linux/wait.h>
 #include <linux/delay.h>
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/of.h>
 #include <linux/of_device.h>
drivers/sbus/char/display7seg.c +0 -1
index fc1339c..7c71e7b 100644
@@ -9,7 +9,6 @@
 #include <linux/fs.h>
 #include <linux/errno.h>
 #include <linux/major.h>
-#include <linux/init.h>
 #include <linux/miscdevice.h>
 #include <linux/ioport.h>		/* request_region */
 #include <linux/slab.h>
drivers/sbus/char/envctrl.c +0 -1
index ddbe5a9..af15a2f 100644
@@ -19,7 +19,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/kthread.h>
 #include <linux/delay.h>
 #include <linux/ioport.h>
drivers/sbus/char/flash.c +0 -1
index d9f268f..25c738e 100644
@@ -9,7 +9,6 @@
 #include <linux/miscdevice.h>
 #include <linux/fcntl.h>
 #include <linux/poll.h>
-#include <linux/init.h>
 #include <linux/mutex.h>
 #include <linux/spinlock.h>
 #include <linux/mm.h>
drivers/sbus/char/uctrl.c +0 -1
index b0aae05..b7acafc 100644
@@ -11,7 +11,6 @@
 #include <linux/slab.h>
 #include <linux/mutex.h>
 #include <linux/ioport.h>
-#include <linux/init.h>
 #include <linux/miscdevice.h>
 #include <linux/mm.h>
 #include <linux/of.h>
Signature · 1 line
1.8.4.1
maintainer Acked-by on v1 35/73
#52 lore raw

Re: [PATCH 35/73] sparc: delete non-required instances of include <linux/init.h>

From: Paul Gortmaker <[email protected]>
Date: Tue, 21 Jan 2014 16:22:38 -0500

Quoted 8 lines

None of these files are actually using any __init type directives and hence don't need to include <linux/init.h>. Most are just a left over from __devinit and __cpuinit removal, or simply due to code getting copied from one driver to the next.

#53 lore raw

PATCH 36/73 s390: delete non-required instances of include <linux/init.h>

In reply to Paul Gortmaker

None of these files are actually using any __init type directives and hence don't need to include <linux/init.h>. Most are just a left over from __devinit and __cpuinit removal, or simply due to code getting copied from one driver to the next.

Cc Martin Schwidefsky <[email protected]>
Cc Heiko Carstens <[email protected]>
Cc Ursula Braun <[email protected]>
Cc Frank Blaschka <[email protected]>
Cc Steffen Maier <[email protected]>
---
 drivers/s390/block/dasd_erp.c    | 1 -
 drivers/s390/char/tape_34xx.c    | 1 -
 drivers/s390/char/tape_3590.c    | 1 -
 drivers/s390/char/tape_class.h   | 1 -
 drivers/s390/char/tape_core.c    | 1 -
 drivers/s390/cio/airq.c          | 1 -
 drivers/s390/cio/device_ops.c    | 1 -
 drivers/s390/cio/device_status.c | 1 -
 drivers/s390/net/ctcm_dbug.c     | 1 -
 drivers/s390/net/ctcm_fsms.c     | 1 -
 drivers/s390/net/ctcm_fsms.h     | 1 -
 drivers/s390/net/ctcm_mpc.c      | 1 -
 drivers/s390/scsi/zfcp_def.h     | 1 -
 13 files changed, 13 deletions(-)
drivers/s390/block/dasd_erp.c +0 -1
index e1e8848..0b9f823 100644
@@ -11,7 +11,6 @@
 #define KMSG_COMPONENT "dasd"
 
 #include <linux/ctype.h>
-#include <linux/init.h>
 
 #include <asm/debug.h>
 #include <asm/ebcdic.h>
drivers/s390/char/tape_34xx.c +0 -1
index 9aa7970..2e3eb6a 100644
@@ -11,7 +11,6 @@
 #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/bio.h>
 #include <linux/workqueue.h>
 #include <linux/slab.h>
drivers/s390/char/tape_3590.c +0 -1
index 327cb19..e979c76 100644
@@ -12,7 +12,6 @@
 
 #include <linux/module.h>
 #include <linux/slab.h>
-#include <linux/init.h>
 #include <linux/bio.h>
 #include <asm/ebcdic.h>
 
drivers/s390/char/tape_class.h +0 -1
index a332c10..444ffdf 100644
@@ -9,7 +9,6 @@
 #ifndef __TAPE_CLASS_H__
 #define __TAPE_CLASS_H__
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/fs.h>
 #include <linux/major.h>
drivers/s390/char/tape_core.c +0 -1
index f3b5123..6edf6ae 100644
@@ -14,7 +14,6 @@
 #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
 
 #include <linux/module.h>
-#include <linux/init.h>	     // for kernel parameters
 #include <linux/kmod.h>	     // for requesting modules
 #include <linux/spinlock.h>  // for locks
 #include <linux/vmalloc.h>
drivers/s390/cio/airq.c +0 -1
index f055df0..897209a 100644
@@ -8,7 +8,6 @@
  *		 Peter Oberparleiter <[email protected]>
  */
 
-#include <linux/init.h>
 #include <linux/irq.h>
 #include <linux/kernel_stat.h>
 #include <linux/module.h>
drivers/s390/cio/device_ops.c +0 -1
index 4845d64..09de935 100644
@@ -5,7 +5,6 @@
  *	      Cornelia Huck ([email protected])
  */
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/errno.h>
 #include <linux/slab.h>
 #include <linux/list.h>
drivers/s390/cio/device_status.c +0 -1
index 15b56a1..323fa37 100644
@@ -7,7 +7,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 
 #include <asm/ccwdev.h>
 #include <asm/cio.h>
drivers/s390/net/ctcm_dbug.c +0 -1
index 8363f1c9..7fc399a 100644
@@ -11,7 +11,6 @@
 #include <linux/ctype.h>
 #include <linux/sysctl.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/fs.h>
 #include <linux/debugfs.h>
 #include "ctcm_dbug.h"
drivers/s390/net/ctcm_fsms.c +0 -1
index fb92524..0d64046 100644
@@ -15,7 +15,6 @@
 #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/slab.h>
 #include <linux/errno.h>
drivers/s390/net/ctcm_fsms.h +0 -1
index c963d04..0ae2e8c 100644
@@ -10,7 +10,6 @@
 #define _CTCM_FSMS_H_
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/slab.h>
 #include <linux/errno.h>
drivers/s390/net/ctcm_mpc.c +0 -1
index 2dbc77b..f39bd3c 100644
@@ -21,7 +21,6 @@
 #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/slab.h>
 #include <linux/errno.h>
drivers/s390/scsi/zfcp_def.h +0 -1
index d91173f..553eba9 100644
@@ -11,7 +11,6 @@
 
 /*************************** INCLUDES *****************************************/
 
-#include <linux/init.h>
 #include <linux/moduleparam.h>
 #include <linux/major.h>
 #include <linux/blkdev.h>
Signature · 1 line
1.8.4.1
#54 lore raw

PATCH 37/73 alpha: delete non-required instances of <linux/init.h>

In reply to Paul Gortmaker

None of these files are actually using any __init type directives and hence don't need to include <linux/init.h>. Most are just a left over from __devinit and __cpuinit removal, or simply due to code getting copied from one driver to the next.

Cc Richard Henderson <[email protected]>
Cc Ivan Kokshaysky <[email protected]>
Cc Matt Turner <[email protected]>
---
 arch/alpha/kernel/err_ev6.c         | 1 -
 arch/alpha/kernel/irq.c             | 1 -
 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 -
 7 files changed, 7 deletions(-)
arch/alpha/kernel/err_ev6.c +0 -1
index 253cf1a..51267ac 100644
@@ -6,7 +6,6 @@
  *	Error handling code supporting Alpha systems
  */
 
-#include <linux/init.h>
 #include <linux/sched.h>
 
 #include <asm/io.h>
arch/alpha/kernel/irq.c +0 -1
index 7b2be25..51f2c86 100644
@@ -19,7 +19,6 @@
 #include <linux/ptrace.h>
 #include <linux/interrupt.h>
 #include <linux/random.h>
-#include <linux/init.h>
 #include <linux/irq.h>
 #include <linux/proc_fs.h>
 #include <linux/seq_file.h>
arch/alpha/kernel/traps.c +0 -1
index 9c4c189..74aceea 100644
@@ -14,7 +14,6 @@
 #include <linux/tty.h>
 #include <linux/delay.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/kallsyms.h>
 #include <linux/ratelimit.h>
 
arch/alpha/oprofile/op_model_ev4.c +0 -1
index 18aa9b4..086a0d5 100644
@@ -8,7 +8,6 @@
  */
 
 #include <linux/oprofile.h>
-#include <linux/init.h>
 #include <linux/smp.h>
 #include <asm/ptrace.h>
 
arch/alpha/oprofile/op_model_ev5.c +0 -1
index c32f8a0..c300f5e 100644
@@ -8,7 +8,6 @@
  */
 
 #include <linux/oprofile.h>
-#include <linux/init.h>
 #include <linux/smp.h>
 #include <asm/ptrace.h>
 
arch/alpha/oprofile/op_model_ev6.c +0 -1
index 1c84cc2..02edf59 100644
@@ -8,7 +8,6 @@
  */
 
 #include <linux/oprofile.h>
-#include <linux/init.h>
 #include <linux/smp.h>
 #include <asm/ptrace.h>
 
arch/alpha/oprofile/op_model_ev67.c +0 -1
index 34a57a1..adb1744 100644
@@ -9,7 +9,6 @@
  */
 
 #include <linux/oprofile.h>
-#include <linux/init.h>
 #include <linux/smp.h>
 #include <asm/ptrace.h>
 
Signature · 1 line
1.8.4.1
Acked-by on v1 37/73
#55 lore raw

Re: [PATCH 37/73] alpha: delete non-required instances of <linux/init.h>

Quoted 4 lines · Paul Gortmaker

None of these files are actually using any __init type directives and hence don't need to include <linux/init.h>. Most are just a left over from __devinit and __cpuinit removal, or simply due to code getting copied from one driver to the next.

r~

#56 lore raw

PATCH 38/73 blackfin: delete non-required instances of <linux/init.h>

In reply to Paul Gortmaker

None of these files are actually using any __init type directives and hence don't need to include <linux/init.h>. Most are just a left over from __devinit and __cpuinit removal, or simply due to code getting copied from one driver to the next.

---
 arch/blackfin/mach-common/cache-c.c     | 1 -
 arch/blackfin/mach-common/clocks-init.c | 1 -
 arch/blackfin/mach-common/scb-init.c    | 1 -
 3 files changed, 3 deletions(-)
arch/blackfin/mach-common/cache-c.c +0 -1
index 0e1e451..1a5a288 100644
@@ -6,7 +6,6 @@
  * Licensed under the GPL-2 or later.
  */
 
-#include <linux/init.h>
 #include <asm/blackfin.h>
 #include <asm/cplbinit.h>
 
arch/blackfin/mach-common/clocks-init.c +0 -1
index 2308ce5..d436bd9 100644
@@ -7,7 +7,6 @@
  */
 
 #include <linux/linkage.h>
-#include <linux/init.h>
 #include <asm/blackfin.h>
 
 #include <asm/dma.h>
arch/blackfin/mach-common/scb-init.c +0 -1
index 2cbfb0b..8923398 100644
@@ -6,7 +6,6 @@
  * Licensed under the GPL-2 or later.
  */
 
-#include <linux/init.h>
 #include <linux/errno.h>
 #include <linux/kernel.h>
 #include <asm/scb.h>
Signature · 1 line
1.8.4.1
#57 lore raw

PATCH 39/73 powerpc: delete another unrequired instance of <linux/init.h>

In reply to Paul Gortmaker

Most were already deleted in the 1st pass audit; this instance showed up more recently.

Cc Benjamin Herrenschmidt <[email protected]>
Cc Paul Mackerras <[email protected]>
---
 arch/powerpc/sysdev/indirect_pci.c | 1 -
 1 file changed, 1 deletion(-)
arch/powerpc/sysdev/indirect_pci.c +0 -1
index 1f6c570..66f5fd1 100644
@@ -13,7 +13,6 @@
 #include <linux/pci.h>
 #include <linux/delay.h>
 #include <linux/string.h>
-#include <linux/init.h>
 
 #include <asm/io.h>
 #include <asm/prom.h>
Signature · 1 line
1.8.4.1
#58 lore raw

PATCH 40/73 watchdog: delete non-required instances of include <linux/init.h>

In reply to Paul Gortmaker

None of these files are actually using any __init type directives and hence don't need to include <linux/init.h>. Most are just a left over from __devinit and __cpuinit removal, or simply due to code getting copied from one driver to the next.

---
 drivers/watchdog/ar7_wdt.c          | 1 -
 drivers/watchdog/ath79_wdt.c        | 1 -
 drivers/watchdog/bcm47xx_wdt.c      | 1 -
 drivers/watchdog/bcm63xx_wdt.c      | 1 -
 drivers/watchdog/cpu5wdt.c          | 1 -
 drivers/watchdog/cpwd.c             | 1 -
 drivers/watchdog/davinci_wdt.c      | 1 -
 drivers/watchdog/hpwdt.c            | 1 -
 drivers/watchdog/i6300esb.c         | 1 -
 drivers/watchdog/jz4740_wdt.c       | 1 -
 drivers/watchdog/max63xx_wdt.c      | 1 -
 drivers/watchdog/mtx-1_wdt.c        | 1 -
 drivers/watchdog/nuc900_wdt.c       | 1 -
 drivers/watchdog/of_xilinx_wdt.c    | 1 -
 drivers/watchdog/omap_wdt.c         | 1 -
 drivers/watchdog/orion_wdt.c        | 1 -
 drivers/watchdog/pnx4008_wdt.c      | 1 -
 drivers/watchdog/rdc321x_wdt.c      | 1 -
 drivers/watchdog/retu_wdt.c         | 1 -
 drivers/watchdog/riowd.c            | 1 -
 drivers/watchdog/s3c2410_wdt.c      | 1 -
 drivers/watchdog/sp805_wdt.c        | 1 -
 drivers/watchdog/stmp3xxx_rtc_wdt.c | 1 -
 drivers/watchdog/wdt_pci.c          | 1 -
 24 files changed, 24 deletions(-)
drivers/watchdog/ar7_wdt.c +0 -1
index 3a99657..ae6c287 100644
@@ -28,7 +28,6 @@
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/miscdevice.h>
 #include <linux/platform_device.h>
 #include <linux/watchdog.h>
drivers/watchdog/ath79_wdt.c +0 -1
index 9fa1f69..399c3fd 100644
@@ -22,7 +22,6 @@
 #include <linux/bitops.h>
 #include <linux/errno.h>
 #include <linux/fs.h>
-#include <linux/init.h>
 #include <linux/io.h>
 #include <linux/kernel.h>
 #include <linux/miscdevice.h>
drivers/watchdog/bcm47xx_wdt.c +0 -1
index b4021a2..b61fcc5 100644
@@ -16,7 +16,6 @@
 #include <linux/bcm47xx_wdt.h>
 #include <linux/bitops.h>
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
drivers/watchdog/bcm63xx_wdt.c +0 -1
index 4eb188b..3fb18bb 100644
@@ -15,7 +15,6 @@
 #include <linux/bitops.h>
 #include <linux/errno.h>
 #include <linux/fs.h>
-#include <linux/init.h>
 #include <linux/io.h>
 #include <linux/kernel.h>
 #include <linux/miscdevice.h>
drivers/watchdog/cpu5wdt.c +0 -1
index f7ae49e..6d03e8e 100644
@@ -27,7 +27,6 @@
 #include <linux/errno.h>
 #include <linux/miscdevice.h>
 #include <linux/fs.h>
-#include <linux/init.h>
 #include <linux/ioport.h>
 #include <linux/timer.h>
 #include <linux/completion.h>
drivers/watchdog/cpwd.c +0 -1
index 213225e..e55ed70 100644
@@ -21,7 +21,6 @@
 #include <linux/fs.h>
 #include <linux/errno.h>
 #include <linux/major.h>
-#include <linux/init.h>
 #include <linux/miscdevice.h>
 #include <linux/interrupt.h>
 #include <linux/ioport.h>
drivers/watchdog/davinci_wdt.c +0 -1
index b1bae03..d09ad22 100644
@@ -16,7 +16,6 @@
 #include <linux/types.h>
 #include <linux/kernel.h>
 #include <linux/watchdog.h>
-#include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/io.h>
 #include <linux/device.h>
drivers/watchdog/hpwdt.c +0 -1
index 2b75e8b..75d2243 100644
@@ -17,7 +17,6 @@
 
 #include <linux/device.h>
 #include <linux/fs.h>
-#include <linux/init.h>
 #include <linux/io.h>
 #include <linux/bitops.h>
 #include <linux/kernel.h>
drivers/watchdog/i6300esb.c +0 -1
index 25a2bfd..d7befd5 100644
@@ -36,7 +36,6 @@
 #include <linux/mm.h>
 #include <linux/miscdevice.h>
 #include <linux/watchdog.h>
-#include <linux/init.h>
 #include <linux/pci.h>
 #include <linux/ioport.h>
 #include <linux/uaccess.h>
drivers/watchdog/jz4740_wdt.c +0 -1
index 3aa50cf..91e45ca 100644
@@ -18,7 +18,6 @@
 #include <linux/types.h>
 #include <linux/kernel.h>
 #include <linux/watchdog.h>
-#include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/io.h>
 #include <linux/device.h>
drivers/watchdog/max63xx_wdt.c +0 -1
index bdb3f4a..0e9cc6f 100644
@@ -20,7 +20,6 @@
 #include <linux/types.h>
 #include <linux/kernel.h>
 #include <linux/watchdog.h>
-#include <linux/init.h>
 #include <linux/bitops.h>
 #include <linux/platform_device.h>
 #include <linux/spinlock.h>
drivers/watchdog/mtx-1_wdt.c +0 -1
index edb31ff..ff27c4a 100644
@@ -40,7 +40,6 @@
 #include <linux/errno.h>
 #include <linux/miscdevice.h>
 #include <linux/fs.h>
-#include <linux/init.h>
 #include <linux/ioport.h>
 #include <linux/timer.h>
 #include <linux/completion.h>
drivers/watchdog/nuc900_wdt.c +0 -1
index a0d893b..7135803 100644
@@ -12,7 +12,6 @@
 #include <linux/bitops.h>
 #include <linux/errno.h>
 #include <linux/fs.h>
-#include <linux/init.h>
 #include <linux/io.h>
 #include <linux/clk.h>
 #include <linux/kernel.h>
drivers/watchdog/of_xilinx_wdt.c +0 -1
index fb57103..19fa92d01 100644
@@ -16,7 +16,6 @@
 #include <linux/kernel.h>
 #include <linux/fs.h>
 #include <linux/miscdevice.h>
-#include <linux/init.h>
 #include <linux/ioport.h>
 #include <linux/watchdog.h>
 #include <linux/io.h>
drivers/watchdog/omap_wdt.c +0 -1
index 09cf013..fbcb6f6 100644
@@ -34,7 +34,6 @@
 #include <linux/mm.h>
 #include <linux/watchdog.h>
 #include <linux/reboot.h>
-#include <linux/init.h>
 #include <linux/err.h>
 #include <linux/platform_device.h>
 #include <linux/moduleparam.h>
drivers/watchdog/orion_wdt.c +0 -1
index f7722a4..4981634 100644
@@ -18,7 +18,6 @@
 #include <linux/kernel.h>
 #include <linux/platform_device.h>
 #include <linux/watchdog.h>
-#include <linux/init.h>
 #include <linux/io.h>
 #include <linux/spinlock.h>
 #include <linux/clk.h>
drivers/watchdog/pnx4008_wdt.c +0 -1
index 5bec20f..15fb316 100644
@@ -24,7 +24,6 @@
 #include <linux/types.h>
 #include <linux/kernel.h>
 #include <linux/watchdog.h>
-#include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/clk.h>
 #include <linux/spinlock.h>
drivers/watchdog/rdc321x_wdt.c +0 -1
index 082d062..29cf4dc 100644
@@ -27,7 +27,6 @@
 #include <linux/errno.h>
 #include <linux/miscdevice.h>
 #include <linux/fs.h>
-#include <linux/init.h>
 #include <linux/ioport.h>
 #include <linux/timer.h>
 #include <linux/completion.h>
drivers/watchdog/retu_wdt.c +0 -1
index f53615d..a7a0695 100644
@@ -16,7 +16,6 @@
  * GNU General Public License for more details.
  */
 
-#include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/errno.h>
 #include <linux/device.h>
drivers/watchdog/riowd.c +0 -1
index 3dd8ed2..cfed0fe 100644
@@ -10,7 +10,6 @@
 #include <linux/types.h>
 #include <linux/fs.h>
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/miscdevice.h>
 #include <linux/watchdog.h>
 #include <linux/of.h>
drivers/watchdog/s3c2410_wdt.c +0 -1
index aec946d..aba6cd4 100644
@@ -30,7 +30,6 @@
 #include <linux/types.h>
 #include <linux/timer.h>
 #include <linux/watchdog.h>
-#include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/interrupt.h>
 #include <linux/clk.h>
drivers/watchdog/sp805_wdt.c +0 -1
index 3f786ce..6ee6db1 100644
@@ -16,7 +16,6 @@
 #include <linux/amba/bus.h>
 #include <linux/bitops.h>
 #include <linux/clk.h>
-#include <linux/init.h>
 #include <linux/io.h>
 #include <linux/ioport.h>
 #include <linux/kernel.h>
drivers/watchdog/stmp3xxx_rtc_wdt.c +0 -1
index bb64ae3..3804d5e 100644
@@ -9,7 +9,6 @@
  * under the terms of the GNU General Public License version 2 as published by
  * the Free Software Foundation.
  */
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/watchdog.h>
drivers/watchdog/wdt_pci.c +0 -1
index 3dc578e..48b2c05 100644
@@ -49,7 +49,6 @@
 #include <linux/delay.h>
 #include <linux/notifier.h>
 #include <linux/reboot.h>
-#include <linux/init.h>
 #include <linux/fs.h>
 #include <linux/pci.h>
 #include <linux/io.h>
Signature · 1 line
1.8.4.1
#59 lore raw

Re: [PATCH 40/73] watchdog: delete non-required instances of include <linux/init.h>

Hi Paul,

Quoted 26 lines

None of these files are actually using any __init type directives and hence don't need to include <linux/init.h>. Most are just a left over from __devinit and __cpuinit removal, or simply due to code getting copied from one driver to the next.

---
 drivers/watchdog/ar7_wdt.c          | 1 -
 drivers/watchdog/ath79_wdt.c        | 1 -
 drivers/watchdog/bcm47xx_wdt.c      | 1 -
 drivers/watchdog/bcm63xx_wdt.c      | 1 -
 drivers/watchdog/cpu5wdt.c          | 1 -
 drivers/watchdog/cpwd.c             | 1 -
 drivers/watchdog/davinci_wdt.c      | 1 -
 drivers/watchdog/hpwdt.c            | 1 -
 drivers/watchdog/i6300esb.c         | 1 -
 drivers/watchdog/jz4740_wdt.c       | 1 -
 drivers/watchdog/max63xx_wdt.c      | 1 -
 drivers/watchdog/mtx-1_wdt.c        | 1 -
 drivers/watchdog/nuc900_wdt.c       | 1 -
 drivers/watchdog/of_xilinx_wdt.c    | 1 -
 drivers/watchdog/omap_wdt.c         | 1 -
 drivers/watchdog/orion_wdt.c        | 1 -
 drivers/watchdog/pnx4008_wdt.c      | 1 -
Quoted 8 lines
 drivers/watchdog/rdc321x_wdt.c      | 1 -
 drivers/watchdog/retu_wdt.c         | 1 -
 drivers/watchdog/riowd.c            | 1 -
 drivers/watchdog/s3c2410_wdt.c      | 1 -
 drivers/watchdog/sp805_wdt.c        | 1 -
 drivers/watchdog/stmp3xxx_rtc_wdt.c | 1 -
 drivers/watchdog/wdt_pci.c          | 1 -
 24 files changed, 24 deletions(-)

This patch has been added to linux-watchdog-next.

Kind regards,
Wim.

#60 lore raw

PATCH 41/73 video: delete non-required instances of include <linux/init.h>

In reply to Paul Gortmaker

None of these files are actually using any __init type directives and hence don't need to include <linux/init.h>. Most are just a left over from __devinit and __cpuinit removal, or simply due to code getting copied from one driver to the next.

Cc Jean-Christophe Plagniol-Villard <[email protected]>
Cc Tomi Valkeinen <[email protected]>
---
 drivers/video/aty/aty128fb.c            | 1 -
 drivers/video/aty/mach64_cursor.c       | 1 -
 drivers/video/auo_k1900fb.c             | 1 -
 drivers/video/auo_k1901fb.c             | 1 -
 drivers/video/backlight/88pm860x_bl.c   | 1 -
 drivers/video/backlight/adp5520_bl.c    | 1 -
 drivers/video/backlight/adp8860_bl.c    | 1 -
 drivers/video/backlight/adp8870_bl.c    | 1 -
 drivers/video/backlight/corgi_lcd.c     | 1 -
 drivers/video/backlight/da903x_bl.c     | 1 -
 drivers/video/backlight/generic_bl.c    | 1 -
 drivers/video/backlight/ili922x.c       | 1 -
 drivers/video/backlight/ili9320.c       | 1 -
 drivers/video/backlight/lm3533_bl.c     | 1 -
 drivers/video/backlight/ltv350qv.c      | 1 -
 drivers/video/backlight/max8925_bl.c    | 1 -
 drivers/video/backlight/omap1_bl.c      | 1 -
 drivers/video/backlight/pwm_bl.c        | 1 -
 drivers/video/backlight/tdo24m.c        | 1 -
 drivers/video/backlight/vgg2432a4.c     | 1 -
 drivers/video/backlight/wm831x_bl.c     | 1 -
 drivers/video/bfin-lq035q1-fb.c         | 1 -
 drivers/video/clps711xfb.c              | 1 -
 drivers/video/console/dummycon.c        | 1 -
 drivers/video/console/sticore.c         | 1 -
 drivers/video/goldfishfb.c              | 1 -
 drivers/video/i810/i810_main.c          | 1 -
 drivers/video/intelfb/intelfbhw.c       | 1 -
 drivers/video/matrox/matroxfb_base.h    | 1 -
 drivers/video/mb862xx/mb862xxfb_accel.c | 1 -
 drivers/video/mb862xx/mb862xxfbdrv.c    | 1 -
 drivers/video/mbx/mbxfb.c               | 1 -
 drivers/video/nuc900fb.c                | 1 -
 drivers/video/nvidia/nvidia.c           | 1 -
 drivers/video/pxa168fb.c                | 1 -
 drivers/video/riva/fbdev.c              | 1 -
 drivers/video/s3c-fb.c                  | 1 -
 drivers/video/sh_mobile_lcdcfb.c        | 1 -
 drivers/video/sm501fb.c                 | 1 -
 drivers/video/smscufx.c                 | 1 -
 drivers/video/sstfb.c                   | 1 -
 drivers/video/tgafb.c                   | 1 -
 drivers/video/udlfb.c                   | 1 -
 drivers/video/uvesafb.c                 | 1 -
 drivers/video/via/global.h              | 1 -
 drivers/video/vt8500lcdfb.c             | 1 -
 drivers/video/w100fb.c                  | 1 -
 drivers/video/wm8505fb.c                | 1 -
 drivers/video/xilinxfb.c                | 1 -
 49 files changed, 49 deletions(-)
drivers/video/aty/aty128fb.c +0 -1
index 52108be..f572384 100644
@@ -57,7 +57,6 @@
 #include <linux/interrupt.h>
 #include <linux/uaccess.h>
 #include <linux/fb.h>
-#include <linux/init.h>
 #include <linux/pci.h>
 #include <linux/ioport.h>
 #include <linux/console.h>
drivers/video/aty/mach64_cursor.c +0 -1
index 95ec042..af16ef6 100644
@@ -3,7 +3,6 @@
  */
 
 #include <linux/fb.h>
-#include <linux/init.h>
 #include <linux/string.h>
 
 #include <asm/io.h>
drivers/video/auo_k1900fb.c +0 -1
index f5b668e..e81f4c5 100644
@@ -35,7 +35,6 @@
 #include <linux/delay.h>
 #include <linux/interrupt.h>
 #include <linux/fb.h>
-#include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/list.h>
 #include <linux/firmware.h>
drivers/video/auo_k1901fb.c +0 -1
index 12b9adc..3ccb91c 100644
@@ -39,7 +39,6 @@
 #include <linux/delay.h>
 #include <linux/interrupt.h>
 #include <linux/fb.h>
-#include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/list.h>
 #include <linux/firmware.h>
drivers/video/backlight/88pm860x_bl.c +0 -1
index 7db5234..955632e 100644
@@ -9,7 +9,6 @@
  * published by the Free Software Foundation.
  */
 
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/of.h>
 #include <linux/platform_device.h>
drivers/video/backlight/adp5520_bl.c +0 -1
index f37097a..bb7ab3c 100644
@@ -7,7 +7,6 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/fb.h>
 #include <linux/backlight.h>
drivers/video/backlight/adp8860_bl.c +0 -1
index 9d65671..0a23509 100644
@@ -7,7 +7,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/errno.h>
 #include <linux/pm.h>
 #include <linux/platform_device.h>
drivers/video/backlight/adp8870_bl.c +0 -1
index 6370720..2b3c91c 100644
@@ -7,7 +7,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/errno.h>
 #include <linux/pm.h>
 #include <linux/platform_device.h>
drivers/video/backlight/corgi_lcd.c +0 -1
index db8db5f..db4c094 100644
@@ -17,7 +17,6 @@
 
 #include <linux/module.h>
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/gpio.h>
 #include <linux/fb.h>
drivers/video/backlight/da903x_bl.c +0 -1
index 12c5d84..7a48447 100644
@@ -13,7 +13,6 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/fb.h>
 #include <linux/backlight.h>
drivers/video/backlight/generic_bl.c +0 -1
index 5d8d652..06dca66 100644
@@ -11,7 +11,6 @@
 
 #include <linux/module.h>
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/mutex.h>
 #include <linux/fb.h>
drivers/video/backlight/ili922x.c +0 -1
index 73464e4..877426e 100644
@@ -15,7 +15,6 @@
 #include <linux/fb.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/lcd.h>
 #include <linux/module.h>
drivers/video/backlight/ili9320.c +0 -1
index e2b8b40..42175d1 100644
@@ -14,7 +14,6 @@
 #include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/fb.h>
-#include <linux/init.h>
 #include <linux/lcd.h>
 #include <linux/module.h>
 #include <linux/slab.h>
drivers/video/backlight/lm3533_bl.c +0 -1
index 187d1c2..b6c642d 100644
@@ -12,7 +12,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/backlight.h>
 #include <linux/fb.h>
drivers/video/backlight/ltv350qv.c +0 -1
index 383f550..77c509d 100644
@@ -10,7 +10,6 @@
 #include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/fb.h>
-#include <linux/init.h>
 #include <linux/lcd.h>
 #include <linux/module.h>
 #include <linux/slab.h>
drivers/video/backlight/max8925_bl.c +0 -1
index 66fa08c..75f5b7b 100644
@@ -9,7 +9,6 @@
  * published by the Free Software Foundation.
  */
 
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/platform_device.h>
 #include <linux/fb.h>
drivers/video/backlight/omap1_bl.c +0 -1
index a0dcd88..dbd863c 100644
@@ -20,7 +20,6 @@
 
 #include <linux/module.h>
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/fb.h>
 #include <linux/backlight.h>
drivers/video/backlight/pwm_bl.c +0 -1
index b75201f..15ada9f 100644
@@ -14,7 +14,6 @@
 #include <linux/of_gpio.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/fb.h>
 #include <linux/backlight.h>
drivers/video/backlight/tdo24m.c +0 -1
index 908016f..b5ab1da 100644
@@ -11,7 +11,6 @@
 
 #include <linux/module.h>
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/device.h>
 #include <linux/spi/spi.h>
 #include <linux/spi/tdo24m.h>
drivers/video/backlight/vgg2432a4.c +0 -1
index d538947..fac8577 100644
@@ -14,7 +14,6 @@
 #include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/fb.h>
-#include <linux/init.h>
 #include <linux/lcd.h>
 #include <linux/module.h>
 
drivers/video/backlight/wm831x_bl.c +0 -1
index 8b9455e..16ebb3e 100644
@@ -9,7 +9,6 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/module.h>
 #include <linux/fb.h>
drivers/video/bfin-lq035q1-fb.c +0 -1
index b594a58..f2dce09 100644
@@ -15,7 +15,6 @@
 #include <linux/fb.h>
 #include <linux/gpio.h>
 #include <linux/slab.h>
-#include <linux/init.h>
 #include <linux/types.h>
 #include <linux/interrupt.h>
 #include <linux/device.h>
drivers/video/clps711xfb.c +0 -1
index f009806..bec42d5 100644
@@ -24,7 +24,6 @@
 #include <linux/kernel.h>
 #include <linux/slab.h>
 #include <linux/fb.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/platform_device.h>
 
drivers/video/console/dummycon.c +0 -1
index b63860f..b734028 100644
@@ -10,7 +10,6 @@
 #include <linux/console.h>
 #include <linux/vt_kern.h>
 #include <linux/screen_info.h>
-#include <linux/init.h>
 #include <linux/module.h>
 
 /*
drivers/video/console/sticore.c +0 -1
index 4ad24f2..a077504 100644
@@ -17,7 +17,6 @@
 #include <linux/types.h>
 #include <linux/kernel.h>
 #include <linux/slab.h>
-#include <linux/init.h>
 #include <linux/pci.h>
 #include <linux/font.h>
 
drivers/video/goldfishfb.c +0 -1
index 7f6c9e6..7bdb1ba 100644
@@ -22,7 +22,6 @@
 #include <linux/delay.h>
 #include <linux/mm.h>
 #include <linux/fb.h>
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/ioport.h>
 #include <linux/platform_device.h>
drivers/video/i810/i810_main.c +0 -1
index bb674e4..d5df169 100644
@@ -35,7 +35,6 @@
 #include <linux/mm.h>
 #include <linux/slab.h>
 #include <linux/fb.h>
-#include <linux/init.h>
 #include <linux/pci.h>
 #include <linux/pci_ids.h>
 #include <linux/resource.h>
drivers/video/intelfb/intelfbhw.c +0 -1
index fbad61d..f3374c9 100644
@@ -27,7 +27,6 @@
 #include <linux/delay.h>
 #include <linux/fb.h>
 #include <linux/ioport.h>
-#include <linux/init.h>
 #include <linux/pci.h>
 #include <linux/vmalloc.h>
 #include <linux/pagemap.h>
drivers/video/matrox/matroxfb_base.h +0 -1
index 11ed57b..e8d4ac5 100644
@@ -36,7 +36,6 @@
 #include <linux/console.h>
 #include <linux/selection.h>
 #include <linux/ioport.h>
-#include <linux/init.h>
 #include <linux/timer.h>
 #include <linux/pci.h>
 #include <linux/spinlock.h>
drivers/video/mb862xx/mb862xxfb_accel.c +0 -1
index fe92eed..a24a482 100644
@@ -14,7 +14,6 @@
  */
 #include <linux/fb.h>
 #include <linux/delay.h>
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/module.h>
 #include <linux/pci.h>
drivers/video/mb862xx/mb862xxfbdrv.c +0 -1
index 0cd4c33..c2bfed4 100644
@@ -18,7 +18,6 @@
 #include <linux/delay.h>
 #include <linux/uaccess.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/pci.h>
 #if defined(CONFIG_OF)
drivers/video/mbx/mbxfb.c +0 -1
index f0a5392..30a0511 100644
@@ -22,7 +22,6 @@
 
 #include <linux/delay.h>
 #include <linux/fb.h>
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/platform_device.h>
 #include <linux/uaccess.h>
drivers/video/nuc900fb.c +0 -1
index 478f980..9cdf9b6 100644
@@ -23,7 +23,6 @@
 #include <linux/slab.h>
 #include <linux/delay.h>
 #include <linux/fb.h>
-#include <linux/init.h>
 #include <linux/dma-mapping.h>
 #include <linux/interrupt.h>
 #include <linux/workqueue.h>
drivers/video/nvidia/nvidia.c +0 -1
index def0412..da7cb5e 100644
@@ -17,7 +17,6 @@
 #include <linux/slab.h>
 #include <linux/delay.h>
 #include <linux/fb.h>
-#include <linux/init.h>
 #include <linux/pci.h>
 #include <linux/console.h>
 #include <linux/backlight.h>
drivers/video/pxa168fb.c +0 -1
index c95b9e4..727db73 100644
@@ -20,7 +20,6 @@
 #include <linux/slab.h>
 #include <linux/fb.h>
 #include <linux/delay.h>
-#include <linux/init.h>
 #include <linux/io.h>
 #include <linux/ioport.h>
 #include <linux/platform_device.h>
drivers/video/riva/fbdev.c +0 -1
index 8a8d7f0..3ba0bb0 100644
@@ -37,7 +37,6 @@
 #include <linux/slab.h>
 #include <linux/delay.h>
 #include <linux/fb.h>
-#include <linux/init.h>
 #include <linux/pci.h>
 #include <linux/backlight.h>
 #include <linux/bitrev.h>
drivers/video/s3c-fb.c +0 -1
index 62acae2..4dc781e 100644
@@ -17,7 +17,6 @@
 #include <linux/platform_device.h>
 #include <linux/dma-mapping.h>
 #include <linux/slab.h>
-#include <linux/init.h>
 #include <linux/clk.h>
 #include <linux/fb.h>
 #include <linux/io.h>
drivers/video/sh_mobile_lcdcfb.c +0 -1
index 2bcc84a..fec86d6 100644
@@ -16,7 +16,6 @@
 #include <linux/dma-mapping.h>
 #include <linux/delay.h>
 #include <linux/gpio.h>
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/ioctl.h>
 #include <linux/kernel.h>
drivers/video/sm501fb.c +0 -1
index 1501979..3d84279 100644
@@ -20,7 +20,6 @@
 #include <linux/slab.h>
 #include <linux/delay.h>
 #include <linux/fb.h>
-#include <linux/init.h>
 #include <linux/vmalloc.h>
 #include <linux/dma-mapping.h>
 #include <linux/interrupt.h>
drivers/video/smscufx.c +0 -1
index d513ed6..694033c 100644
@@ -24,7 +24,6 @@
 
 #include <linux/module.h>
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/usb.h>
 #include <linux/uaccess.h>
 #include <linux/mm.h>
drivers/video/sstfb.c +0 -1
index f0cb279..f10ca57 100644
@@ -85,7 +85,6 @@
 #include <linux/fb.h>
 #include <linux/pci.h>
 #include <linux/delay.h>
-#include <linux/init.h>
 #include <asm/io.h>
 #include <linux/uaccess.h>
 #include <video/sstfb.h>
drivers/video/tgafb.c +0 -1
index 07c7df9..90e2583 100644
@@ -18,7 +18,6 @@
 #include <linux/device.h>
 #include <linux/errno.h>
 #include <linux/fb.h>
-#include <linux/init.h>
 #include <linux/ioport.h>
 #include <linux/kernel.h>
 #include <linux/mm.h>
drivers/video/udlfb.c +0 -1
index 77b890e..c00aec3 100644
@@ -20,7 +20,6 @@
 
 #include <linux/module.h>
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/usb.h>
 #include <linux/uaccess.h>
 #include <linux/mm.h>
drivers/video/uvesafb.c +0 -1
index 256fba7..9b2c7b5 100644
@@ -5,7 +5,6 @@
  *     Loosely based upon the vesafb driver.
  *
  */
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 #include <linux/skbuff.h>
drivers/video/via/global.h +0 -1
index 275dbbb..d356dec 100644
@@ -28,7 +28,6 @@
 #include <linux/pci.h>
 #include <linux/io.h>
 #include <linux/uaccess.h>
-#include <linux/init.h>
 #include <linux/proc_fs.h>
 #include <linux/console.h>
 #include <linux/timer.h>
drivers/video/vt8500lcdfb.c +0 -1
index a8f2b28..dc55ef4 100644
@@ -19,7 +19,6 @@
 #include <linux/dma-mapping.h>
 #include <linux/errno.h>
 #include <linux/fb.h>
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/io.h>
 #include <linux/kernel.h>
drivers/video/w100fb.c +0 -1
index 10951c8..1c55014 100644
@@ -26,7 +26,6 @@
 
 #include <linux/delay.h>
 #include <linux/fb.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/mm.h>
 #include <linux/platform_device.h>
drivers/video/wm8505fb.c +0 -1
index 537d199..fc8e0d7 100644
@@ -19,7 +19,6 @@
 #include <linux/fb.h>
 #include <linux/errno.h>
 #include <linux/err.h>
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/io.h>
 #include <linux/kernel.h>
drivers/video/xilinxfb.c +0 -1
index 6ff1a91..4506252 100644
@@ -27,7 +27,6 @@
 #include <linux/string.h>
 #include <linux/mm.h>
 #include <linux/fb.h>
-#include <linux/init.h>
 #include <linux/dma-mapping.h>
 #include <linux/of_device.h>
 #include <linux/of_platform.h>
Signature · 1 line
1.8.4.1
#61 lore raw

PATCH 42/73 rtc: delete non-required instances of include <linux/init.h>

In reply to Paul Gortmaker

None of these files are actually using any __init type directives and hence don't need to include <linux/init.h>. Most are just a left over from __devinit and __cpuinit removal, or simply due to code getting copied from one driver to the next.

---
 drivers/rtc/rtc-ab8500.c   | 1 -
 drivers/rtc/rtc-au1xxx.c   | 1 -
 drivers/rtc/rtc-bfin.c     | 1 -
 drivers/rtc/rtc-bq32k.c    | 1 -
 drivers/rtc/rtc-bq4802.c   | 1 -
 drivers/rtc/rtc-dm355evm.c | 1 -
 drivers/rtc/rtc-ds1305.c   | 1 -
 drivers/rtc/rtc-ds1307.c   | 1 -
 drivers/rtc/rtc-ds1390.c   | 1 -
 drivers/rtc/rtc-ds1511.c   | 1 -
 drivers/rtc/rtc-ds1553.c   | 1 -
 drivers/rtc/rtc-ds2404.c   | 1 -
 drivers/rtc/rtc-ds3234.c   | 1 -
 drivers/rtc/rtc-lpc32xx.c  | 1 -
 drivers/rtc/rtc-ls1x.c     | 1 -
 drivers/rtc/rtc-m41t80.c   | 1 -
 drivers/rtc/rtc-m48t59.c   | 1 -
 drivers/rtc/rtc-max6902.c  | 1 -
 drivers/rtc/rtc-mpc5121.c  | 1 -
 drivers/rtc/rtc-mrst.c     | 1 -
 drivers/rtc/rtc-palmas.c   | 1 -
 drivers/rtc/rtc-pcf2123.c  | 1 -
 drivers/rtc/rtc-pcf50633.c | 1 -
 drivers/rtc/rtc-pcf8583.c  | 1 -
 drivers/rtc/rtc-pl030.c    | 1 -
 drivers/rtc/rtc-pl031.c    | 1 -
 drivers/rtc/rtc-pm8xxx.c   | 1 -
 drivers/rtc/rtc-puv3.c     | 1 -
 drivers/rtc/rtc-r9701.c    | 1 -
 drivers/rtc/rtc-rc5t583.c  | 1 -
 drivers/rtc/rtc-rs5c348.c  | 1 -
 drivers/rtc/rtc-rx4581.c   | 1 -
 drivers/rtc/rtc-rx8025.c   | 1 -
 drivers/rtc/rtc-s3c.c      | 1 -
 drivers/rtc/rtc-sa1100.c   | 1 -
 drivers/rtc/rtc-snvs.c     | 1 -
 drivers/rtc/rtc-spear.c    | 1 -
 drivers/rtc/rtc-stk17ta8.c | 1 -
 drivers/rtc/rtc-stmp3xxx.c | 1 -
 drivers/rtc/rtc-tps6586x.c | 1 -
 drivers/rtc/rtc-tps65910.c | 1 -
 drivers/rtc/rtc-tps80031.c | 1 -
 drivers/rtc/rtc-twl.c      | 1 -
 drivers/rtc/rtc-v3020.c    | 1 -
 drivers/rtc/rtc-vr41xx.c   | 1 -
 drivers/rtc/rtc-vt8500.c   | 1 -
 46 files changed, 46 deletions(-)
drivers/rtc/rtc-ab8500.c +0 -1
index 727e2f5..480525c 100644
@@ -11,7 +11,6 @@
 
 #include <linux/module.h>
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/rtc.h>
 #include <linux/mfd/abx500.h>
drivers/rtc/rtc-au1xxx.c +0 -1
index ed526a1..4307a8f 100644
@@ -20,7 +20,6 @@
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/rtc.h>
-#include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/io.h>
 #include <asm/mach-au1x00/au1000.h>
drivers/rtc/rtc-bfin.c +0 -1
index 0c53f45..a7669c1 100644
@@ -44,7 +44,6 @@
 #include <linux/bcd.h>
 #include <linux/completion.h>
 #include <linux/delay.h>
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
drivers/rtc/rtc-bq32k.c +0 -1
index c74bf0d..5e2a74a 100644
@@ -11,7 +11,6 @@
 #include <linux/module.h>
 #include <linux/i2c.h>
 #include <linux/rtc.h>
-#include <linux/init.h>
 #include <linux/errno.h>
 #include <linux/bcd.h>
 
drivers/rtc/rtc-bq4802.c +0 -1
index fc0ff87..23d0469 100644
@@ -5,7 +5,6 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/io.h>
 #include <linux/platform_device.h>
 #include <linux/rtc.h>
drivers/rtc/rtc-dm355evm.c +0 -1
index 1aca083..e6b6bdc 100644
@@ -9,7 +9,6 @@
  * 2 of the License, or (at your option) any later version.
  */
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/rtc.h>
 #include <linux/platform_device.h>
 
drivers/rtc/rtc-ds1305.c +0 -1
index 2dd586a..d913952 100644
@@ -9,7 +9,6 @@
  *
  */
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/bcd.h>
 #include <linux/slab.h>
 #include <linux/rtc.h>
drivers/rtc/rtc-ds1307.c +0 -1
index 4e75345..72d2bf9 100644
@@ -12,7 +12,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/i2c.h>
 #include <linux/string.h>
drivers/rtc/rtc-ds1390.c +0 -1
index be9d8c0..3d5f128 100644
@@ -13,7 +13,6 @@
  * (alarms, trickle charger, different control registers) are unavailable.
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/platform_device.h>
 #include <linux/rtc.h>
drivers/rtc/rtc-ds1511.c +0 -1
index bc7b4fc..a894336 100644
@@ -15,7 +15,6 @@
  */
 
 #include <linux/bcd.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/gfp.h>
 #include <linux/delay.h>
drivers/rtc/rtc-ds1553.c +0 -1
index fd31571..89e3008 100644
@@ -9,7 +9,6 @@
  */
 
 #include <linux/bcd.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/gfp.h>
 #include <linux/delay.h>
drivers/rtc/rtc-ds2404.c +0 -1
index fc209dc..8574301 100644
@@ -9,7 +9,6 @@
 
 #include <linux/platform_device.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/rtc.h>
 #include <linux/types.h>
 #include <linux/bcd.h>
drivers/rtc/rtc-ds3234.c +0 -1
index 4c9ba53..258fe11 100644
@@ -11,7 +11,6 @@
  *
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/device.h>
 #include <linux/platform_device.h>
drivers/rtc/rtc-lpc32xx.c +0 -1
index bfdbcb8..23b7727 100644
@@ -13,7 +13,6 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/spinlock.h>
 #include <linux/rtc.h>
drivers/rtc/rtc-ls1x.c +0 -1
index 682ecb0..fefeba8 100644
@@ -12,7 +12,6 @@
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/rtc.h>
-#include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/delay.h>
 #include <linux/types.h>
drivers/rtc/rtc-m41t80.c +0 -1
index a5248aa..953bc79 100644
@@ -15,7 +15,6 @@
 
 #include <linux/bcd.h>
 #include <linux/i2c.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/rtc.h>
drivers/rtc/rtc-m48t59.c +0 -1
index 11880c1..9fac68b 100644
@@ -12,7 +12,6 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/io.h>
 #include <linux/device.h>
 #include <linux/platform_device.h>
drivers/rtc/rtc-max6902.c +0 -1
index ac3f419..4671366 100644
@@ -14,7 +14,6 @@
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/platform_device.h>
-#include <linux/init.h>
 #include <linux/rtc.h>
 #include <linux/spi/spi.h>
 #include <linux/bcd.h>
drivers/rtc/rtc-mpc5121.c +0 -1
index dc4f142..0d0cb89 100644
@@ -10,7 +10,6 @@
  * published by the Free Software Foundation.
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/rtc.h>
 #include <linux/of.h>
drivers/rtc/rtc-mrst.c +0 -1
index e2436d1..4925003 100644
@@ -33,7 +33,6 @@
 #include <linux/spinlock.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/sfi.h>
 
 #include <asm-generic/rtc.h>
drivers/rtc/rtc-palmas.c +0 -1
index fffb7d3..8eee0a5 100644
@@ -25,7 +25,6 @@
 
 #include <linux/bcd.h>
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/kernel.h>
 #include <linux/mfd/palmas.h>
drivers/rtc/rtc-pcf2123.c +0 -1
index d1953bb..27869a6 100644
@@ -36,7 +36,6 @@
 #include <linux/delay.h>
 #include <linux/device.h>
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
 #include <linux/slab.h>
drivers/rtc/rtc-pcf50633.c +0 -1
index e6b6911..adb5622 100644
@@ -16,7 +16,6 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/device.h>
 #include <linux/slab.h>
 #include <linux/platform_device.h>
drivers/rtc/rtc-pcf8583.c +0 -1
index c263984..ead381e 100644
@@ -16,7 +16,6 @@
 #include <linux/i2c.h>
 #include <linux/slab.h>
 #include <linux/rtc.h>
-#include <linux/init.h>
 #include <linux/err.h>
 #include <linux/errno.h>
 #include <linux/bcd.h>
drivers/rtc/rtc-pl030.c +0 -1
index f85a1a9..746f8c7 100644
@@ -9,7 +9,6 @@
  */
 #include <linux/module.h>
 #include <linux/rtc.h>
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/amba/bus.h>
 #include <linux/io.h>
drivers/rtc/rtc-pl031.c +0 -1
index 99181fff..0638941 100644
@@ -17,7 +17,6 @@
  */
 #include <linux/module.h>
 #include <linux/rtc.h>
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/amba/bus.h>
 #include <linux/io.h>
drivers/rtc/rtc-pm8xxx.c +0 -1
index 03f8f75..1db02aa 100644
@@ -11,7 +11,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/rtc.h>
 #include <linux/pm.h>
 #include <linux/slab.h>
drivers/rtc/rtc-puv3.c +0 -1
index 1ecfe3b..bac83ee 100644
@@ -12,7 +12,6 @@
 #include <linux/module.h>
 #include <linux/fs.h>
 #include <linux/string.h>
-#include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/interrupt.h>
 #include <linux/rtc.h>
drivers/rtc/rtc-r9701.c +0 -1
index feeedbd..11bcd60 100644
@@ -17,7 +17,6 @@
 #include <linux/kernel.h>
 #include <linux/platform_device.h>
 #include <linux/device.h>
-#include <linux/init.h>
 #include <linux/rtc.h>
 #include <linux/spi/spi.h>
 #include <linux/bcd.h>
drivers/rtc/rtc-rc5t583.c +0 -1
index e53e9b1..9539efb 100644
@@ -18,7 +18,6 @@
 
 #include <linux/kernel.h>
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/types.h>
 #include <linux/rtc.h>
drivers/rtc/rtc-rs5c348.c +0 -1
index 090a101..e561910 100644
@@ -16,7 +16,6 @@
 #include <linux/delay.h>
 #include <linux/device.h>
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
 #include <linux/slab.h>
drivers/rtc/rtc-rx4581.c +0 -1
index 6889222..d2e42df 100644
@@ -34,7 +34,6 @@
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/platform_device.h>
-#include <linux/init.h>
 #include <linux/rtc.h>
 #include <linux/spi/spi.h>
 #include <linux/bcd.h>
drivers/rtc/rtc-rx8025.c +0 -1
index 8fa23ea..fcdd253 100644
@@ -21,7 +21,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/slab.h>
-#include <linux/init.h>
 #include <linux/bcd.h>
 #include <linux/i2c.h>
 #include <linux/list.h>
drivers/rtc/rtc-s3c.c +0 -1
index 7afd373..372554c 100644
@@ -17,7 +17,6 @@
 #include <linux/module.h>
 #include <linux/fs.h>
 #include <linux/string.h>
-#include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/interrupt.h>
 #include <linux/rtc.h>
drivers/rtc/rtc-sa1100.c +0 -1
index 0f7adeb..c0bcc67 100644
@@ -25,7 +25,6 @@
 #include <linux/module.h>
 #include <linux/clk.h>
 #include <linux/rtc.h>
-#include <linux/init.h>
 #include <linux/fs.h>
 #include <linux/interrupt.h>
 #include <linux/slab.h>
drivers/rtc/rtc-snvs.c +0 -1
index fa384fe..8ee9483 100644
@@ -9,7 +9,6 @@
  * http://www.gnu.org/copyleft/gpl.html
  */
 
-#include <linux/init.h>
 #include <linux/io.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
drivers/rtc/rtc-spear.c +0 -1
index c492cf0..de2c9a5 100644
@@ -12,7 +12,6 @@
 #include <linux/bcd.h>
 #include <linux/clk.h>
 #include <linux/delay.h>
-#include <linux/init.h>
 #include <linux/io.h>
 #include <linux/irq.h>
 #include <linux/module.h>
drivers/rtc/rtc-stk17ta8.c +0 -1
index a176ba6..5b55532 100644
@@ -12,7 +12,6 @@
  */
 
 #include <linux/bcd.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/gfp.h>
 #include <linux/delay.h>
drivers/rtc/rtc-stmp3xxx.c +0 -1
index ea96492..337ee6c 100644
@@ -20,7 +20,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/io.h>
-#include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/interrupt.h>
 #include <linux/delay.h>
drivers/rtc/rtc-tps6586x.c +0 -1
index 426901c..6656ae1 100644
@@ -22,7 +22,6 @@
 
 #include <linux/device.h>
 #include <linux/err.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/mfd/tps6586x.h>
 #include <linux/module.h>
drivers/rtc/rtc-tps65910.c +0 -1
index 7af0020..bc5beb5 100644
@@ -16,7 +16,6 @@
 
 #include <linux/kernel.h>
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/types.h>
 #include <linux/rtc.h>
drivers/rtc/rtc-tps80031.c +0 -1
index 3e400dc..202d391 100644
@@ -26,7 +26,6 @@
 #include <linux/bcd.h>
 #include <linux/device.h>
 #include <linux/err.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/mfd/tps80031.h>
drivers/rtc/rtc-twl.c +0 -1
index 1915464..48920f1 100644
@@ -20,7 +20,6 @@
 
 #include <linux/kernel.h>
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/types.h>
 #include <linux/rtc.h>
drivers/rtc/rtc-v3020.c +0 -1
index 25222cd..7fd489c 100644
@@ -21,7 +21,6 @@
  */
 #include <linux/platform_device.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/rtc.h>
 #include <linux/types.h>
 #include <linux/bcd.h>
drivers/rtc/rtc-vr41xx.c +0 -1
index 88c9c92..37f2fb8 100644
@@ -19,7 +19,6 @@
  */
 #include <linux/err.h>
 #include <linux/fs.h>
-#include <linux/init.h>
 #include <linux/io.h>
 #include <linux/ioport.h>
 #include <linux/interrupt.h>
drivers/rtc/rtc-vt8500.c +0 -1
index df2ef3e..22dd231 100644
@@ -17,7 +17,6 @@
 
 #include <linux/module.h>
 #include <linux/rtc.h>
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/io.h>
 #include <linux/bcd.h>
Signature · 1 line
1.8.4.1
#62 lore raw

Re: [42/73] rtc: delete non-required instances of include <linux/init.h>

Quoted 8 lines · Paul Gortmaker

None of these files are actually using any __init type directives and hence don't need to include <linux/init.h>. Most are just a left over from __devinit and __cpuinit removal, or simply due to code getting copied from one driver to the next.

I've contemplated applying that patch but I'm not sure it is actually a good idea because those 46 drivers are using a variant of module_driver which actually uses __init and __exit. After your patch it is still working simply because init.h gets included that way:

linux/module.h:9
linux/list.h:8
linux/kernel.h:13
linux/printk.h:5

Signature · 14 lines
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

-- 
-- 
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
--- 
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
#63 lore raw

Re: [42/73] rtc: delete non-required instances of include <linux/init.h>

Quoted 6 lines · [Re: [42/73] rtc: delete non-required instances of include <linux/init.h>] On…
Quoted 5 lines · Paul Gortmaker

None of these files are actually using any __init type directives and hence don't need to include <linux/init.h>. Most are just a left over from __devinit and __cpuinit removal, or simply due to code getting copied from one driver to the next.

Quoted 8 lines
Quoted 3 lines

I've contemplated applying that patch but I'm not sure it is actually a good idea because those 46 drivers are using a variant of module_driver which actually uses __init and __exit. After your patch it is still working simply because init.h gets included that way:

Firstly, I am kind of curious why an 18 month old patch is getting
replied to now. That aside, this interdependence between module.h and
init.h was reconsidered and you can see the resolution solution here:

https://lkml.kernel.org/r/[email protected]

To summarize what is said there, yes - you can ignore the one line removals for now. We will revisit them after the above is merged.

Thanks,
Paul.
--

Quoted 10 lines

linux/module.h:9
linux/list.h:8
linux/kernel.h:13
linux/printk.h:5

Signature · 3 lines
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
Signature · 9 lines
-- 
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
--- 
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
#64 lore raw

Re: [42/73] rtc: delete non-required instances of include <linux/init.h>

Quoted 5 lines · Paul Gortmaker
Quoted 4 lines

I've contemplated applying that patch but I'm not sure it is actually a good idea because those 46 drivers are using a variant of module_driver which actually uses __init and __exit. After your patch it is still working simply because init.h gets included that way:

Quoted 9 lines

Firstly, I am kind of curious why an 18 month old patch is getting
replied to now. That aside, this interdependence between module.h and
init.h was reconsidered and you can see the resolution solution here:

https://lkml.kernel.org/r/[email protected]

To summarize what is said there, yes - you can ignore the one line removals for now. We will revisit them after the above is merged.

I've taken the RTC subsystem maintainership and I've been sorting the 2372 patches left in patchwork down to 126 and yours was one of these.

Seeing your answer, I think my question was legitimate. I'll be happy to take your revised patch once ready.

Signature · 14 lines
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

-- 
-- 
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
--- 
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
#65 lore raw

Re: [42/73] rtc: delete non-required instances of include <linux/init.h>

Quoted 16 lines · Alexandre Belloni
Quoted 5 lines · Paul Gortmaker
Quoted 4 lines

I've contemplated applying that patch but I'm not sure it is actually a good idea because those 46 drivers are using a variant of module_driver which actually uses __init and __exit. After your patch it is still working simply because init.h gets included that way:

Quoted 9 lines

Firstly, I am kind of curious why an 18 month old patch is getting
replied to now. That aside, this interdependence between module.h and
init.h was reconsidered and you can see the resolution solution here:

https://lkml.kernel.org/r/[email protected]

To summarize what is said there, yes - you can ignore the one line removals for now. We will revisit them after the above is merged.

Quoted 5 lines

I've taken the RTC subsystem maintainership and I've been sorting the 2372 patches left in patchwork down to 126 and yours was one of these.

Seeing your answer, I think my question was legitimate. I'll be happy to take your revised patch once ready.

Yes, it was a legit (and correct) spotting ; just some months late. :)

I'll be sure to make sure you are CC'd on any updates. And thanks
for taking over maintainership of the rtc subsystem. I'll go out on
a limb here and guess that the original rtc driver author ; that idiot never imagined it would become a subsystem, else he'd thank you as well.

Paul.
--

Quoted 9 lines

--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 9 lines
-- 
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
--- 
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
#66 lore raw

PATCH 43/73 scsi: delete non-required instances of include <linux/init.h>

In reply to Paul Gortmaker

None of these files are actually using any __init type directives and hence don't need to include <linux/init.h>. Most are just a left over from __devinit and __cpuinit removal, or simply due to code getting copied from one driver to the next.

---
 drivers/scsi/aacraid/aachba.c               | 1 -
 drivers/scsi/aacraid/commctrl.c             | 1 -
 drivers/scsi/aacraid/comminit.c             | 1 -
 drivers/scsi/aacraid/commsup.c              | 1 -
 drivers/scsi/aacraid/dpcsup.c               | 1 -
 drivers/scsi/aacraid/rx.c                   | 1 -
 drivers/scsi/aacraid/sa.c                   | 1 -
 drivers/scsi/aacraid/src.c                  | 1 -
 drivers/scsi/arcmsr/arcmsr_attr.c           | 1 -
 drivers/scsi/arm/msgqueue.c                 | 1 -
 drivers/scsi/arm/queue.c                    | 1 -
 drivers/scsi/bnx2fc/bnx2fc.h                | 1 -
 drivers/scsi/csiostor/csio_attr.c           | 1 -
 drivers/scsi/fdomain.c                      | 1 -
 drivers/scsi/fnic/fnic_scsi.c               | 1 -
 drivers/scsi/hosts.c                        | 1 -
 drivers/scsi/mpt2sas/mpt2sas_base.c         | 1 -
 drivers/scsi/mpt2sas/mpt2sas_config.c       | 1 -
 drivers/scsi/mpt2sas/mpt2sas_ctl.c          | 1 -
 drivers/scsi/mpt2sas/mpt2sas_transport.c    | 1 -
 drivers/scsi/mpt3sas/mpt3sas_base.c         | 1 -
 drivers/scsi/mpt3sas/mpt3sas_config.c       | 1 -
 drivers/scsi/mpt3sas/mpt3sas_ctl.c          | 1 -
 drivers/scsi/mpt3sas/mpt3sas_transport.c    | 1 -
 drivers/scsi/mpt3sas/mpt3sas_trigger_diag.c | 1 -
 drivers/scsi/qla2xxx/qla_def.h              | 1 -
 drivers/scsi/qla4xxx/ql4_def.h              | 1 -
 drivers/scsi/scsi_scan.c                    | 1 -
 drivers/scsi/scsi_sysfs.c                   | 1 -
 drivers/scsi/ufs/ufshcd.h                   | 1 -
 drivers/scsi/wd33c93.c                      | 1 -
 31 files changed, 31 deletions(-)
drivers/scsi/aacraid/aachba.c +0 -1
index 681434e..c0e8b9e 100644
@@ -25,7 +25,6 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/types.h>
 #include <linux/pci.h>
 #include <linux/spinlock.h>
drivers/scsi/aacraid/commctrl.c +0 -1
index fbcd48d..abb98dc5 100644
@@ -30,7 +30,6 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/types.h>
 #include <linux/pci.h>
 #include <linux/spinlock.h>
drivers/scsi/aacraid/comminit.c +0 -1
index 177b094..bbe5077 100644
@@ -31,7 +31,6 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/types.h>
 #include <linux/pci.h>
 #include <linux/spinlock.h>
drivers/scsi/aacraid/commsup.c +0 -1
index cab190a..e8ed86f 100644
@@ -31,7 +31,6 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/types.h>
 #include <linux/sched.h>
 #include <linux/pci.h>
drivers/scsi/aacraid/dpcsup.c +0 -1
index d81b281..130939c 100644
@@ -31,7 +31,6 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/types.h>
 #include <linux/spinlock.h>
 #include <linux/slab.h>
drivers/scsi/aacraid/rx.c +0 -1
index dada38a..bdda9e8 100644
@@ -30,7 +30,6 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/types.h>
 #include <linux/pci.h>
 #include <linux/spinlock.h>
drivers/scsi/aacraid/sa.c +0 -1
index 2244f31..585a855 100644
@@ -30,7 +30,6 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/types.h>
 #include <linux/pci.h>
 #include <linux/spinlock.h>
drivers/scsi/aacraid/src.c +0 -1
index 7e17107..7afb2b0 100644
@@ -30,7 +30,6 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/types.h>
 #include <linux/pci.h>
 #include <linux/spinlock.h>
drivers/scsi/arcmsr/arcmsr_attr.c +0 -1
index acdae33..f3978f8 100644
@@ -46,7 +46,6 @@
 */
 #include <linux/module.h>
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/errno.h>
 #include <linux/delay.h>
 #include <linux/pci.h>
drivers/scsi/arm/msgqueue.c +0 -1
index 7c95c75..bcae7f0 100644
@@ -12,7 +12,6 @@
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/stddef.h>
-#include <linux/init.h>
 
 #include "msgqueue.h"
 
drivers/scsi/arm/queue.c +0 -1
index cb11cce..7ee1090 100644
@@ -21,7 +21,6 @@
 #include <linux/slab.h>
 #include <linux/spinlock.h>
 #include <linux/list.h>
-#include <linux/init.h>
 
 #include "../scsi.h"
 
drivers/scsi/bnx2fc/bnx2fc.h +0 -1
index 1ebf3fb..b753030 100644
@@ -30,7 +30,6 @@
 #include <linux/timer.h>
 #include <linux/errno.h>
 #include <linux/pci.h>
-#include <linux/init.h>
 #include <linux/dma-mapping.h>
 #include <linux/workqueue.h>
 #include <linux/mutex.h>
drivers/scsi/csiostor/csio_attr.c +0 -1
index 065a87a..0a50452 100644
@@ -36,7 +36,6 @@
 #include <linux/string.h>
 #include <linux/delay.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/pci.h>
 #include <linux/mm.h>
 #include <linux/jiffies.h>
drivers/scsi/fdomain.c +0 -1
index fff6829..2b45368 100644
@@ -267,7 +267,6 @@
  **************************************************************************/
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/blkdev.h>
 #include <linux/spinlock.h>
drivers/scsi/fnic/fnic_scsi.c +0 -1
index 0521436..697ba76 100644
@@ -17,7 +17,6 @@
  */
 #include <linux/mempool.h>
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/workqueue.h>
 #include <linux/pci.h>
 #include <linux/scatterlist.h>
drivers/scsi/hosts.c +0 -1
index f28ea07..fb7be2b 100644
@@ -28,7 +28,6 @@
 #include <linux/kthread.h>
 #include <linux/string.h>
 #include <linux/mm.h>
-#include <linux/init.h>
 #include <linux/completion.h>
 #include <linux/transport_class.h>
 #include <linux/platform_device.h>
drivers/scsi/mpt2sas/mpt2sas_base.c +0 -1
index bde63f7..ab8c981 100644
@@ -45,7 +45,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/types.h>
 #include <linux/pci.h>
drivers/scsi/mpt2sas/mpt2sas_config.c +0 -1
index 0c47425..2fb88e9 100644
@@ -43,7 +43,6 @@
 
 #include <linux/module.h>
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/errno.h>
 #include <linux/blkdev.h>
 #include <linux/sched.h>
drivers/scsi/mpt2sas/mpt2sas_ctl.c +0 -1
index b7f887c..3b06d45 100644
@@ -45,7 +45,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/types.h>
 #include <linux/pci.h>
drivers/scsi/mpt2sas/mpt2sas_transport.c +0 -1
index 410f4a3..3c6c23a 100644
@@ -43,7 +43,6 @@
 
 #include <linux/module.h>
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/errno.h>
 #include <linux/sched.h>
 #include <linux/workqueue.h>
drivers/scsi/mpt3sas/mpt3sas_base.c +0 -1
index 0cf4f70..6f2a90c 100644
@@ -45,7 +45,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/types.h>
 #include <linux/pci.h>
drivers/scsi/mpt3sas/mpt3sas_config.c +0 -1
index 936ec03..e1712a6 100644
@@ -43,7 +43,6 @@
 
 #include <linux/module.h>
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/errno.h>
 #include <linux/blkdev.h>
 #include <linux/sched.h>
drivers/scsi/mpt3sas/mpt3sas_ctl.c +0 -1
index 9b89de1..9b2b4b4 100644
@@ -45,7 +45,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/types.h>
 #include <linux/pci.h>
drivers/scsi/mpt3sas/mpt3sas_transport.c +0 -1
index 65170cb..ab69795 100644
@@ -43,7 +43,6 @@
 
 #include <linux/module.h>
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/errno.h>
 #include <linux/sched.h>
 #include <linux/workqueue.h>
drivers/scsi/mpt3sas/mpt3sas_trigger_diag.c +0 -1
index f6533ab..1560a53 100644
@@ -45,7 +45,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/types.h>
 #include <linux/pci.h>
drivers/scsi/qla2xxx/qla_def.h +0 -1
index e1fe95e..79bee11 100644
@@ -8,7 +8,6 @@
 #define __QLA_DEF_H
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/types.h>
 #include <linux/module.h>
 #include <linux/list.h>
drivers/scsi/qla4xxx/ql4_def.h +0 -1
index aa67bb9..2c1d8db 100644
@@ -9,7 +9,6 @@
 #define __QL4_DEF_H
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/types.h>
 #include <linux/module.h>
 #include <linux/list.h>
drivers/scsi/scsi_scan.c +0 -1
index 307a811..7b02567 100644
@@ -27,7 +27,6 @@
 
 #include <linux/module.h>
 #include <linux/moduleparam.h>
-#include <linux/init.h>
 #include <linux/blkdev.h>
 #include <linux/delay.h>
 #include <linux/kthread.h>
drivers/scsi/scsi_sysfs.c +0 -1
index 9117d0b..3fb9557 100644
@@ -8,7 +8,6 @@
 
 #include <linux/module.h>
 #include <linux/slab.h>
-#include <linux/init.h>
 #include <linux/blkdev.h>
 #include <linux/device.h>
 #include <linux/pm_runtime.h>
drivers/scsi/ufs/ufshcd.h +0 -1
index 577679a..c63f717 100644
@@ -38,7 +38,6 @@
 
 #include <linux/module.h>
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/io.h>
 #include <linux/delay.h>
drivers/scsi/wd33c93.c +0 -1
index 41883a8..3585315 100644
@@ -80,7 +80,6 @@
 
 #include <linux/string.h>
 #include <linux/delay.h>
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/blkdev.h>
 
Signature · 1 line
1.8.4.1
#67 lore raw

PATCH 44/73 spi: delete non-required instances of include <linux/init.h>

In reply to Paul Gortmaker

None of these files are actually using any __init type directives and hence don't need to include <linux/init.h>. Most are just a left over from __devinit and __cpuinit removal, or simply due to code getting copied from one driver to the next.

---
 drivers/spi/spi-altera.c         | 1 -
 drivers/spi/spi-ath79.c          | 1 -
 drivers/spi/spi-atmel.c          | 1 -
 drivers/spi/spi-bcm63xx.c        | 1 -
 drivers/spi/spi-bfin-sport.c     | 1 -
 drivers/spi/spi-bitbang.c        | 1 -
 drivers/spi/spi-clps711x.c       | 1 -
 drivers/spi/spi-gpio.c           | 1 -
 drivers/spi/spi-imx.c            | 1 -
 drivers/spi/spi-mpc512x-psc.c    | 1 -
 drivers/spi/spi-mpc52xx-psc.c    | 1 -
 drivers/spi/spi-mpc52xx.c        | 1 -
 drivers/spi/spi-mxs.c            | 1 -
 drivers/spi/spi-nuc900.c         | 1 -
 drivers/spi/spi-oc-tiny.c        | 1 -
 drivers/spi/spi-octeon.c         | 1 -
 drivers/spi/spi-omap2-mcspi.c    | 1 -
 drivers/spi/spi-orion.c          | 1 -
 drivers/spi/spi-ppc4xx.c         | 1 -
 drivers/spi/spi-pxa2xx-dma.c     | 1 -
 drivers/spi/spi-pxa2xx-pxadma.c  | 1 -
 drivers/spi/spi-s3c24xx.c        | 1 -
 drivers/spi/spi-sh-msiof.c       | 1 -
 drivers/spi/spi-sh-sci.c         | 1 -
 drivers/spi/spi-tegra114.c       | 1 -
 drivers/spi/spi-tegra20-sflash.c | 1 -
 drivers/spi/spi-tegra20-slink.c  | 1 -
 drivers/spi/spi-xcomm.c          | 1 -
 drivers/spi/spi-xilinx.c         | 1 -
 29 files changed, 29 deletions(-)
drivers/spi/spi-altera.c +0 -1
index 5d7deaf..1928b83 100644
@@ -13,7 +13,6 @@
  * published by the Free Software Foundation.
  */
 
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/errno.h>
 #include <linux/module.h>
drivers/spi/spi-ath79.c +0 -1
index 31534b5..a1cf9af 100644
@@ -14,7 +14,6 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/spinlock.h>
 #include <linux/workqueue.h>
drivers/spi/spi-atmel.c +0 -1
index b0842f7..88796df 100644
@@ -9,7 +9,6 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/clk.h>
 #include <linux/module.h>
 #include <linux/platform_device.h>
drivers/spi/spi-bcm63xx.c +0 -1
index 77286ae..9e9ee5f 100644
@@ -20,7 +20,6 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/clk.h>
 #include <linux/io.h>
 #include <linux/module.h>
drivers/spi/spi-bfin-sport.c +0 -1
index 38941e5..f515c5e 100644
@@ -8,7 +8,6 @@
  * Licensed under the GPL-2 or later.
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/delay.h>
 #include <linux/device.h>
drivers/spi/spi-bitbang.c +0 -1
index bd222f6..3bfdb85 100644
@@ -16,7 +16,6 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-#include <linux/init.h>
 #include <linux/spinlock.h>
 #include <linux/workqueue.h>
 #include <linux/interrupt.h>
drivers/spi/spi-clps711x.c +0 -1
index 374ba4a..bee864d 100644
@@ -11,7 +11,6 @@
 
 #include <linux/io.h>
 #include <linux/clk.h>
-#include <linux/init.h>
 #include <linux/gpio.h>
 #include <linux/delay.h>
 #include <linux/module.h>
drivers/spi/spi-gpio.c +0 -1
index 7beeb29..cfc9fb3 100644
@@ -19,7 +19,6 @@
  */
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/gpio.h>
 #include <linux/of.h>
drivers/spi/spi-imx.c +0 -1
index a5474ef..8a77b7b 100644
@@ -23,7 +23,6 @@
 #include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/gpio.h>
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/io.h>
 #include <linux/irq.h>
drivers/spi/spi-mpc512x-psc.c +0 -1
index 5032141..56cead9 100644
@@ -16,7 +16,6 @@
 
 #include <linux/module.h>
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/errno.h>
 #include <linux/interrupt.h>
 #include <linux/of_address.h>
drivers/spi/spi-mpc52xx-psc.c +0 -1
index 00ba910..3d18d93 100644
@@ -12,7 +12,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/types.h>
 #include <linux/errno.h>
 #include <linux/interrupt.h>
drivers/spi/spi-mpc52xx.c +0 -1
index 7c675fe..f573c3c 100644
@@ -12,7 +12,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/errno.h>
 #include <linux/of_platform.h>
 #include <linux/interrupt.h>
drivers/spi/spi-mxs.c +0 -1
index 79e5aa2..17bb9a9 100644
@@ -29,7 +29,6 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/ioport.h>
 #include <linux/of.h>
 #include <linux/of_device.h>
drivers/spi/spi-nuc900.c +0 -1
index 5040630..8181c69 100644
@@ -9,7 +9,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/spinlock.h>
 #include <linux/workqueue.h>
 #include <linux/interrupt.h>
drivers/spi/spi-oc-tiny.c +0 -1
index f7c896e..022774e 100644
@@ -15,7 +15,6 @@
  * published by the Free Software Foundation.
  */
 
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/errno.h>
 #include <linux/module.h>
drivers/spi/spi-octeon.c +0 -1
index 67249a4..5665ae9 100644
@@ -11,7 +11,6 @@
 #include <linux/spi/spi.h>
 #include <linux/module.h>
 #include <linux/delay.h>
-#include <linux/init.h>
 #include <linux/io.h>
 #include <linux/of.h>
 
drivers/spi/spi-omap2-mcspi.c +0 -1
index a72127f..94f133c 100644
@@ -22,7 +22,6 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/module.h>
 #include <linux/device.h>
drivers/spi/spi-orion.c +0 -1
index 7f2121f..a362425 100644
@@ -9,7 +9,6 @@
  * published by the Free Software Foundation.
  */
 
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/delay.h>
 #include <linux/platform_device.h>
drivers/spi/spi-ppc4xx.c +0 -1
index 5ee5672..80b8408 100644
@@ -24,7 +24,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/sched.h>
 #include <linux/slab.h>
 #include <linux/errno.h>
drivers/spi/spi-pxa2xx-dma.c +0 -1
index 3c0b551..713af48 100644
@@ -9,7 +9,6 @@
  * published by the Free Software Foundation.
  */
 
-#include <linux/init.h>
 #include <linux/device.h>
 #include <linux/dma-mapping.h>
 #include <linux/dmaengine.h>
drivers/spi/spi-pxa2xx-pxadma.c +0 -1
index 2916efc..e8a26f2 100644
@@ -18,7 +18,6 @@
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/device.h>
 #include <linux/dma-mapping.h>
drivers/spi/spi-s3c24xx.c +0 -1
index 746424a..c20df45 100644
@@ -9,7 +9,6 @@
  *
 */
 
-#include <linux/init.h>
 #include <linux/spinlock.h>
 #include <linux/workqueue.h>
 #include <linux/interrupt.h>
drivers/spi/spi-sh-msiof.c +0 -1
index 81cc02f..3347406 100644
@@ -15,7 +15,6 @@
 #include <linux/delay.h>
 #include <linux/err.h>
 #include <linux/gpio.h>
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/io.h>
 #include <linux/kernel.h>
drivers/spi/spi-sh-sci.c +0 -1
index 38eb24d..85c2efd 100644
@@ -14,7 +14,6 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/spinlock.h>
 #include <linux/workqueue.h>
drivers/spi/spi-tegra114.c +0 -1
index 413c718..3f61bbf 100644
@@ -23,7 +23,6 @@
 #include <linux/dma-mapping.h>
 #include <linux/dmapool.h>
 #include <linux/err.h>
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/io.h>
 #include <linux/kernel.h>
drivers/spi/spi-tegra20-sflash.c +0 -1
index 0879497..18037ab 100644
@@ -22,7 +22,6 @@
 #include <linux/completion.h>
 #include <linux/delay.h>
 #include <linux/err.h>
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/io.h>
 #include <linux/kernel.h>
drivers/spi/spi-tegra20-slink.c +0 -1
index be3a069..8d62710 100644
@@ -23,7 +23,6 @@
 #include <linux/dma-mapping.h>
 #include <linux/dmapool.h>
 #include <linux/err.h>
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/io.h>
 #include <linux/kernel.h>
drivers/spi/spi-xcomm.c +0 -1
index 24c40b1..350a76b 100644
@@ -8,7 +8,6 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/delay.h>
 #include <linux/i2c.h>
drivers/spi/spi-xilinx.c +0 -1
index 6d4ce46..e6cd111 100644
@@ -14,7 +14,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/of.h>
 #include <linux/platform_device.h>
Signature · 6 lines
1.8.4.1

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
maintainer Applied
#68 lore raw

Re: [PATCH 44/73] spi: delete non-required instances of include <linux/init.h>

Quoted 4 lines · Paul Gortmaker

None of these files are actually using any __init type directives and hence don't need to include <linux/init.h>. Most are just a left over from __devinit and __cpuinit removal, or simply due to code getting copied from one driver to the next.

Applied, thanks.

#69 lore raw

PATCH 45/73 acpi: delete non-required instances of include <linux/init.h>

In reply to Paul Gortmaker

None of these files are actually using any __init type directives and hence don't need to include <linux/init.h>. Most are just a left over from __devinit and __cpuinit removal, or simply due to code getting copied from one driver to the next.

Cc Len Brown <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>
Cc Zhang Rui <[email protected]>
---
 drivers/acpi/apei/apei-base.c       | 1 -
 drivers/acpi/button.c               | 1 -
 drivers/acpi/fan.c                  | 1 -
 drivers/acpi/hed.c                  | 1 -
 drivers/acpi/pci_irq.c              | 1 -
 drivers/acpi/power.c                | 1 -
 drivers/acpi/processor_perflib.c    | 1 -
 drivers/acpi/processor_thermal.c    | 1 -
 drivers/acpi/processor_throttling.c | 1 -
 drivers/acpi/utils.c                | 1 -
 10 files changed, 10 deletions(-)
drivers/acpi/apei/apei-base.c +0 -1
index 8678dfe..a83e10f 100644
@@ -32,7 +32,6 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/acpi.h>
 #include <linux/slab.h>
 #include <linux/io.h>
drivers/acpi/button.c +0 -1
index 11c11f6..3e20dff 100644
@@ -25,7 +25,6 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/types.h>
 #include <linux/proc_fs.h>
 #include <linux/seq_file.h>
drivers/acpi/fan.c +0 -1
index 1fb6290..78b5cc7 100644
@@ -25,7 +25,6 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/types.h>
 #include <asm/uaccess.h>
 #include <linux/thermal.h>
drivers/acpi/hed.c +0 -1
index aafe3ca..215777c 100644
@@ -23,7 +23,6 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/acpi.h>
 #include <acpi/hed.h>
 
drivers/acpi/pci_irq.c +0 -1
index 52d45ea..7bd6a55 100644
@@ -30,7 +30,6 @@
 #include <linux/dmi.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/types.h>
 #include <linux/spinlock.h>
 #include <linux/pm.h>
drivers/acpi/power.c +0 -1
index ad7da68..9c909d4 100644
@@ -37,7 +37,6 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/types.h>
 #include <linux/slab.h>
 #include <linux/pm_runtime.h>
drivers/acpi/processor_perflib.c +0 -1
index ff90054..d2594ad 100644
@@ -28,7 +28,6 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/cpufreq.h>
 #include <linux/slab.h>
 #include <linux/acpi.h>
drivers/acpi/processor_thermal.c +0 -1
index e003663..661c9d2 100644
@@ -28,7 +28,6 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/cpufreq.h>
 #include <linux/acpi.h>
 #include <acpi/processor.h>
drivers/acpi/processor_throttling.c +0 -1
index 28baa05..08be363 100644
@@ -29,7 +29,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/slab.h>
-#include <linux/init.h>
 #include <linux/sched.h>
 #include <linux/cpufreq.h>
 #include <linux/acpi.h>
drivers/acpi/utils.c +0 -1
index 0347a37..492cf4f 100644
@@ -26,7 +26,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/slab.h>
-#include <linux/init.h>
 #include <linux/types.h>
 #include <linux/hardirq.h>
 #include <linux/acpi.h>
Signature · 1 line
1.8.4.1
Acked-by on v1 45/73
#70 lore raw

Re: [PATCH 45/73] acpi: delete non-required instances of include <linux/init.h>

Quoted 10 lines · Paul Gortmaker

None of these files are actually using any __init type directives and hence don't need to include <linux/init.h>. Most are just a left over from __devinit and __cpuinit removal, or simply due to code getting copied from one driver to the next.

Cc Len Brown <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>
Cc Zhang Rui <[email protected]>
Quoted 134 lines
---
 drivers/acpi/apei/apei-base.c       | 1 -
 drivers/acpi/button.c               | 1 -
 drivers/acpi/fan.c                  | 1 -
 drivers/acpi/hed.c                  | 1 -
 drivers/acpi/pci_irq.c              | 1 -
 drivers/acpi/power.c                | 1 -
 drivers/acpi/processor_perflib.c    | 1 -
 drivers/acpi/processor_thermal.c    | 1 -
 drivers/acpi/processor_throttling.c | 1 -
 drivers/acpi/utils.c                | 1 -
 10 files changed, 10 deletions(-)
drivers/acpi/apei/apei-base.c +0 -1
index 8678dfe..a83e10f 100644
@@ -32,7 +32,6 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/acpi.h>
 #include <linux/slab.h>
 #include <linux/io.h>
drivers/acpi/button.c +0 -1
index 11c11f6..3e20dff 100644
@@ -25,7 +25,6 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/types.h>
 #include <linux/proc_fs.h>
 #include <linux/seq_file.h>
drivers/acpi/fan.c +0 -1
index 1fb6290..78b5cc7 100644
@@ -25,7 +25,6 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/types.h>
 #include <asm/uaccess.h>
 #include <linux/thermal.h>
drivers/acpi/hed.c +0 -1
index aafe3ca..215777c 100644
@@ -23,7 +23,6 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/acpi.h>
 #include <acpi/hed.h>
 
drivers/acpi/pci_irq.c +0 -1
index 52d45ea..7bd6a55 100644
@@ -30,7 +30,6 @@
 #include <linux/dmi.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/types.h>
 #include <linux/spinlock.h>
 #include <linux/pm.h>
drivers/acpi/power.c +0 -1
index ad7da68..9c909d4 100644
@@ -37,7 +37,6 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/types.h>
 #include <linux/slab.h>
 #include <linux/pm_runtime.h>
drivers/acpi/processor_perflib.c +0 -1
index ff90054..d2594ad 100644
@@ -28,7 +28,6 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/cpufreq.h>
 #include <linux/slab.h>
 #include <linux/acpi.h>
drivers/acpi/processor_thermal.c +0 -1
index e003663..661c9d2 100644
@@ -28,7 +28,6 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/cpufreq.h>
 #include <linux/acpi.h>
 #include <acpi/processor.h>
drivers/acpi/processor_throttling.c +0 -1
index 28baa05..08be363 100644
@@ -29,7 +29,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/slab.h>
-#include <linux/init.h>
 #include <linux/sched.h>
 #include <linux/cpufreq.h>
 #include <linux/acpi.h>
drivers/acpi/utils.c +0 -1
index 0347a37..492cf4f 100644
@@ -26,7 +26,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/slab.h>
-#include <linux/init.h>
 #include <linux/types.h>
 #include <linux/hardirq.h>
 #include <linux/acpi.h>
Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
#71 lore raw

PATCH 46/73 drivers/power: delete non-required instances of include <linux/init.h>

In reply to Paul Gortmaker

None of these files are actually using any __init type directives and hence don't need to include <linux/init.h>. Most are just a left over from __devinit and __cpuinit removal, or simply due to code getting copied from one driver to the next.

Cc Anton Vorontsov <[email protected]>
Cc David Woodhouse <[email protected]>
---
 drivers/power/abx500_chargalg.c        | 1 -
 drivers/power/da9030_battery.c         | 1 -
 drivers/power/generic-adc-battery.c    | 1 -
 drivers/power/gpio-charger.c           | 1 -
 drivers/power/intel_mid_battery.c      | 1 -
 drivers/power/isp1704_charger.c        | 1 -
 drivers/power/max17040_battery.c       | 1 -
 drivers/power/max17042_battery.c       | 1 -
 drivers/power/pcf50633-charger.c       | 1 -
 drivers/power/reset/gpio-poweroff.c    | 1 -
 drivers/power/reset/restart-poweroff.c | 1 -
 drivers/power/s3c_adc_battery.c        | 1 -
 drivers/power/sbs-battery.c            | 1 -
 drivers/power/smb347-charger.c         | 1 -
 drivers/power/tps65090-charger.c       | 1 -
 drivers/power/wm97xx_battery.c         | 1 -
 16 files changed, 16 deletions(-)
drivers/power/abx500_chargalg.c +0 -1
index 6d27236..6f20748 100644
@@ -12,7 +12,6 @@
  *	Author: Imre Sunyi <[email protected]>
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/device.h>
 #include <linux/hrtimer.h>
drivers/power/da9030_battery.c +0 -1
index ae6c418..9fde83a 100644
@@ -11,7 +11,6 @@
 
 #include <linux/kernel.h>
 #include <linux/slab.h>
-#include <linux/init.h>
 #include <linux/types.h>
 #include <linux/device.h>
 #include <linux/workqueue.h>
drivers/power/generic-adc-battery.c +0 -1
index 59a1421..d37bb1a 100644
@@ -17,7 +17,6 @@
 #include <linux/timer.h>
 #include <linux/jiffies.h>
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/iio/consumer.h>
drivers/power/gpio-charger.c +0 -1
index a0024b2..13a42aa 100644
@@ -15,7 +15,6 @@
 
 #include <linux/device.h>
 #include <linux/gpio.h>
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
drivers/power/intel_mid_battery.c +0 -1
index 4520811..d470136 100644
@@ -23,7 +23,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/err.h>
 #include <linux/interrupt.h>
 #include <linux/workqueue.h>
drivers/power/isp1704_charger.c +0 -1
index 80edb7d..2c71520 100644
@@ -22,7 +22,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/err.h>
-#include <linux/init.h>
 #include <linux/types.h>
 #include <linux/device.h>
 #include <linux/sysfs.h>
drivers/power/max17040_battery.c +0 -1
index c7ff6d6..7761290 100644
@@ -11,7 +11,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/mutex.h>
 #include <linux/err.h>
drivers/power/max17042_battery.c +0 -1
index 66da691..3dfbf31 100644
@@ -22,7 +22,6 @@
  * This driver is based on max17040_battery.c
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/i2c.h>
drivers/power/pcf50633-charger.c +0 -1
index 771c4f0..fb23d05 100644
@@ -17,7 +17,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/slab.h>
-#include <linux/init.h>
 #include <linux/types.h>
 #include <linux/device.h>
 #include <linux/sysfs.h>
drivers/power/reset/gpio-poweroff.c +0 -1
index e290d48..492da85 100644
@@ -12,7 +12,6 @@
  *
  */
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/platform_device.h>
 #include <linux/gpio.h>
drivers/power/reset/restart-poweroff.c +0 -1
index 5758033..ff005fb 100644
@@ -11,7 +11,6 @@
  * published by the Free Software Foundation.
  */
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/of_platform.h>
 #include <linux/module.h>
drivers/power/s3c_adc_battery.c +0 -1
index 5948ce0..1039c12 100644
@@ -19,7 +19,6 @@
 #include <linux/jiffies.h>
 #include <linux/s3c_adc_battery.h>
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/module.h>
 
 #include <plat/adc.h>
drivers/power/sbs-battery.c +0 -1
index b5f2a76..d6e4708 100644
@@ -18,7 +18,6 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/err.h>
drivers/power/smb347-charger.c +0 -1
index acf84e8..4c48401 100644
@@ -15,7 +15,6 @@
 #include <linux/gpio.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/i2c.h>
 #include <linux/mutex.h>
drivers/power/tps65090-charger.c +0 -1
index 8fc9d6d..d03e740 100644
@@ -17,7 +17,6 @@
  */
 #include <linux/delay.h>
 #include <linux/err.h>
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
drivers/power/wm97xx_battery.c +0 -1
index 58f7348..15ab484 100644
@@ -13,7 +13,6 @@
  *
  */
 
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/platform_device.h>
Signature · 1 line
1.8.4.1
#72 lore raw

PATCH 47/73 drivers/media: delete non-required instances of include <linux/init.h>

In reply to Paul Gortmaker

None of these files are actually using any __init type directives and hence don't need to include <linux/init.h>. Most are just a left over from __devinit and __cpuinit removal, or simply due to code getting copied from one driver to the next.

---
 drivers/media/common/btcx-risc.c                        | 1 -
 drivers/media/common/cx2341x.c                          | 1 -
 drivers/media/common/siano/smsdvb-debugfs.c             | 1 -
 drivers/media/common/tveeprom.c                         | 1 -
 drivers/media/dvb-frontends/au8522_dig.c                | 1 -
 drivers/media/dvb-frontends/au8522_priv.h               | 1 -
 drivers/media/dvb-frontends/bcm3510.c                   | 1 -
 drivers/media/dvb-frontends/cx22700.c                   | 1 -
 drivers/media/dvb-frontends/cx22702.c                   | 1 -
 drivers/media/dvb-frontends/cx24110.c                   | 1 -
 drivers/media/dvb-frontends/cx24113.c                   | 1 -
 drivers/media/dvb-frontends/cx24116.c                   | 1 -
 drivers/media/dvb-frontends/cx24117.c                   | 1 -
 drivers/media/dvb-frontends/cx24123.c                   | 1 -
 drivers/media/dvb-frontends/dib3000mb.c                 | 1 -
 drivers/media/dvb-frontends/drxd_hard.c                 | 1 -
 drivers/media/dvb-frontends/drxk_hard.c                 | 1 -
 drivers/media/dvb-frontends/ds3000.c                    | 1 -
 drivers/media/dvb-frontends/dvb_dummy_fe.c              | 1 -
 drivers/media/dvb-frontends/isl6405.c                   | 1 -
 drivers/media/dvb-frontends/isl6421.c                   | 1 -
 drivers/media/dvb-frontends/isl6423.c                   | 1 -
 drivers/media/dvb-frontends/it913x-fe.c                 | 1 -
 drivers/media/dvb-frontends/l64781.c                    | 1 -
 drivers/media/dvb-frontends/lgdt330x.c                  | 1 -
 drivers/media/dvb-frontends/lgs8gl5.c                   | 1 -
 drivers/media/dvb-frontends/lnbp21.c                    | 1 -
 drivers/media/dvb-frontends/lnbp22.c                    | 1 -
 drivers/media/dvb-frontends/m88rs2000.c                 | 1 -
 drivers/media/dvb-frontends/mb86a16.c                   | 1 -
 drivers/media/dvb-frontends/mt312.c                     | 1 -
 drivers/media/dvb-frontends/mt352.c                     | 1 -
 drivers/media/dvb-frontends/nxt200x.c                   | 1 -
 drivers/media/dvb-frontends/nxt6000.c                   | 1 -
 drivers/media/dvb-frontends/or51132.c                   | 1 -
 drivers/media/dvb-frontends/s5h1409.c                   | 1 -
 drivers/media/dvb-frontends/s5h1411.c                   | 1 -
 drivers/media/dvb-frontends/s5h1420.c                   | 1 -
 drivers/media/dvb-frontends/s5h1432.c                   | 1 -
 drivers/media/dvb-frontends/si21xx.c                    | 1 -
 drivers/media/dvb-frontends/sp8870.c                    | 1 -
 drivers/media/dvb-frontends/sp887x.c                    | 1 -
 drivers/media/dvb-frontends/stb0899_drv.c               | 1 -
 drivers/media/dvb-frontends/stb6100.c                   | 1 -
 drivers/media/dvb-frontends/stv0288.c                   | 1 -
 drivers/media/dvb-frontends/stv0297.c                   | 1 -
 drivers/media/dvb-frontends/stv0299.c                   | 1 -
 drivers/media/dvb-frontends/stv090x.c                   | 1 -
 drivers/media/dvb-frontends/stv6110x.c                  | 1 -
 drivers/media/dvb-frontends/tda10021.c                  | 1 -
 drivers/media/dvb-frontends/tda10023.c                  | 1 -
 drivers/media/dvb-frontends/tda10048.c                  | 1 -
 drivers/media/dvb-frontends/tda1004x.c                  | 1 -
 drivers/media/dvb-frontends/tda10086.c                  | 1 -
 drivers/media/dvb-frontends/tda18271c2dd.c              | 1 -
 drivers/media/dvb-frontends/tda665x.c                   | 1 -
 drivers/media/dvb-frontends/tda8083.c                   | 1 -
 drivers/media/dvb-frontends/tda8261.c                   | 1 -
 drivers/media/dvb-frontends/ves1820.c                   | 1 -
 drivers/media/dvb-frontends/ves1x93.c                   | 1 -
 drivers/media/dvb-frontends/zl10039.c                   | 1 -
 drivers/media/dvb-frontends/zl10353.c                   | 1 -
 drivers/media/i2c/adv7180.c                             | 1 -
 drivers/media/i2c/adv7183.c                             | 1 -
 drivers/media/i2c/adv7343.c                             | 1 -
 drivers/media/i2c/adv7393.c                             | 1 -
 drivers/media/i2c/ak881x.c                              | 1 -
 drivers/media/i2c/ir-kbd-i2c.c                          | 1 -
 drivers/media/i2c/ks0127.c                              | 1 -
 drivers/media/i2c/ml86v7667.c                           | 1 -
 drivers/media/i2c/mt9m032.c                             | 1 -
 drivers/media/i2c/ov7640.c                              | 1 -
 drivers/media/i2c/ov7670.c                              | 1 -
 drivers/media/i2c/s5c73m3/s5c73m3-core.c                | 1 -
 drivers/media/i2c/s5c73m3/s5c73m3-ctrls.c               | 1 -
 drivers/media/i2c/s5c73m3/s5c73m3-spi.c                 | 1 -
 drivers/media/i2c/saa6588.c                             | 1 -
 drivers/media/i2c/saa6752hs.c                           | 1 -
 drivers/media/i2c/saa7110.c                             | 1 -
 drivers/media/i2c/saa7191.c                             | 1 -
 drivers/media/i2c/soc_camera/mt9t112.c                  | 1 -
 drivers/media/i2c/soc_camera/ov2640.c                   | 1 -
 drivers/media/i2c/soc_camera/ov772x.c                   | 1 -
 drivers/media/i2c/soc_camera/ov9640.c                   | 1 -
 drivers/media/i2c/soc_camera/ov9740.c                   | 1 -
 drivers/media/i2c/soc_camera/tw9910.c                   | 1 -
 drivers/media/i2c/sony-btf-mpx.c                        | 1 -
 drivers/media/i2c/tda7432.c                             | 1 -
 drivers/media/i2c/tvaudio.c                             | 1 -
 drivers/media/i2c/tw2804.c                              | 1 -
 drivers/media/i2c/tw9903.c                              | 1 -
 drivers/media/i2c/tw9906.c                              | 1 -
 drivers/media/i2c/uda1342.c                             | 1 -
 drivers/media/i2c/vpx3220.c                             | 1 -
 drivers/media/i2c/vs6624.c                              | 1 -
 drivers/media/pci/bt8xx/bttv-gpio.c                     | 1 -
 drivers/media/pci/bt8xx/bttv-i2c.c                      | 1 -
 drivers/media/pci/bt8xx/bttv-if.c                       | 1 -
 drivers/media/pci/bt8xx/bttv-input.c                    | 1 -
 drivers/media/pci/bt8xx/bttv-risc.c                     | 1 -
 drivers/media/pci/bt8xx/dst.c                           | 1 -
 drivers/media/pci/bt8xx/dst_ca.c                        | 1 -
 drivers/media/pci/cx18/cx18-alsa-pcm.c                  | 1 -
 drivers/media/pci/cx18/cx18-driver.h                    | 1 -
 drivers/media/pci/cx23885/cx23885-417.c                 | 1 -
 drivers/media/pci/cx23885/cx23885-alsa.c                | 1 -
 drivers/media/pci/cx23885/cx23885-cards.c               | 1 -
 drivers/media/pci/cx23885/cx23885-dvb.c                 | 1 -
 drivers/media/pci/cx23885/cx23885-i2c.c                 | 1 -
 drivers/media/pci/cx23885/cx23885-vbi.c                 | 1 -
 drivers/media/pci/cx23885/cx23885-video.c               | 1 -
 drivers/media/pci/cx25821/cx25821-alsa.c                | 1 -
 drivers/media/pci/cx25821/cx25821-audio-upstream.c      | 1 -
 drivers/media/pci/cx25821/cx25821-cards.c               | 1 -
 drivers/media/pci/cx25821/cx25821-video-upstream.c      | 1 -
 drivers/media/pci/cx25821/cx25821-video.h               | 1 -
 drivers/media/pci/cx88/cx88-alsa.c                      | 1 -
 drivers/media/pci/cx88/cx88-cards.c                     | 1 -
 drivers/media/pci/cx88/cx88-core.c                      | 1 -
 drivers/media/pci/cx88/cx88-i2c.c                       | 1 -
 drivers/media/pci/cx88/cx88-input.c                     | 1 -
 drivers/media/pci/cx88/cx88-mpeg.c                      | 1 -
 drivers/media/pci/cx88/cx88-tvaudio.c                   | 1 -
 drivers/media/pci/cx88/cx88-vbi.c                       | 1 -
 drivers/media/pci/cx88/cx88-video.c                     | 1 -
 drivers/media/pci/cx88/cx88-vp3054-i2c.c                | 1 -
 drivers/media/pci/dm1105/dm1105.c                       | 1 -
 drivers/media/pci/ivtv/ivtv-alsa-pcm.c                  | 1 -
 drivers/media/pci/ivtv/ivtv-driver.h                    | 1 -
 drivers/media/pci/mantis/mantis_pci.c                   | 1 -
 drivers/media/pci/ngene/ngene-core.c                    | 1 -
 drivers/media/pci/ngene/ngene-dvb.c                     | 1 -
 drivers/media/pci/ngene/ngene-i2c.c                     | 1 -
 drivers/media/pci/pluto2/pluto2.c                       | 1 -
 drivers/media/pci/saa7134/saa7134-alsa.c                | 1 -
 drivers/media/pci/saa7134/saa7134-cards.c               | 1 -
 drivers/media/pci/saa7134/saa7134-i2c.c                 | 1 -
 drivers/media/pci/saa7134/saa7134-input.c               | 1 -
 drivers/media/pci/saa7134/saa7134-ts.c                  | 1 -
 drivers/media/pci/saa7134/saa7134-tvaudio.c             | 1 -
 drivers/media/pci/saa7134/saa7134-vbi.c                 | 1 -
 drivers/media/pci/saa7134/saa7134-video.c               | 1 -
 drivers/media/pci/saa7164/saa7164-cards.c               | 1 -
 drivers/media/pci/saa7164/saa7164-i2c.c                 | 1 -
 drivers/media/pci/ttpci/av7110_ir.c                     | 1 -
 drivers/media/pci/ttpci/ttpci-eeprom.c                  | 1 -
 drivers/media/pci/zoran/zoran_driver.c                  | 1 -
 drivers/media/platform/blackfin/bfin_capture.c          | 1 -
 drivers/media/platform/davinci/vpbe.c                   | 1 -
 drivers/media/platform/davinci/vpbe_display.c           | 1 -
 drivers/media/platform/davinci/vpbe_venc.c              | 1 -
 drivers/media/platform/davinci/vpfe_capture.c           | 1 -
 drivers/media/platform/fsl-viu.c                        | 1 -
 drivers/media/platform/indycam.c                        | 1 -
 drivers/media/platform/sh_vou.c                         | 1 -
 drivers/media/platform/soc_camera/atmel-isi.c           | 1 -
 drivers/media/platform/soc_camera/mx2_camera.c          | 1 -
 drivers/media/platform/soc_camera/mx3_camera.c          | 1 -
 drivers/media/platform/soc_camera/pxa_camera.c          | 1 -
 drivers/media/platform/soc_camera/soc_camera.c          | 1 -
 drivers/media/platform/soc_camera/soc_camera_platform.c | 1 -
 drivers/media/radio/dsbr100.c                           | 1 -
 drivers/media/radio/radio-isa.c                         | 1 -
 drivers/media/radio/radio-ma901.c                       | 1 -
 drivers/media/radio/radio-maxiradio.c                   | 1 -
 drivers/media/radio/radio-mr800.c                       | 1 -
 drivers/media/radio/radio-raremono.c                    | 1 -
 drivers/media/radio/radio-shark.c                       | 1 -
 drivers/media/radio/radio-shark2.c                      | 1 -
 drivers/media/radio/radio-tea5764.c                     | 1 -
 drivers/media/radio/radio-tea5777.c                     | 1 -
 drivers/media/radio/saa7706h.c                          | 1 -
 drivers/media/radio/si470x/radio-si470x.h               | 1 -
 drivers/media/radio/si4713/radio-platform-si4713.c      | 1 -
 drivers/media/radio/si4713/radio-usb-si4713.c           | 1 -
 drivers/media/radio/tef6862.c                           | 1 -
 drivers/media/rc/ati_remote.c                           | 1 -
 drivers/media/rc/gpio-ir-recv.c                         | 1 -
 drivers/media/rc/imon.c                                 | 1 -
 drivers/media/tuners/mt2063.c                           | 1 -
 drivers/media/tuners/mxl5005s.c                         | 1 -
 drivers/media/tuners/tda9887.c                          | 1 -
 drivers/media/usb/au0828/au0828-dvb.c                   | 1 -
 drivers/media/usb/au0828/au0828-i2c.c                   | 1 -
 drivers/media/usb/au0828/au0828-vbi.c                   | 1 -
 drivers/media/usb/au0828/au0828-video.c                 | 1 -
 drivers/media/usb/cx231xx/cx231xx-417.c                 | 1 -
 drivers/media/usb/cx231xx/cx231xx-avcore.c              | 1 -
 drivers/media/usb/cx231xx/cx231xx-cards.c               | 1 -
 drivers/media/usb/cx231xx/cx231xx-core.c                | 1 -
 drivers/media/usb/cx231xx/cx231xx-pcb-cfg.h             | 1 -
 drivers/media/usb/cx231xx/cx231xx-vbi.c                 | 1 -
 drivers/media/usb/cx231xx/cx231xx-video.c               | 1 -
 drivers/media/usb/dvb-usb/friio-fe.c                    | 1 -
 drivers/media/usb/em28xx/em28xx-cards.c                 | 1 -
 drivers/media/usb/em28xx/em28xx-core.c                  | 1 -
 drivers/media/usb/em28xx/em28xx-vbi.c                   | 1 -
 drivers/media/usb/em28xx/em28xx-video.c                 | 1 -
 drivers/media/usb/hdpvr/hdpvr-control.c                 | 1 -
 drivers/media/usb/hdpvr/hdpvr-core.c                    | 1 -
 drivers/media/usb/hdpvr/hdpvr-video.c                   | 1 -
 drivers/media/usb/pwc/pwc-if.c                          | 1 -
 drivers/media/usb/pwc/pwc-v4l.c                         | 1 -
 drivers/media/usb/siano/smsusb.c                        | 1 -
 drivers/media/usb/stk1160/stk1160-core.c                | 1 -
 drivers/media/usb/stkwebcam/stk-webcam.c                | 1 -
 drivers/media/usb/tlg2300/pd-alsa.c                     | 1 -
 drivers/media/usb/tlg2300/pd-radio.c                    | 1 -
 drivers/media/usb/tm6000/tm6000-cards.c                 | 1 -
 drivers/media/usb/tm6000/tm6000-input.c                 | 1 -
 drivers/media/usb/tm6000/tm6000-video.c                 | 1 -
 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c       | 1 -
 drivers/media/usb/ttusb-dec/ttusb_dec.c                 | 1 -
 drivers/media/usb/usbtv/usbtv.c                         | 1 -
 drivers/media/usb/usbvision/usbvision-core.c            | 1 -
 drivers/media/usb/usbvision/usbvision-i2c.c             | 1 -
 drivers/media/usb/zr364xx/zr364xx.c                     | 1 -
 drivers/media/v4l2-core/tuner-core.c                    | 1 -
 drivers/media/v4l2-core/videobuf-core.c                 | 1 -
 drivers/media/v4l2-core/videobuf-dma-contig.c           | 1 -
 drivers/media/v4l2-core/videobuf-dma-sg.c               | 1 -
 drivers/media/v4l2-core/videobuf-dvb.c                  | 1 -
 drivers/media/v4l2-core/videobuf-vmalloc.c              | 1 -
 223 files changed, 223 deletions(-)
drivers/media/common/btcx-risc.c +0 -1
index ac1b268..c39610e 100644
@@ -23,7 +23,6 @@
 */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/pci.h>
 #include <linux/interrupt.h>
 #include <linux/videodev2.h>
drivers/media/common/cx2341x.c +0 -1
index 103ef6b..7639f5a 100644
@@ -22,7 +22,6 @@
 #include <linux/module.h>
 #include <linux/errno.h>
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/types.h>
 #include <linux/videodev2.h>
 
drivers/media/common/siano/smsdvb-debugfs.c +0 -1
index 0bb4430..88fc961 100644
@@ -21,7 +21,6 @@
 
 #include <linux/module.h>
 #include <linux/slab.h>
-#include <linux/init.h>
 #include <linux/debugfs.h>
 #include <linux/spinlock.h>
 #include <linux/usb.h>
drivers/media/common/tveeprom.c +0 -1
index c7dace6..7e94981 100644
@@ -32,7 +32,6 @@
 #include <linux/module.h>
 #include <linux/errno.h>
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/types.h>
 #include <linux/videodev2.h>
 #include <linux/i2c.h>
drivers/media/dvb-frontends/au8522_dig.c +0 -1
index a68974f..9b9c71c 100644
@@ -20,7 +20,6 @@
 */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/string.h>
 #include <linux/delay.h>
drivers/media/dvb-frontends/au8522_priv.h +0 -1
index aa0f16d..190d447 100644
@@ -22,7 +22,6 @@
 */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/string.h>
 #include <linux/slab.h>
drivers/media/dvb-frontends/bcm3510.c +0 -1
index 39a29dd..1ebb46b 100644
@@ -31,7 +31,6 @@
  * Ave, Cambridge, MA 02139, USA.
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/device.h>
 #include <linux/firmware.h>
drivers/media/dvb-frontends/cx22700.c +0 -1
index 3d399d9..1f4031a 100644
@@ -21,7 +21,6 @@
 */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/string.h>
 #include <linux/slab.h>
drivers/media/dvb-frontends/cx22702.c +0 -1
index edc8eaf..7d6ce32 100644
@@ -26,7 +26,6 @@
 */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/string.h>
 #include <linux/slab.h>
drivers/media/dvb-frontends/cx24110.c +0 -1
index 95b981c..72f898e 100644
@@ -25,7 +25,6 @@
 #include <linux/slab.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 
 #include "dvb_frontend.h"
 #include "cx24110.h"
drivers/media/dvb-frontends/cx24113.c +0 -1
index 3883c3b..b7190a3 100644
@@ -24,7 +24,6 @@
 #include <linux/slab.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 
 #include "dvb_frontend.h"
 #include "cx24113.h"
drivers/media/dvb-frontends/cx24116.c +0 -1
index 2916d7c..4c4c3a0 100644
@@ -38,7 +38,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
-#include <linux/init.h>
 #include <linux/firmware.h>
 
 #include "dvb_frontend.h"
drivers/media/dvb-frontends/cx24117.c +0 -1
index 68f768a..c61e113 100644
@@ -28,7 +28,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
-#include <linux/init.h>
 #include <linux/firmware.h>
 
 #include "tuner-i2c.h"
drivers/media/dvb-frontends/cx24123.c +0 -1
index 72fb583..9c56f4a 100644
@@ -25,7 +25,6 @@
 #include <linux/slab.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <asm/div64.h>
 
 #include "dvb_frontend.h"
drivers/media/dvb-frontends/dib3000mb.c +0 -1
index af91e0c..1b0eefc 100644
@@ -23,7 +23,6 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/string.h>
 #include <linux/slab.h>
drivers/media/dvb-frontends/drxd_hard.c +0 -1
index 959ae36..d400579 100644
@@ -24,7 +24,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/firmware.h>
 #include <linux/i2c.h>
drivers/media/dvb-frontends/drxk_hard.c +0 -1
index bf29a3f..5fc7ad1 100644
@@ -26,7 +26,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/firmware.h>
 #include <linux/i2c.h>
drivers/media/dvb-frontends/ds3000.c +0 -1
index 1e344b0..97891f3 100644
@@ -23,7 +23,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
-#include <linux/init.h>
 #include <linux/firmware.h>
 
 #include "dvb_frontend.h"
drivers/media/dvb-frontends/dvb_dummy_fe.c +0 -1
index d5acc30..14cc1fe 100644
@@ -20,7 +20,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/string.h>
 #include <linux/slab.h>
 
drivers/media/dvb-frontends/isl6405.c +0 -1
index 0c642a5..21c365c 100644
@@ -26,7 +26,6 @@
  */
 #include <linux/delay.h>
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/string.h>
drivers/media/dvb-frontends/isl6421.c +0 -1
index c77002f..0e3892f 100644
@@ -26,7 +26,6 @@
  */
 #include <linux/delay.h>
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/string.h>
drivers/media/dvb-frontends/isl6423.c +0 -1
index dca5beb..abe1f40 100644
@@ -20,7 +20,6 @@
 
 #include <linux/delay.h>
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/string.h>
drivers/media/dvb-frontends/it913x-fe.c +0 -1
index 6e1c6eb..3a7724f 100644
@@ -23,7 +23,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/types.h>
 
drivers/media/dvb-frontends/l64781.c +0 -1
index ddf866c..ecbcc30 100644
@@ -20,7 +20,6 @@
 
 */
 
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/string.h>
drivers/media/dvb-frontends/lgdt330x.c +0 -1
index e046622..987275b 100644
@@ -35,7 +35,6 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/string.h>
 #include <linux/slab.h>
drivers/media/dvb-frontends/lgs8gl5.c +0 -1
index 416cce3..72152bd 100644
@@ -21,7 +21,6 @@
 */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/string.h>
 #include <linux/slab.h>
drivers/media/dvb-frontends/lnbp21.c +0 -1
index f3ba7b5..e4ebb83 100644
@@ -26,7 +26,6 @@
  */
 #include <linux/delay.h>
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/string.h>
drivers/media/dvb-frontends/lnbp22.c +0 -1
index c463da7..e3602f8 100644
@@ -26,7 +26,6 @@
  */
 #include <linux/delay.h>
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
drivers/media/dvb-frontends/m88rs2000.c +0 -1
index b235146..4a2893a 100644
@@ -22,7 +22,6 @@
 	Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
 */
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/device.h>
 #include <linux/jiffies.h>
drivers/media/dvb-frontends/mb86a16.c +0 -1
index 9ae40ab..d02662a 100644
@@ -18,7 +18,6 @@
 	Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
drivers/media/dvb-frontends/mt312.c +0 -1
index a74ac0d..34d1410 100644
@@ -26,7 +26,6 @@
 
 #include <linux/delay.h>
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/string.h>
drivers/media/dvb-frontends/mt352.c +0 -1
index 2c3b50e..baf231c 100644
@@ -32,7 +32,6 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/string.h>
 #include <linux/slab.h>
drivers/media/dvb-frontends/nxt200x.c +0 -1
index 4bf0575..c63b03a 100644
@@ -47,7 +47,6 @@
 #define CRC_CCIT_MASK 0x1021
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/string.h>
drivers/media/dvb-frontends/nxt6000.c +0 -1
index 90ae6c7..0cc0bc6 100644
@@ -19,7 +19,6 @@
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/string.h>
drivers/media/dvb-frontends/or51132.c +0 -1
index 5ef9218..236fa19 100644
@@ -36,7 +36,6 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/string.h>
 #include <linux/slab.h>
drivers/media/dvb-frontends/s5h1409.c +0 -1
index f71b062..4ade31b 100644
@@ -20,7 +20,6 @@
 */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/string.h>
 #include <linux/slab.h>
drivers/media/dvb-frontends/s5h1411.c +0 -1
index 6cc4b7a..3839886 100644
@@ -20,7 +20,6 @@
 */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/string.h>
 #include <linux/slab.h>
drivers/media/dvb-frontends/s5h1420.c +0 -1
index 93eeaf7..7814c13 100644
@@ -24,7 +24,6 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/string.h>
 #include <linux/slab.h>
 #include <linux/delay.h>
drivers/media/dvb-frontends/s5h1432.c +0 -1
index 6ec16a2..f3135b8 100644
@@ -19,7 +19,6 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/string.h>
 #include <linux/slab.h>
drivers/media/dvb-frontends/si21xx.c +0 -1
index 73b47cc..b21cb00 100644
@@ -8,7 +8,6 @@
 *	(at your option) any later version.
 *
 */
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/string.h>
drivers/media/dvb-frontends/sp8870.c +0 -1
index 2aa8ef7..f5fc713 100644
@@ -27,7 +27,6 @@
  */
 #define SP8870_DEFAULT_FIRMWARE "dvb-fe-sp8870.fw"
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/device.h>
 #include <linux/firmware.h>
drivers/media/dvb-frontends/sp887x.c +0 -1
index 1bb81b5..f326955 100644
@@ -10,7 +10,6 @@
  */
 #define SP887X_DEFAULT_FIRMWARE "dvb-fe-sp887x.fw"
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/device.h>
 #include <linux/firmware.h>
drivers/media/dvb-frontends/stb0899_drv.c +0 -1
index 07cd5ea..7fabfbd 100644
@@ -19,7 +19,6 @@
 	Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/slab.h>
drivers/media/dvb-frontends/stb6100.c +0 -1
index cea175d..4265e40 100644
@@ -19,7 +19,6 @@
 	Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/slab.h>
drivers/media/dvb-frontends/stv0288.c +0 -1
index 632b251..8731001 100644
@@ -25,7 +25,6 @@
 
 */
 
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/string.h>
drivers/media/dvb-frontends/stv0297.c +0 -1
index d40f226..18903e5 100644
@@ -19,7 +19,6 @@
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/string.h>
drivers/media/dvb-frontends/stv0299.c +0 -1
index b57ecf4..baccefd 100644
@@ -42,7 +42,6 @@
 
 */
 
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/string.h>
drivers/media/dvb-frontends/stv090x.c +0 -1
index 23e872f..9160cd1 100644
@@ -19,7 +19,6 @@
 	Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/string.h>
drivers/media/dvb-frontends/stv6110x.c +0 -1
index e66154e..9e1078e 100644
@@ -20,7 +20,6 @@
 	Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/slab.h>
drivers/media/dvb-frontends/tda10021.c +0 -1
index 1bff7f4..3558a54 100644
@@ -23,7 +23,6 @@
 
 #include <linux/delay.h>
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/string.h>
drivers/media/dvb-frontends/tda10023.c +0 -1
index ca1e0d5..f8193a5 100644
@@ -27,7 +27,6 @@
 
 #include <linux/delay.h>
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/string.h>
drivers/media/dvb-frontends/tda10048.c +0 -1
index 71fb632..80adcb3 100644
@@ -20,7 +20,6 @@
 */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/string.h>
 #include <linux/slab.h>
drivers/media/dvb-frontends/tda1004x.c +0 -1
index a2631be..d99a5dd 100644
@@ -29,7 +29,6 @@
 #define TDA10045_DEFAULT_FIRMWARE "dvb-fe-tda10045.fw"
 #define TDA10046_DEFAULT_FIRMWARE "dvb-fe-tda10046.fw"
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/device.h>
 #include <linux/jiffies.h>
drivers/media/dvb-frontends/tda10086.c +0 -1
index fcfe2e0..5d8ee20 100644
@@ -20,7 +20,6 @@
 
    */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/device.h>
 #include <linux/jiffies.h>
drivers/media/dvb-frontends/tda18271c2dd.c +0 -1
index 2c54586..2653c06 100644
@@ -25,7 +25,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/firmware.h>
 #include <linux/i2c.h>
drivers/media/dvb-frontends/tda665x.c +0 -1
index 63cc123..bf9f94b 100644
@@ -17,7 +17,6 @@
 	Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/slab.h>
drivers/media/dvb-frontends/tda8083.c +0 -1
index 69e62f4..c5c1f59 100644
@@ -24,7 +24,6 @@
 
 */
 
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/string.h>
drivers/media/dvb-frontends/tda8261.c +0 -1
index 19c4888..78ee1df 100644
@@ -18,7 +18,6 @@
 */
 
 
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/slab.h>
drivers/media/dvb-frontends/ves1820.c +0 -1
index bb42b56..53090a5 100644
@@ -20,7 +20,6 @@
 
 #include <linux/delay.h>
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/string.h>
drivers/media/dvb-frontends/ves1x93.c +0 -1
index 9c17eac..0cbaf19 100644
@@ -25,7 +25,6 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/string.h>
 #include <linux/slab.h>
 #include <linux/delay.h>
drivers/media/dvb-frontends/zl10039.c +0 -1
index 91b6b2e..575ac33 100644
@@ -20,7 +20,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/string.h>
 #include <linux/slab.h>
 #include <linux/dvb/frontend.h>
drivers/media/dvb-frontends/zl10353.c +0 -1
index 82946cd..92cc0c3 100644
@@ -21,7 +21,6 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/string.h>
 #include <linux/slab.h>
drivers/media/i2c/adv7180.c +0 -1
index d7d99f1..45db360 100644
@@ -19,7 +19,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/errno.h>
 #include <linux/kernel.h>
 #include <linux/interrupt.h>
drivers/media/i2c/adv7183.c +0 -1
index d45e0e3..c319584 100644
@@ -21,7 +21,6 @@
 #include <linux/errno.h>
 #include <linux/gpio.h>
 #include <linux/i2c.h>
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/types.h>
drivers/media/i2c/adv7343.c +0 -1
index d4e15a6..a3e207e 100644
@@ -16,7 +16,6 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/ctype.h>
 #include <linux/slab.h>
 #include <linux/i2c.h>
drivers/media/i2c/adv7393.c +0 -1
index 558f191..a519aa5 100644
@@ -21,7 +21,6 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/ctype.h>
 #include <linux/slab.h>
 #include <linux/i2c.h>
drivers/media/i2c/ak881x.c +0 -1
index c14e667..b8f395e 100644
@@ -9,7 +9,6 @@
  */
 
 #include <linux/i2c.h>
-#include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/slab.h>
 #include <linux/videodev2.h>
drivers/media/i2c/ir-kbd-i2c.c +0 -1
index 99ee456..f74e26b 100644
@@ -36,7 +36,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
 #include <linux/timer.h>
drivers/media/i2c/ks0127.c +0 -1
index c3e94ae..830c84f 100644
@@ -33,7 +33,6 @@
  * V1.1 Gerard v.d. Horst  Added some debugoutput, reset the video-standard
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
drivers/media/i2c/ml86v7667.c +0 -1
index a9110d8..5775a6e 100644
@@ -11,7 +11,6 @@
  * option) any later version.
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/i2c.h>
 #include <linux/slab.h>
drivers/media/i2c/mt9m032.c +0 -1
index 85ec3ba..d20568b 100644
@@ -22,7 +22,6 @@
 
 #include <linux/delay.h>
 #include <linux/i2c.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/math64.h>
 #include <linux/module.h>
drivers/media/i2c/ov7640.c +0 -1
index faa64ba..0171198 100644
@@ -15,7 +15,6 @@
  * Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/i2c.h>
 #include <linux/videodev2.h>
drivers/media/i2c/ov7670.c +0 -1
index e8a1ce2..8e45ba2 100644
@@ -10,7 +10,6 @@
  * This file may be distributed under the terms of the GNU General
  * Public License, version 2.
  */
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/i2c.h>
drivers/media/i2c/s5c73m3/s5c73m3-core.c +0 -1
index e7f555c..56a979f 100644
@@ -20,7 +20,6 @@
 #include <linux/firmware.h>
 #include <linux/gpio.h>
 #include <linux/i2c.h>
-#include <linux/init.h>
 #include <linux/media.h>
 #include <linux/module.h>
 #include <linux/regulator/consumer.h>
drivers/media/i2c/s5c73m3/s5c73m3-ctrls.c +0 -1
index 8001cde..e6a23a1 100644
@@ -20,7 +20,6 @@
 #include <linux/firmware.h>
 #include <linux/gpio.h>
 #include <linux/i2c.h>
-#include <linux/init.h>
 #include <linux/media.h>
 #include <linux/module.h>
 #include <linux/regulator/consumer.h>
drivers/media/i2c/s5c73m3/s5c73m3-spi.c +0 -1
index 8079e26..09b3890 100644
@@ -17,7 +17,6 @@
 
 #include <linux/sizes.h>
 #include <linux/delay.h>
-#include <linux/init.h>
 #include <linux/media.h>
 #include <linux/module.h>
 #include <linux/slab.h>
drivers/media/i2c/saa6588.c +0 -1
index 2960b5a..18c42ca 100644
@@ -24,7 +24,6 @@
 #include <linux/i2c.h>
 #include <linux/types.h>
 #include <linux/videodev2.h>
-#include <linux/init.h>
 #include <linux/errno.h>
 #include <linux/slab.h>
 #include <linux/poll.h>
drivers/media/i2c/saa6752hs.c +0 -1
index 8272c0b..234ea56 100644
@@ -33,7 +33,6 @@
 #include <linux/i2c.h>
 #include <linux/types.h>
 #include <linux/videodev2.h>
-#include <linux/init.h>
 #include <linux/crc32.h>
 #include <media/v4l2-device.h>
 #include <media/v4l2-ctrls.h>
drivers/media/i2c/saa7110.c +0 -1
index ac43e92..88d6cb9 100644
@@ -26,7 +26,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/types.h>
 #include <linux/delay.h>
 #include <linux/slab.h>
drivers/media/i2c/saa7191.c +0 -1
index 606a4ba..c129152 100644
@@ -12,7 +12,6 @@
 #include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/fs.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/major.h>
 #include <linux/module.h>
drivers/media/i2c/soc_camera/mt9t112.c +0 -1
index 46f431a..00e014d 100644
@@ -19,7 +19,6 @@
 
 #include <linux/delay.h>
 #include <linux/i2c.h>
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/v4l2-mediabus.h>
drivers/media/i2c/soc_camera/ov2640.c +0 -1
index 6c6b1c3..5f2210b 100644
@@ -13,7 +13,6 @@
  * published by the Free Software Foundation.
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/i2c.h>
 #include <linux/slab.h>
drivers/media/i2c/soc_camera/ov772x.c +0 -1
index 7f2b3c8..7bcbaac 100644
@@ -15,7 +15,6 @@
  * published by the Free Software Foundation.
  */
 
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/i2c.h>
drivers/media/i2c/soc_camera/ov9640.c +0 -1
index bc74224..28aac74 100644
@@ -19,7 +19,6 @@
  * published by the Free Software Foundation.
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/i2c.h>
 #include <linux/slab.h>
drivers/media/i2c/soc_camera/ov9740.c +0 -1
index ea76863..3dbd1ba 100644
@@ -10,7 +10,6 @@
  * published by the Free Software Foundation.
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/i2c.h>
 #include <linux/slab.h>
drivers/media/i2c/soc_camera/tw9910.c +0 -1
index ab54628..f35882b 100644
@@ -16,7 +16,6 @@
  * published by the Free Software Foundation.
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/i2c.h>
 #include <linux/slab.h>
drivers/media/i2c/sony-btf-mpx.c +0 -1
index 32d8232..c2eede1 100644
@@ -16,7 +16,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/i2c.h>
 #include <linux/videodev2.h>
 #include <media/tuner.h>
drivers/media/i2c/tda7432.c +0 -1
index 72af644..ae5749d 100644
@@ -23,7 +23,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/string.h>
 #include <linux/timer.h>
drivers/media/i2c/tvaudio.c +0 -1
index d76c53a8..b17b484 100644
@@ -32,7 +32,6 @@
 #include <linux/slab.h>
 #include <linux/videodev2.h>
 #include <linux/i2c.h>
-#include <linux/init.h>
 #include <linux/kthread.h>
 #include <linux/freezer.h>
 
drivers/media/i2c/tw2804.c +0 -1
index f58607d..840067b 100644
@@ -16,7 +16,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/i2c.h>
 #include <linux/videodev2.h>
 #include <linux/ioctl.h>
drivers/media/i2c/tw9903.c +0 -1
index 285b759..8dde4c7 100644
@@ -16,7 +16,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/i2c.h>
 #include <linux/videodev2.h>
 #include <linux/ioctl.h>
drivers/media/i2c/tw9906.c +0 -1
index f6bef25..5ec7a8d 100644
@@ -16,7 +16,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/i2c.h>
 #include <linux/videodev2.h>
 #include <linux/ioctl.h>
drivers/media/i2c/uda1342.c +0 -1
index 081786d..2c20ac22 100644
@@ -16,7 +16,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/i2c.h>
 #include <linux/videodev2.h>
 #include <media/v4l2-device.h>
drivers/media/i2c/vpx3220.c +0 -1
index ece90df..32ceaf4 100644
@@ -19,7 +19,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/types.h>
 #include <linux/slab.h>
drivers/media/i2c/vs6624.c +0 -1
index 23f4f65..f8a80db 100644
@@ -21,7 +21,6 @@
 #include <linux/errno.h>
 #include <linux/gpio.h>
 #include <linux/i2c.h>
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/types.h>
drivers/media/pci/bt8xx/bttv-gpio.c +0 -1
index 922e823..2cc95b1 100644
@@ -29,7 +29,6 @@
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/device.h>
 #include <linux/slab.h>
drivers/media/pci/bt8xx/bttv-i2c.c +0 -1
index d43911d..2d5c451 100644
@@ -30,7 +30,6 @@
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 
 #include "bttvp.h"
drivers/media/pci/bt8xx/bttv-if.c +0 -1
index a6a540d..075eb78 100644
@@ -27,7 +27,6 @@
 */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <asm/io.h>
 
drivers/media/pci/bt8xx/bttv-input.c +0 -1
index f368213..1f17971 100644
@@ -21,7 +21,6 @@
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/interrupt.h>
 #include <linux/input.h>
drivers/media/pci/bt8xx/bttv-risc.c +0 -1
index 82cc47d..bcea329 100644
@@ -27,7 +27,6 @@
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/pci.h>
 #include <linux/vmalloc.h>
drivers/media/pci/bt8xx/dst.c +0 -1
index 430b3eb..bbc901c 100644
@@ -20,7 +20,6 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/string.h>
 #include <linux/slab.h>
 #include <linux/vmalloc.h>
drivers/media/pci/bt8xx/dst_ca.c +0 -1
index 0e788fc..4e36cf6 100644
@@ -21,7 +21,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/slab.h>
-#include <linux/init.h>
 #include <linux/mutex.h>
 #include <linux/string.h>
 #include <linux/dvb/ca.h>
drivers/media/pci/cx18/cx18-alsa-pcm.c +0 -1
index 180077c..e65616d 100644
@@ -23,7 +23,6 @@
  *  02111-1307  USA
  */
 
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/vmalloc.h>
 
drivers/media/pci/cx18/cx18-driver.h +0 -1
index 57f4688..57ef0d8 100644
@@ -27,7 +27,6 @@
 
 #include <linux/module.h>
 #include <linux/moduleparam.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/sched.h>
 #include <linux/fs.h>
drivers/media/pci/cx23885/cx23885-417.c +0 -1
index 95666ee..47313cf 100644
@@ -26,7 +26,6 @@
 
 #include <linux/module.h>
 #include <linux/moduleparam.h>
-#include <linux/init.h>
 #include <linux/fs.h>
 #include <linux/delay.h>
 #include <linux/device.h>
drivers/media/pci/cx23885/cx23885-alsa.c +0 -1
index c6c9bd5..771311a 100644
@@ -22,7 +22,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/device.h>
 #include <linux/interrupt.h>
 #include <linux/vmalloc.h>
drivers/media/pci/cx23885/cx23885-cards.c +0 -1
index 79f20c8..0a2cd9f 100644
@@ -19,7 +19,6 @@
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/pci.h>
 #include <linux/delay.h>
drivers/media/pci/cx23885/cx23885-dvb.c +0 -1
index 0549205..f1a563f 100644
@@ -20,7 +20,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/device.h>
 #include <linux/fs.h>
 #include <linux/kthread.h>
drivers/media/pci/cx23885/cx23885-i2c.c +0 -1
index 4887314..6d6345e 100644
@@ -21,7 +21,6 @@
 
 #include <linux/module.h>
 #include <linux/moduleparam.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <asm/io.h>
 
drivers/media/pci/cx23885/cx23885-vbi.c +0 -1
index a1154f0..332b40b 100644
@@ -22,7 +22,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
-#include <linux/init.h>
 
 #include "cx23885.h"
 
drivers/media/pci/cx23885/cx23885-video.c +0 -1
index 7891f34..68bfee8 100644
@@ -19,7 +19,6 @@
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <linux/init.h>
 #include <linux/list.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
drivers/media/pci/cx25821/cx25821-alsa.c +0 -1
index b1e08c3..5f6b88b 100644
@@ -23,7 +23,6 @@
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/device.h>
 #include <linux/interrupt.h>
 #include <linux/vmalloc.h>
drivers/media/pci/cx25821/cx25821-audio-upstream.c +0 -1
index 68dbc2d..0c7bb8c 100644
@@ -28,7 +28,6 @@
 #include <linux/fs.h>
 #include <linux/errno.h>
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/syscalls.h>
 #include <linux/file.h>
drivers/media/pci/cx25821/cx25821-cards.c +0 -1
index f2ebc98..c35c71e 100644
@@ -23,7 +23,6 @@
 
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/pci.h>
 
drivers/media/pci/cx25821/cx25821-video-upstream.c +0 -1
index 1f43be0..db76689 100644
@@ -27,7 +27,6 @@
 
 #include <linux/errno.h>
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/slab.h>
 
drivers/media/pci/cx25821/cx25821-video.h +0 -1
index ab63b38..79216c6 100644
@@ -24,7 +24,6 @@
 #ifndef CX25821_VIDEO_H_
 #define CX25821_VIDEO_H_
 
-#include <linux/init.h>
 #include <linux/list.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
drivers/media/pci/cx88/cx88-alsa.c +0 -1
index d014206e..218f64a 100644
@@ -25,7 +25,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/device.h>
 #include <linux/interrupt.h>
 #include <linux/vmalloc.h>
drivers/media/pci/cx88/cx88-cards.c +0 -1
index e18a7ac..7584afc 100644
@@ -20,7 +20,6 @@
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/pci.h>
 #include <linux/delay.h>
drivers/media/pci/cx88/cx88-core.c +0 -1
index ad59dc9..bf04477 100644
@@ -25,7 +25,6 @@
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <linux/init.h>
 #include <linux/list.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
drivers/media/pci/cx88/cx88-i2c.c +0 -1
index cf2d696..4f80bb5 100644
@@ -28,7 +28,6 @@
 */
 
 #include <linux/module.h>
-#include <linux/init.h>
 
 #include <asm/io.h>
 
drivers/media/pci/cx88/cx88-input.c +0 -1
index f29e18c..9de7287 100644
@@ -22,7 +22,6 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  */
 
-#include <linux/init.h>
 #include <linux/hrtimer.h>
 #include <linux/pci.h>
 #include <linux/slab.h>
drivers/media/pci/cx88/cx88-mpeg.c +0 -1
index 74b7b86..fb8e78f 100644
@@ -24,7 +24,6 @@
 
 #include <linux/module.h>
 #include <linux/slab.h>
-#include <linux/init.h>
 #include <linux/device.h>
 #include <linux/dma-mapping.h>
 #include <linux/interrupt.h>
drivers/media/pci/cx88/cx88-tvaudio.c +0 -1
index 424fd97..43c53b5 100644
@@ -46,7 +46,6 @@
 #include <linux/types.h>
 #include <linux/interrupt.h>
 #include <linux/vmalloc.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/kthread.h>
 
drivers/media/pci/cx88/cx88-vbi.c +0 -1
index f8f8389..2ea1190 100644
@@ -2,7 +2,6 @@
  */
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 
 #include "cx88.h"
 
drivers/media/pci/cx88/cx88-video.c +0 -1
index ed8cb90..7401bcb 100644
@@ -25,7 +25,6 @@
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <linux/init.h>
 #include <linux/list.h>
 #include <linux/module.h>
 #include <linux/kmod.h>
drivers/media/pci/cx88/cx88-vp3054-i2c.c +0 -1
index deede6e..742bfca 100644
@@ -24,7 +24,6 @@
 
 #include <linux/module.h>
 #include <linux/slab.h>
-#include <linux/init.h>
 
 #include <asm/io.h>
 
drivers/media/pci/dm1105/dm1105.c +0 -1
index e60ac35..419194f 100644
@@ -21,7 +21,6 @@
 
 #include <linux/i2c.h>
 #include <linux/i2c-algo-bit.h>
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
drivers/media/pci/ivtv/ivtv-alsa-pcm.c +0 -1
index e1863db..9fd932b 100644
@@ -23,7 +23,6 @@
  *  02111-1307  USA
  */
 
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/vmalloc.h>
 
drivers/media/pci/ivtv/ivtv-driver.h +0 -1
index bc309f42c..408343a 100644
@@ -37,7 +37,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/sched.h>
 #include <linux/fs.h>
drivers/media/pci/mantis/mantis_pci.c +0 -1
index 9e89e04..fbf0182 100644
@@ -25,7 +25,6 @@
 #include <asm/page.h>
 #include <linux/kmod.h>
 #include <linux/vmalloc.h>
-#include <linux/init.h>
 #include <linux/device.h>
 #include <linux/pci.h>
 
drivers/media/pci/ngene/ngene-core.c +0 -1
index 970e833..1eec301 100644
@@ -28,7 +28,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/poll.h>
 #include <linux/io.h>
drivers/media/pci/ngene/ngene-dvb.c +0 -1
index fcb16a6..e94b4d5 100644
@@ -28,7 +28,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/slab.h>
 #include <linux/poll.h>
drivers/media/pci/ngene/ngene-i2c.c +0 -1
index d28554f..434caf0 100644
@@ -29,7 +29,6 @@
 
 /* FIXME - some of these can probably be removed */
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/slab.h>
 #include <linux/poll.h>
drivers/media/pci/pluto2/pluto2.c +0 -1
index 655d6854..8293eb7 100644
@@ -25,7 +25,6 @@
 
 #include <linux/i2c.h>
 #include <linux/i2c-algo-bit.h>
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
drivers/media/pci/saa7134/saa7134-alsa.c +0 -1
index dd67c8a..33e22c1 100644
@@ -16,7 +16,6 @@
  *
  */
 
-#include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/time.h>
 #include <linux/wait.h>
drivers/media/pci/saa7134/saa7134-cards.c +0 -1
index d45e7f6..9ae7ca2 100644
@@ -20,7 +20,6 @@
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/i2c.h>
 #include <linux/i2c-algo-bit.h>
drivers/media/pci/saa7134/saa7134-i2c.c +0 -1
index c68169d..c71abff 100644
@@ -20,7 +20,6 @@
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <linux/init.h>
 #include <linux/list.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
drivers/media/pci/saa7134/saa7134-input.c +0 -1
index 6f43126..255a35e 100644
@@ -19,7 +19,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/interrupt.h>
 #include <linux/slab.h>
drivers/media/pci/saa7134/saa7134-ts.c +0 -1
index 2e3f4b4..6957176 100644
@@ -20,7 +20,6 @@
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <linux/init.h>
 #include <linux/list.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
drivers/media/pci/saa7134/saa7134-tvaudio.c +0 -1
index 0f34e09..ed532f4 100644
@@ -20,7 +20,6 @@
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <linux/init.h>
 #include <linux/list.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
drivers/media/pci/saa7134/saa7134-vbi.c +0 -1
index d4da18d..ce80d7c 100644
@@ -20,7 +20,6 @@
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <linux/init.h>
 #include <linux/list.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
drivers/media/pci/saa7134/saa7134-video.c +0 -1
index eb472b5..6d05685 100644
@@ -20,7 +20,6 @@
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <linux/init.h>
 #include <linux/list.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
drivers/media/pci/saa7164/saa7164-cards.c +0 -1
index 5b72da5..4698daa 100644
@@ -19,7 +19,6 @@
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/pci.h>
 #include <linux/delay.h>
drivers/media/pci/saa7164/saa7164-i2c.c +0 -1
index 4f7e3b4..a9a0c8d 100644
@@ -21,7 +21,6 @@
 
 #include <linux/module.h>
 #include <linux/moduleparam.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/io.h>
 
drivers/media/pci/ttpci/av7110_ir.c +0 -1
index 0e763a7..c77222d 100644
@@ -23,7 +23,6 @@
 
 
 #include <linux/types.h>
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/proc_fs.h>
 #include <linux/kernel.h>
drivers/media/pci/ttpci/ttpci-eeprom.c +0 -1
index 32d4315..862552b 100644
@@ -32,7 +32,6 @@
 */
 
 #include <asm/errno.h>
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/string.h>
 #include <linux/i2c.h>
drivers/media/pci/zoran/zoran_driver.c +0 -1
index e7e9840..6c4ab66 100644
@@ -44,7 +44,6 @@
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/delay.h>
 #include <linux/slab.h>
drivers/media/platform/blackfin/bfin_capture.c +0 -1
index 2819165..119bc0a 100644
@@ -22,7 +22,6 @@
 #include <linux/errno.h>
 #include <linux/fs.h>
 #include <linux/i2c.h>
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/io.h>
 #include <linux/mm.h>
drivers/media/platform/davinci/vpbe.c +0 -1
index 33b9660..fb86341 100644
@@ -15,7 +15,6 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  */
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/errno.h>
 #include <linux/fs.h>
drivers/media/platform/davinci/vpbe_display.c +0 -1
index b02aba4..7d73561 100644
@@ -11,7 +11,6 @@
  * GNU General Public License for more details.
  */
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/errno.h>
 #include <linux/interrupt.h>
drivers/media/platform/davinci/vpbe_venc.c +0 -1
index 14a023a..62a4cd3 100644
@@ -16,7 +16,6 @@
  */
 #include <linux/module.h>
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/ctype.h>
 #include <linux/delay.h>
 #include <linux/device.h>
drivers/media/platform/davinci/vpfe_capture.c +0 -1
index d762246..3253714 100644
@@ -68,7 +68,6 @@
  */
 #include <linux/module.h>
 #include <linux/slab.h>
-#include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/interrupt.h>
 #include <media/v4l2-common.h>
drivers/media/platform/fsl-viu.c +0 -1
index dbf0ce3..9a6c4c0 100644
@@ -18,7 +18,6 @@
 #include <linux/clk.h>
 #include <linux/kernel.h>
 #include <linux/i2c.h>
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/io.h>
 #include <linux/of_address.h>
drivers/media/platform/indycam.c +0 -1
index f1d192b..27c0669 100644
@@ -12,7 +12,6 @@
 #include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/fs.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/major.h>
 #include <linux/module.h>
drivers/media/platform/sh_vou.c +0 -1
index e5f1d4c..42c4b90 100644
@@ -13,7 +13,6 @@
 #include <linux/errno.h>
 #include <linux/fs.h>
 #include <linux/i2c.h>
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/kernel.h>
 #include <linux/platform_device.h>
drivers/media/platform/soc_camera/atmel-isi.c +0 -1
index 4835173..78240a6 100644
@@ -15,7 +15,6 @@
 #include <linux/completion.h>
 #include <linux/delay.h>
 #include <linux/fs.h>
-#include <linux/init.h>
 #include <linux/interrupt.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
drivers/media/platform/soc_camera/mx2_camera.c +0 -1
index d73abca..ac9af48 100644
@@ -11,7 +11,6 @@
  * (at your option) any later version.
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/io.h>
 #include <linux/delay.h>
drivers/media/platform/soc_camera/mx3_camera.c +0 -1
index f975b70..0e915db 100644
@@ -9,7 +9,6 @@
  * published by the Free Software Foundation.
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/videodev2.h>
 #include <linux/platform_device.h>
drivers/media/platform/soc_camera/pxa_camera.c +0 -1
index d4df305..f918282 100644
@@ -10,7 +10,6 @@
  * (at your option) any later version.
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/io.h>
 #include <linux/delay.h>
drivers/media/platform/soc_camera/soc_camera.c +0 -1
index 4b8c024..197fbdf 100644
@@ -19,7 +19,6 @@
 #include <linux/device.h>
 #include <linux/err.h>
 #include <linux/i2c.h>
-#include <linux/init.h>
 #include <linux/list.h>
 #include <linux/module.h>
 #include <linux/mutex.h>
drivers/media/platform/soc_camera/soc_camera_platform.c +0 -1
index ceaddfb..54fbe90 100644
@@ -10,7 +10,6 @@
  * published by the Free Software Foundation.
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/delay.h>
drivers/media/radio/dsbr100.c +0 -1
index 142c2ee..8cfe33e 100644
@@ -36,7 +36,6 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/input.h>
 #include <linux/videodev2.h>
drivers/media/radio/radio-isa.c +0 -1
index 6ff3508..c7d2d7a 100644
@@ -21,7 +21,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/ioport.h>
 #include <linux/delay.h>
 #include <linux/videodev2.h>
drivers/media/radio/radio-ma901.c +0 -1
index a85b064..f4ae0f6 100644
@@ -22,7 +22,6 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/input.h>
 #include <linux/videodev2.h>
drivers/media/radio/radio-maxiradio.c +0 -1
index 5236035..996125d 100644
@@ -34,7 +34,6 @@
 
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/ioport.h>
 #include <linux/delay.h>
 #include <linux/mutex.h>
drivers/media/radio/radio-mr800.c +0 -1
index a360227..4e57439 100644
@@ -56,7 +56,6 @@
 /* kernel includes */
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/input.h>
 #include <linux/videodev2.h>
drivers/media/radio/radio-raremono.c +0 -1
index 7b3bdbb..b27b4d5 100644
@@ -17,7 +17,6 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/input.h>
 #include <linux/usb.h>
drivers/media/radio/radio-shark.c +0 -1
index 050b3bb..c824eb3 100644
@@ -25,7 +25,6 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 */
 
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/leds.h>
 #include <linux/module.h>
drivers/media/radio/radio-shark2.c +0 -1
index 8654e0d..5318fe3 100644
@@ -25,7 +25,6 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  */
 
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/leds.h>
 #include <linux/module.h>
drivers/media/radio/radio-tea5764.c +0 -1
index 3ed1f56..e491990 100644
@@ -34,7 +34,6 @@
 #include <linux/kernel.h>
 #include <linux/slab.h>
 #include <linux/module.h>
-#include <linux/init.h>			/* Initdata			*/
 #include <linux/videodev2.h>		/* kernel radio structs		*/
 #include <linux/i2c.h>			/* I2C				*/
 #include <media/v4l2-common.h>
drivers/media/radio/radio-tea5777.c +0 -1
index e245597..18aae8e 100644
@@ -24,7 +24,6 @@
  */
 
 #include <linux/delay.h>
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/sched.h>
 #include <linux/slab.h>
drivers/media/radio/saa7706h.c +0 -1
index ec805b0..4f1ce57 100644
@@ -17,7 +17,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/kernel.h>
drivers/media/radio/si470x/radio-si470x.h +0 -1
index 4b76604..20c3849 100644
@@ -28,7 +28,6 @@
 /* kernel includes */
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/sched.h>
 #include <linux/slab.h>
 #include <linux/input.h>
drivers/media/radio/si4713/radio-platform-si4713.c +0 -1
index ba4cfc9..139ff48 100644
@@ -23,7 +23,6 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/platform_device.h>
 #include <linux/i2c.h>
 #include <linux/videodev2.h>
drivers/media/radio/si4713/radio-usb-si4713.c +0 -1
index f1e640d..03df453 100644
@@ -20,7 +20,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/usb.h>
-#include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/input.h>
 #include <linux/mutex.h>
drivers/media/radio/tef6862.c +0 -1
index a9319a2..e62cad6 100644
@@ -17,7 +17,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/errno.h>
 #include <linux/kernel.h>
 #include <linux/interrupt.h>
drivers/media/rc/ati_remote.c +0 -1
index 4d6a63f..fecbed4 100644
@@ -88,7 +88,6 @@
 
 #include <linux/kernel.h>
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/module.h>
 #include <linux/mutex.h>
drivers/media/rc/gpio-ir-recv.c +0 -1
index 80c611c..d8481d8 100644
@@ -11,7 +11,6 @@
  */
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/interrupt.h>
 #include <linux/gpio.h>
drivers/media/rc/imon.c +0 -1
index 822b9f4..639d346 100644
@@ -29,7 +29,6 @@
 #define pr_fmt(fmt) KBUILD_MODNAME ":%s: " fmt, __func__
 
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/slab.h>
drivers/media/tuners/mt2063.c +0 -1
index 20cca40..b48fc4c 100644
@@ -19,7 +19,6 @@
  * GNU General Public License for more details.
  */
 
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/string.h>
drivers/media/tuners/mxl5005s.c +0 -1
index b473b76..1ebf69c 100644
@@ -58,7 +58,6 @@
       respective owners.
 */
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/string.h>
 #include <linux/slab.h>
drivers/media/tuners/tda9887.c +0 -1
index 9823248..97afd7b 100644
@@ -2,7 +2,6 @@
 #include <linux/kernel.h>
 #include <linux/i2c.h>
 #include <linux/types.h>
-#include <linux/init.h>
 #include <linux/errno.h>
 #include <linux/delay.h>
 #include <linux/videodev2.h>
drivers/media/usb/au0828/au0828-dvb.c +0 -1
index 19fe049..5428825 100644
@@ -21,7 +21,6 @@
 
 #include <linux/module.h>
 #include <linux/slab.h>
-#include <linux/init.h>
 #include <linux/device.h>
 #include <linux/suspend.h>
 #include <media/v4l2-common.h>
drivers/media/usb/au0828/au0828-i2c.c +0 -1
index 17ec365..ae18b7b 100644
@@ -21,7 +21,6 @@
 
 #include <linux/module.h>
 #include <linux/moduleparam.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 #include <linux/io.h>
 
drivers/media/usb/au0828/au0828-vbi.c +0 -1
index 63f5930..4373d3c 100644
@@ -23,7 +23,6 @@
 
 #include <linux/kernel.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/slab.h>
 
 #include "au0828.h"
drivers/media/usb/au0828/au0828-video.c +0 -1
index f615454..0bb104e 100644
@@ -30,7 +30,6 @@
 
 #include <linux/module.h>
 #include <linux/slab.h>
-#include <linux/init.h>
 #include <linux/device.h>
 #include <linux/suspend.h>
 #include <media/v4l2-common.h>
drivers/media/usb/cx231xx/cx231xx-417.c +0 -1
index 2f63029..e16a00b 100644
@@ -26,7 +26,6 @@
 
 #include <linux/module.h>
 #include <linux/moduleparam.h>
-#include <linux/init.h>
 #include <linux/fs.h>
 #include <linux/delay.h>
 #include <linux/device.h>
drivers/media/usb/cx231xx/cx231xx-avcore.c +0 -1
index 89de00b..43db655 100644
@@ -22,7 +22,6 @@
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <linux/init.h>
 #include <linux/list.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
drivers/media/usb/cx231xx/cx231xx-cards.c +0 -1
index 2ee03e4..4da2cf3 100644
@@ -20,7 +20,6 @@
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/delay.h>
drivers/media/usb/cx231xx/cx231xx-core.c +0 -1
index 4ba3ce0..9040a24 100644
@@ -20,7 +20,6 @@
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <linux/init.h>
 #include <linux/list.h>
 #include <linux/module.h>
 #include <linux/slab.h>
drivers/media/usb/cx231xx/cx231xx-pcb-cfg.h +0 -1
index b3c6190..88206a0 100644
@@ -22,7 +22,6 @@
 #ifndef _PCB_CONFIG_H_
 #define _PCB_CONFIG_H_
 
-#include <linux/init.h>
 #include <linux/module.h>
 
 /***************************************************************************
drivers/media/usb/cx231xx/cx231xx-vbi.c +0 -1
index c027942..d95aa4f 100644
@@ -19,7 +19,6 @@
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <linux/init.h>
 #include <linux/list.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
drivers/media/usb/cx231xx/cx231xx-video.c +0 -1
index 9906261..d91d3e1 100644
@@ -22,7 +22,6 @@
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <linux/init.h>
 #include <linux/list.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
drivers/media/usb/dvb-usb/friio-fe.c +0 -1
index d56f927..4467e37 100644
@@ -10,7 +10,6 @@
  *
  * see Documentation/dvb/README.dvb-usb for more information
  */
-#include <linux/init.h>
 #include <linux/string.h>
 #include <linux/slab.h>
 
drivers/media/usb/em28xx/em28xx-cards.c +0 -1
index 6efb902..fc68d17 100644
@@ -23,7 +23,6 @@
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/delay.h>
drivers/media/usb/em28xx/em28xx-core.c +0 -1
index b6dc332..382bf19 100644
@@ -22,7 +22,6 @@
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <linux/init.h>
 #include <linux/jiffies.h>
 #include <linux/list.h>
 #include <linux/module.h>
drivers/media/usb/em28xx/em28xx-vbi.c +0 -1
index db3d655..0cc4759 100644
@@ -24,7 +24,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/hardirq.h>
-#include <linux/init.h>
 
 #include "em28xx.h"
 #include "em28xx-v4l.h"
drivers/media/usb/em28xx/em28xx-video.c +0 -1
index a1dcceb..3d7f909 100644
@@ -26,7 +26,6 @@
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <linux/init.h>
 #include <linux/list.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
drivers/media/usb/hdpvr/hdpvr-control.c +0 -1
index 6053661..d0f0791 100644
@@ -11,7 +11,6 @@
 
 #include <linux/kernel.h>
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/module.h>
 #include <linux/usb.h>
drivers/media/usb/hdpvr/hdpvr-core.c +0 -1
index 2f0c89c..04e471e 100644
@@ -13,7 +13,6 @@
 
 #include <linux/kernel.h>
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/module.h>
 #include <linux/uaccess.h>
drivers/media/usb/hdpvr/hdpvr-video.c +0 -1
index 0500c417..736aba4 100644
@@ -12,7 +12,6 @@
 #include <linux/kernel.h>
 #include <linux/kconfig.h>
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/module.h>
 #include <linux/uaccess.h>
drivers/media/usb/pwc/pwc-if.c +0 -1
index abf365a..b045645 100644
@@ -58,7 +58,6 @@
 */
 
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/mm.h>
 #include <linux/module.h>
 #include <linux/poll.h>
drivers/media/usb/pwc/pwc-v4l.c +0 -1
index aa7449e..6fcbac8 100644
@@ -27,7 +27,6 @@
 */
 
 #include <linux/errno.h>
-#include <linux/init.h>
 #include <linux/mm.h>
 #include <linux/module.h>
 #include <linux/poll.h>
drivers/media/usb/siano/smsusb.c +0 -1
index 05bd91a..84303a9 100644
@@ -20,7 +20,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 ****************************************************************/
 
 #include <linux/kernel.h>
-#include <linux/init.h>
 #include <linux/usb.h>
 #include <linux/firmware.h>
 #include <linux/slab.h>
drivers/media/usb/stk1160/stk1160-core.c +0 -1
index 34a26e0..99b2f30 100644
@@ -26,7 +26,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/errno.h>
 #include <linux/slab.h>
drivers/media/usb/stkwebcam/stk-webcam.c +0 -1
index be77482..18bc392 100644
@@ -23,7 +23,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/kernel.h>
 #include <linux/errno.h>
 #include <linux/slab.h>
drivers/media/usb/tlg2300/pd-alsa.c +0 -1
index 3f3e141..e0f51e1 100644
@@ -1,6 +1,5 @@
 #include <linux/kernel.h>
 #include <linux/usb.h>
-#include <linux/init.h>
 #include <linux/sound.h>
 #include <linux/spinlock.h>
 #include <linux/soundcard.h>
drivers/media/usb/tlg2300/pd-radio.c +0 -1
index ea6070b..13a57c2 100644
@@ -1,4 +1,3 @@
-#include <linux/init.h>
 #include <linux/list.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
drivers/media/usb/tm6000/tm6000-cards.c +0 -1
index 1ccaadd..88baf37 100644
@@ -17,7 +17,6 @@
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/pci.h>
 #include <linux/delay.h>
drivers/media/usb/tm6000/tm6000-input.c +0 -1
index 8a6bbf1..926ba06 100644
@@ -18,7 +18,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/delay.h>
 
 #include <linux/input.h>
drivers/media/usb/tm6000/tm6000-video.c +0 -1
index cc1aa14..ec88656 100644
@@ -28,7 +28,6 @@
 #include <linux/slab.h>
 #include <linux/mm.h>
 #include <linux/ioport.h>
-#include <linux/init.h>
 #include <linux/sched.h>
 #include <linux/random.h>
 #include <linux/usb.h>
drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c +0 -1
index f8a60c1..aa643df 100644
@@ -9,7 +9,6 @@
  *	published by the Free Software Foundation; either version 2 of
  *	the License, or (at your option) any later version.
  */
-#include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/wait.h>
 #include <linux/fs.h>
drivers/media/usb/ttusb-dec/ttusb_dec.c +0 -1
index 29724af..94c5051 100644
@@ -29,7 +29,6 @@
 #include <linux/interrupt.h>
 #include <linux/firmware.h>
 #include <linux/crc32.h>
-#include <linux/init.h>
 #include <linux/input.h>
 
 #include <linux/mutex.h>
drivers/media/usb/usbtv/usbtv.c +0 -1
index 6222a4a..80262e1 100644
@@ -28,7 +28,6 @@
  * GNU General Public License ("GPL").
  */
 
-#include <linux/init.h>
 #include <linux/list.h>
 #include <linux/module.h>
 #include <linux/slab.h>
drivers/media/usb/usbvision/usbvision-core.c +0 -1
index 816b1cf..191dd2b 100644
@@ -31,7 +31,6 @@
 #include <linux/highmem.h>
 #include <linux/vmalloc.h>
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/spinlock.h>
 #include <linux/io.h>
 #include <linux/videodev2.h>
drivers/media/usb/usbvision/usbvision-i2c.c +0 -1
index ba262a3..ae1a1e6 100644
@@ -27,7 +27,6 @@
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/delay.h>
-#include <linux/init.h>
 #include <linux/uaccess.h>
 #include <linux/ioport.h>
 #include <linux/errno.h>
drivers/media/usb/zr364xx/zr364xx.c +0 -1
index 74d56df..764c655e 100644
@@ -29,7 +29,6 @@
 
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/usb.h>
 #include <linux/vmalloc.h>
 #include <linux/slab.h>
drivers/media/v4l2-core/tuner-core.c +0 -1
index 20c0922..f9f6d71 100644
@@ -24,7 +24,6 @@
 #include <linux/poll.h>
 #include <linux/i2c.h>
 #include <linux/types.h>
-#include <linux/init.h>
 #include <linux/videodev2.h>
 #include <media/tuner.h>
 #include <media/tuner-types.h>
drivers/media/v4l2-core/videobuf-core.c +0 -1
index fb5ee5d..b837626 100644
@@ -13,7 +13,6 @@
  * the Free Software Foundation; either version 2
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 #include <linux/mm.h>
drivers/media/v4l2-core/videobuf-dma-contig.c +0 -1
index 65411ad..557d42e 100644
@@ -14,7 +14,6 @@
  * the Free Software Foundation; either version 2
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/mm.h>
 #include <linux/pagemap.h>
drivers/media/v4l2-core/videobuf-dma-sg.c +0 -1
index 9db674c..20c4849 100644
@@ -18,7 +18,6 @@
  * the Free Software Foundation; either version 2
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 #include <linux/sched.h>
drivers/media/v4l2-core/videobuf-dvb.c +0 -1
index b7efa45..210a7cb 100644
@@ -14,7 +14,6 @@
  */
 
 #include <linux/module.h>
-#include <linux/init.h>
 #include <linux/device.h>
 #include <linux/fs.h>
 #include <linux/kthread.h>
drivers/media/v4l2-core/videobuf-vmalloc.c +0 -1
index 1365c65..8c524fd 100644
@@ -13,7 +13,6 @@
  * the Free Software Foundation; either version 2
  */
 
-#include <linux/init.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 #include <linux/slab.h>
Signature · 1 line
1.8.4.1