tree-wide: clean up some no longer required #include <linux/init.h>
Subsystems (245)
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 7These 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
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.
--- 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
@@ -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
@@ -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
Re: [PATCH 01/73] init: delete the __cpuinit related stubs
Quoted 6 lines · Paul Gortmaker
The
__cpuinitsupport 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
__cpuinitdatafrom the tag script.
Quoted 8 lines
Cc Andrew Morton <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Signed-off-by Paul Gortmaker <[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@@ -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@@ -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
Re: [PATCH 01/73] init: delete the __cpuinit related stubs
In reply to Paul GortmakerQuoted 9 lines · Paul Gortmaker
The
__cpuinitsupport 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
__cpuinitdatafrom the tag script.Cc Andrew Morton <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
PATCH 2/73 mm: replace module_init usages with subsys_initcall in nommu.c
In reply to Paul GortmakerCompiling 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
@@ -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
PATCH 3/73 fs/notify: don't use module_init for non-modular inotify_user code
In reply to Paul GortmakerThe 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.
--- fs/notify/inotify/inotify_user.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
fs/notify/inotify/inotify_user.c +2 -2
@@ -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
PATCH 4/73 netfilter: don't use module_init/exit in core IPV4 code
In reply to Paul GortmakerThe 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.
--- net/ipv4/netfilter.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-)
net/ipv4/netfilter.c +1 -8
@@ -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
PATCH 5/73 x86: don't use module_init in non-modular intel_mid_vrtc.c
In reply to Paul GortmakerThe 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.
--- 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
@@ -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
PATCH 6/73 x86: don't use module_init for non-modular core bootflag code
In reply to Paul GortmakerThe 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.
--- arch/x86/kernel/bootflag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/bootflag.c +1 -1
@@ -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
PATCH 7/73 x86: replace __init_or_module with __init in non-modular vsmp_64.c
In reply to Paul GortmakerThe __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.
--- arch/x86/kernel/vsmp_64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/vsmp_64.c +1 -1
@@ -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
PATCH 8/73 drivers/tty/hvc: don't use module_init in non-modular hyp. console code
In reply to Paul GortmakerThe 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.
--- 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
@@ -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
@@ -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
@@ -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
@@ -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
PATCH 9/73 staging: don't use module_init in non-modular ion_dummy_driver.c
In reply to Paul GortmakerThe 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.
--- 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
@@ -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
PATCH 10/73 powerpc: use device_initcall for registering rtc devices
In reply to Paul GortmakerCurrently 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.
--- 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
@@ -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
@@ -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
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_initas an alias for__initcallcan 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.
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_initas an alias for__initcallcan 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.
Acked-by Geoff Levand <[email protected]>
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
PATCH 11/73 powerpc: book3s KVM can be modular so it should use module.h
In reply to Paul GortmakerEven 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
--- arch/powerpc/kvm/book3s.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/kvm/book3s.c +1 -1
@@ -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
PATCH 12/73 powerpc: kvm e500/44x is not modular, so don't use module_init
In reply to Paul GortmakerIn 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.
--- 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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_KVMis bool, and so are these three subarch options, for the 44x and e500 variants. This means that anymodule_exit()calls and functions used by them such as thekvmppc_booke_exit()are dead code. Here we remove them.
Quoted 7 lines
In addition, rather than use
module_init, which is just__initcallfor non-modules, we update those as well.Note that direct use of
__initcallis discouraged, vs. one of the priority categorized subgroups. As__initcallgets mapped ontodevice_initcall, our use ofsubsys_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]>Signed-off-by Paul Gortmaker <[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@@ -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@@ -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@@ -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@@ -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@@ -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);
PATCH 13/73 powerpc: use subsys_initcall for Freescale Local Bus
In reply to Paul GortmakerThe 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.
--- arch/powerpc/sysdev/fsl_lbc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/sysdev/fsl_lbc.c +1 -1
@@ -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
PATCH 14/73 powerpc: don't use module_init for non-modular core hugetlb code
In reply to Paul GortmakerThe 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.
--- arch/powerpc/mm/hugetlbpage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/mm/hugetlbpage.c +1 -1
@@ -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
PATCH 15/73 powerpc: don't use module_init in non-modular 83xx suspend code
In reply to Paul GortmakerThe 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.
--- arch/powerpc/platforms/83xx/suspend.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
arch/powerpc/platforms/83xx/suspend.c +1 -2
@@ -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
PATCH 16/73 arm: include module.h in drivers/bus/omap_l3_smx.c
In reply to Paul GortmakerThe 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
@@ -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
PATCH 17/73 arm: fix implicit module.h use in mach-at91 gpio.h
In reply to Paul GortmakerWe 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.
--- arch/arm/mach-at91/include/mach/gpio.h | 1 + 1 file changed, 1 insertion(+)
arch/arm/mach-at91/include/mach/gpio.h +1 -0
@@ -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
PATCH 18/73 arm: fix implicit #include <linux/init.h> in entry asm.
In reply to Paul GortmakerThey 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
@@ -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
@@ -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
PATCH 19/73 arm: mach-s3c64xx mach-crag6410-module.c is not modular
In reply to Paul GortmakerDespite 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
@@ -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
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 forMACH_WLF_CRAGG_6410-- which is bool, and hence this code is either present or absent. It will never be modular, so usingmodule_initas an alias for__initcallcan be somewhat misleading.Fix this up now, so that we can relocate
module_initfrominit.hintomodule.hin the future. If we don't do this, we'd have to addmodule.hto obviously non-modular code, and that would be a worse thing.Note that direct use of
__initcallis discouraged, vs. one of the priority categorized subgroups. As__initcallgets mapped ontodevice_initcall, our use ofdevice_initcalldirectly 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.comCc linux-arm-kernel at lists.infradead.orgSigned-off-by Paul Gortmaker <[email protected]>---
Thanks,
Charles
Kukjin Kim
AppliedRe: [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 forMACH_WLF_CRAGG_6410-- which is bool, and hence this code is either present or absent. It will never be modular, so usingmodule_initas an alias for__initcallcan be somewhat misleading.Fix this up now, so that we can relocate
module_initfrominit.hintomodule.hin the future. If we don't do this, we'd have to addmodule.hto obviously non-modular code, and that would be a worse thing.Note that direct use of
__initcallis discouraged, vs. one of the priority categorized subgroups. As__initcallgets mapped ontodevice_initcall, our use ofdevice_initcalldirectly 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.comCc linux-arm-kernel at lists.infradead.orgSigned-off-by Paul Gortmaker<[email protected]>---
Quoted 2 lines
Tested-by Charles Keepax<[email protected]>
Thanks, applied.
- Kukjin
PATCH 20/73 arm: use subsys_initcall in non-modular pl320 IPC code
In reply to Paul GortmakerThe 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
@@ -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
Arnd Bergmann
maintainerRe: [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
__initcallis discouraged, vs. one of the priority categorized subgroups. As__initcallgets mapped ontodevice_initcall, our use ofsubsys_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
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
__initcallis discouraged, vs. one of the priority categorized subgroups. As__initcallgets mapped ontodevice_initcall, our use ofsubsys_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
PATCH 21/73 arm: don't use module_init in non-modular mach-vexpress/spc.c code
In reply to Paul GortmakerThe 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
@@ -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
PATCH 22/73 alpha: don't use module_init for non-modular core code
In reply to Paul GortmakerThe 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.
--- arch/alpha/kernel/srmcons.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
arch/alpha/kernel/srmcons.c +1 -2
@@ -237,8 +237,7 @@ srmcons_init(void)return -ENODEV ; } - -module_init (srmcons_init); +device_initcall (srmcons_init);/*
Signature · 1 line
1.8.4.1
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_initas an alias for__initcallis rather misleading.Fix this up now, so that we can relocate
module_initfrominit.hintomodule.hin the future. If we don't do this, we'd have to addmodule.hto obviously non-modular code, and that would be a worse thing.Direct use of
__initcallis discouraged, vs prioritized ones. Use ofdevice_initcallis consistent with what__initcallmaps 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 toarch_initcallorconsole_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]>Signed-off-by Paul Gortmaker <[email protected]>--- arch/alpha/kernel/srmcons.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
r~
PATCH 23/73 sparc: don't use module_init in non-modular pci.c code
In reply to Paul GortmakerThe 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
@@ -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
David Miller
maintainerRe: [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 usingmodule_initas an alias for__initcallcan be somewhat misleading.Fix this up now, so that we can relocate
module_initfrominit.hintomodule.hin the future. If we don't do this, we'd have to addmodule.hto obviously non-modular code, and that would be a worse thing.Note that direct use of
__initcallis discouraged, vs. one of the priority categorized subgroups. As__initcallgets mapped ontodevice_initcall, our use ofdevice_initcalldirectly in this change means that the runtime impact is zero -- it will remain at level 6 in initcall ordering.
Quoted 4 lines
Cc "David S. Miller" <[email protected]>Cc Bjorn Helgaas <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
ACK
PATCH 24/73 m68k: don't use module_init in non-modular mvme16x/rtc.c code
In reply to Paul GortmakerThe 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
@@ -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
PATCH 25/73 ia64: don't use module_init for non-modular core kernel/mca.c code
In reply to Paul GortmakerThe 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
@@ -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
PATCH 26/73 ia64: don't use module_init in non-modular sim/simscsi.c code
In reply to Paul GortmakerThe 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
@@ -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
PATCH 27/73 drivers/clk: don't use module_init in clk-nomadik.c which is non-modular
In reply to Paul GortmakerThe 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.
--- drivers/clk/clk-nomadik.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/clk/clk-nomadik.c +1 -2
@@ -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
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 usingmodule_initas an alias for__initcallcan be somewhat misleading.Fix this up now, so that we can relocate
module_initfrominit.hintomodule.hin the future. If we don't do this, we'd have to addmodule.hto obviously non-modular code, and that would be a worse thing.Note that direct use of
__initcallis discouraged, vs. one of the priority categorized subgroups. As__initcallgets mapped ontodevice_initcall, our use ofdevice_initcalldirectly 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.orgSigned-off-by Paul Gortmaker <[email protected]>
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@@ -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
PATCH 28/73 cpuidle: don't use modular platform register in non-modular ARM drivers
In reply to Paul GortmakerThese 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
@@ -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
@@ -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
PATCH 29/73 drivers/platform: don't use modular register in non-modular pdev_bus.c
In reply to Paul GortmakerThis 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
@@ -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
PATCH 30/73 drivers/i2c: busses/i2c-acorn.c is tristate and should use module.h
In reply to Paul GortmakerThis 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
@@ -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
Wolfram Sang
AppliedRe: [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
Kconfigoption, and hence needs to includemodule.hso that it can getmodule_init()once we relocate it frominit.hintomodule.hin 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.Cc Wolfram Sang <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
Applied to for-current, thanks!
PATCH 31/73 module: relocate module_init from init.h to module.h
In reply to Paul GortmakerModular 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
@@ -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
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_initandmodule_exitwould be more at home in themodule.hfile. Andmodule.hshould explicitly includeinit.hto 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_initlives.Cc Rusty Russell <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
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.
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_initandmodule_exitwould be more at home in themodule.hfile. Andmodule.hshould explicitly includeinit.hto 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_initlives.Cc Rusty Russell <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
Quoted 7 lines
Acked-by Rusty Russell <[email protected]>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
Re: [PATCH 31/73] module: relocate module_init from init.h to module.h
In reply to Rusty RussellQuoted 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_initandmodule_exitwould be more at home in themodule.hfile. Andmodule.hshould explicitly includeinit.hto 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_initlives.
Quoted 8 lines
Quoted 2 lines
Cc Rusty Russell <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>Acked-by Rusty Russell <[email protected]>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
PATCH 32/73 logo: emit "#include <linux/init.h> in autogenerated C file
In reply to Paul GortmakerThe 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
@@ -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
@@ -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
PATCH 33/73 arm: delete non-required instances of include <linux/init.h>
In reply to Paul GortmakerNone 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
@@ -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
@@ -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
@@ -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
@@ -1,4 +1,3 @@ -#include <linux/init.h> #include <linux/linkage.h> #include <asm/assembler.h>
arch/arm/kernel/hyp-stub.S +0 -1
@@ -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
@@ -1,4 +1,3 @@ -#include <linux/init.h> #include <linux/slab.h> #include <asm/cacheflush.h>
arch/arm/kernel/unwind.c +0 -1
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -19,7 +19,6 @@ */ #include <linux/linkage.h> -#include <linux/init.h> #include <asm/assembler.h>
arch/arm/mach-netx/fb.c +0 -1
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -16,7 +16,6 @@ */ #include <linux/linkage.h> -#include <linux/init.h> #include "omap44xx.h"
arch/arm/mach-omap2/omap3-restart.c +0 -1
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -20,7 +20,6 @@ */ #include <linux/linkage.h> -#include <linux/init.h> #include <asm/memory.h> /*
arch/arm/mach-shmobile/headsmp.S +0 -1
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -1,5 +1,4 @@ #include <linux/linkage.h> -#include <linux/init.h> .section ".text.head", "ax"
arch/arm/mach-tegra/flowctrl.c +0 -1
@@ -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
@@ -1,5 +1,4 @@ #include <linux/linkage.h> -#include <linux/init.h> #include "sleep.h"
arch/arm/mach-tegra/reset-handler.S +0 -1
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
PATCH 34/73 mips: delete non-required instances of include <linux/init.h>
In reply to Paul GortmakerNone 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
PATCH 35/73 sparc: delete non-required instances of include <linux/init.h>
In reply to Paul GortmakerNone 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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
__inittype directives and hence don't need to include <linux/init.h>. Most are just a left over from__devinitand__cpuinitremoval, or simply due to code getting copied from one driver to the next.Cc "David S. Miller" <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
PATCH 36/73 s390: delete non-required instances of include <linux/init.h>
In reply to Paul GortmakerNone 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/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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
PATCH 37/73 alpha: delete non-required instances of <linux/init.h>
In reply to Paul GortmakerNone 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/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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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
__inittype directives and hence don't need to include <linux/init.h>. Most are just a left over from__devinitand__cpuinitremoval, or simply due to code getting copied from one driver to the next.
r~
PATCH 38/73 blackfin: delete non-required instances of <linux/init.h>
In reply to Paul GortmakerNone 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
@@ -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
@@ -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
@@ -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
PATCH 39/73 powerpc: delete another unrequired instance of <linux/init.h>
In reply to Paul GortmakerMost were already deleted in the 1st pass audit; this instance showed up more recently.
--- arch/powerpc/sysdev/indirect_pci.c | 1 - 1 file changed, 1 deletion(-)
arch/powerpc/sysdev/indirect_pci.c +0 -1
@@ -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
PATCH 40/73 watchdog: delete non-required instances of include <linux/init.h>
In reply to Paul GortmakerNone 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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
__inittype directives and hence don't need to include <linux/init.h>. Most are just a left over from__devinitand__cpuinitremoval, or simply due to code getting copied from one driver to the next.Cc Wim Van Sebroeck <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>--- 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.
PATCH 41/73 video: delete non-required instances of include <linux/init.h>
In reply to Paul GortmakerNone 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/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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
PATCH 42/73 rtc: delete non-required instances of include <linux/init.h>
In reply to Paul GortmakerNone 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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
__inittype directives and hence don't need to include <linux/init.h>. Most are just a left over from__devinitand__cpuinitremoval, or simply due to code getting copied from one driver to the next.Cc Alessandro Zummo <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
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:9linux/list.h:8linux/kernel.h:13linux/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.
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
__inittype directives and hence don't need to include <linux/init.h>. Most are just a left over from__devinitand__cpuinitremoval, or simply due to code getting copied from one driver to the next.
Quoted 8 lines
Quoted 3 lines
Cc Alessandro Zummo <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>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_driverwhich actually uses__initand__exit. After your patch it is still working simply becauseinit.hgets 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 andinit.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:9linux/list.h:8linux/kernel.h:13linux/printk.h:5Signature · 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.
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_driverwhich actually uses__initand__exit. After your patch it is still working simply becauseinit.hgets 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 betweenmodule.handinit.hwas 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.
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_driverwhich actually uses__initand__exit. After your patch it is still working simply becauseinit.hgets 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 betweenmodule.handinit.hwas 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.
PATCH 43/73 scsi: delete non-required instances of include <linux/init.h>
In reply to Paul GortmakerNone 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
PATCH 44/73 spi: delete non-required instances of include <linux/init.h>
In reply to Paul GortmakerNone 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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
__inittype directives and hence don't need to include <linux/init.h>. Most are just a left over from__devinitand__cpuinitremoval, or simply due to code getting copied from one driver to the next.
Applied, thanks.
PATCH 45/73 acpi: delete non-required instances of include <linux/init.h>
In reply to Paul GortmakerNone 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/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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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
__inittype directives and hence don't need to include <linux/init.h>. Most are just a left over from__devinitand__cpuinitremoval, 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]>Signed-off-by Paul Gortmaker <[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@@ -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@@ -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@@ -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@@ -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@@ -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@@ -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@@ -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@@ -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@@ -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@@ -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.
PATCH 46/73 drivers/power: delete non-required instances of include <linux/init.h>
In reply to Paul GortmakerNone 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/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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
PATCH 47/73 drivers/media: delete non-required instances of include <linux/init.h>
In reply to Paul GortmakerNone 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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