]> git.karo-electronics.de Git - karo-tx-linux.git/log
karo-tx-linux.git
13 years agoAdd export.h to /home/paul/git/module.h/linux-2.6.git/arch/arm/plat-iop/time.c
Paul Gortmaker [Sun, 31 Jul 2011 20:17:30 +0000 (16:17 -0400)]
Add export.h to /home/paul/git/module.h/linux-2.6.git/arch/arm/plat-iop/time.c

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoAdd export.h to /home/paul/git/module.h/linux-2.6.git/arch/arm/mach-exynos4/dev-sysmmu.c
Paul Gortmaker [Sun, 31 Jul 2011 20:17:29 +0000 (16:17 -0400)]
Add export.h to /home/paul/git/module.h/linux-2.6.git/arch/arm/mach-exynos4/dev-sysmmu.c

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoAdd export.h to /home/paul/git/module.h/linux-2.6.git/arch/arm/plat-samsung/dev-asocdma.c
Paul Gortmaker [Sun, 31 Jul 2011 20:17:29 +0000 (16:17 -0400)]
Add export.h to /home/paul/git/module.h/linux-2.6.git/arch/arm/plat-samsung/dev-asocdma.c

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoAdd export.h to /home/paul/git/module.h/linux-2.6.git/arch/arm/mach-ep93xx/core.c
Paul Gortmaker [Sun, 31 Jul 2011 20:17:29 +0000 (16:17 -0400)]
Add export.h to /home/paul/git/module.h/linux-2.6.git/arch/arm/mach-ep93xx/core.c

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoAdd export.h to /home/paul/git/module.h/linux-2.6.git/arch/powerpc/sysdev/scom.c
Paul Gortmaker [Sun, 31 Jul 2011 20:17:29 +0000 (16:17 -0400)]
Add export.h to /home/paul/git/module.h/linux-2.6.git/arch/powerpc/sysdev/scom.c

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoAdd export.h to /home/paul/git/module.h/linux-2.6.git/arch/arm/common/scoop.c
Paul Gortmaker [Sun, 31 Jul 2011 20:17:28 +0000 (16:17 -0400)]
Add export.h to /home/paul/git/module.h/linux-2.6.git/arch/arm/common/scoop.c

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoAdd export.h to /home/paul/git/module.h/linux-2.6.git/arch/arm/common/it8152.c
Paul Gortmaker [Sun, 31 Jul 2011 20:17:28 +0000 (16:17 -0400)]
Add export.h to /home/paul/git/module.h/linux-2.6.git/arch/arm/common/it8152.c

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoAdd export.h to /home/paul/git/module.h/linux-2.6.git/arch/powerpc/platforms/52xx...
Paul Gortmaker [Sun, 31 Jul 2011 20:17:28 +0000 (16:17 -0400)]
Add export.h to /home/paul/git/module.h/linux-2.6.git/arch/powerpc/platforms/52xx/mpc52xx_common.c

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoAdd export.h to /home/paul/git/module.h/linux-2.6.git/arch/powerpc/sysdev/mpc5xxx_clo...
Paul Gortmaker [Sun, 31 Jul 2011 20:17:27 +0000 (16:17 -0400)]
Add export.h to /home/paul/git/module.h/linux-2.6.git/arch/powerpc/sysdev/mpc5xxx_clocks.c

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoAdd export.h to /home/paul/git/module.h/linux-2.6.git/arch/powerpc/platforms/83xx...
Paul Gortmaker [Sun, 31 Jul 2011 20:17:27 +0000 (16:17 -0400)]
Add export.h to /home/paul/git/module.h/linux-2.6.git/arch/powerpc/platforms/83xx/suspend.c

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoAdd export.h to /home/paul/git/module.h/linux-2.6.git/arch/arm/mach-shmobile/clock.c
Paul Gortmaker [Sun, 31 Jul 2011 20:17:27 +0000 (16:17 -0400)]
Add export.h to /home/paul/git/module.h/linux-2.6.git/arch/arm/mach-shmobile/clock.c

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoAdd module.h to /home/paul/git/module.h/linux-2.6.git/drivers/mmc/host/sdhci-tegra.c
Paul Gortmaker [Sun, 31 Jul 2011 20:14:18 +0000 (16:14 -0400)]
Add module.h to /home/paul/git/module.h/linux-2.6.git/drivers/mmc/host/sdhci-tegra.c

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoAdd module.h to /home/paul/git/module.h/linux-2.6.git/drivers/i2c/busses/i2c-tegra.c
Paul Gortmaker [Sun, 31 Jul 2011 20:14:18 +0000 (16:14 -0400)]
Add module.h to /home/paul/git/module.h/linux-2.6.git/drivers/i2c/busses/i2c-tegra.c

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoAdd module.h to /home/paul/git/module.h/linux-2.6.git/drivers/mmc/host/sdhci-s3c.c
Paul Gortmaker [Sun, 31 Jul 2011 20:14:18 +0000 (16:14 -0400)]
Add module.h to /home/paul/git/module.h/linux-2.6.git/drivers/mmc/host/sdhci-s3c.c

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoAdd module.h to /home/paul/git/module.h/linux-2.6.git/drivers/scsi/mac53c94.c
Paul Gortmaker [Sun, 31 Jul 2011 20:14:17 +0000 (16:14 -0400)]
Add module.h to /home/paul/git/module.h/linux-2.6.git/drivers/scsi/mac53c94.c

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoAdd module.h to /home/paul/git/module.h/linux-2.6.git/drivers/dma/ipu/ipu_idmac.c
Paul Gortmaker [Sun, 31 Jul 2011 20:14:17 +0000 (16:14 -0400)]
Add module.h to /home/paul/git/module.h/linux-2.6.git/drivers/dma/ipu/ipu_idmac.c

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoAdd module.h to /home/paul/git/module.h/linux-2.6.git/drivers/gpio/gpio-mxc.c
Paul Gortmaker [Sun, 31 Jul 2011 20:14:17 +0000 (16:14 -0400)]
Add module.h to /home/paul/git/module.h/linux-2.6.git/drivers/gpio/gpio-mxc.c

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoAdd module.h to /home/paul/git/module.h/linux-2.6.git/drivers/gpio/gpio-mpc5200.c
Paul Gortmaker [Sun, 31 Jul 2011 20:14:16 +0000 (16:14 -0400)]
Add module.h to /home/paul/git/module.h/linux-2.6.git/drivers/gpio/gpio-mpc5200.c

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoAdd module.h to /home/paul/git/module.h/linux-2.6.git/drivers/mmc/host/sdhci-pxav3.c
Paul Gortmaker [Sun, 31 Jul 2011 20:14:16 +0000 (16:14 -0400)]
Add module.h to /home/paul/git/module.h/linux-2.6.git/drivers/mmc/host/sdhci-pxav3.c

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoAdd module.h to /home/paul/git/module.h/linux-2.6.git/drivers/leds/leds-s3c24xx.c
Paul Gortmaker [Sun, 31 Jul 2011 20:14:16 +0000 (16:14 -0400)]
Add module.h to /home/paul/git/module.h/linux-2.6.git/drivers/leds/leds-s3c24xx.c

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoAdd module.h to /home/paul/git/module.h/linux-2.6.git/drivers/leds/leds-fsg.c
Paul Gortmaker [Sun, 31 Jul 2011 20:14:15 +0000 (16:14 -0400)]
Add module.h to /home/paul/git/module.h/linux-2.6.git/drivers/leds/leds-fsg.c

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoAdd module.h to /home/paul/git/module.h/linux-2.6.git/arch/powerpc/platforms/86xx...
Paul Gortmaker [Sun, 31 Jul 2011 20:14:15 +0000 (16:14 -0400)]
Add module.h to /home/paul/git/module.h/linux-2.6.git/arch/powerpc/platforms/86xx/gef_gpio.c

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoAdd module.h to /home/paul/git/module.h/linux-2.6.git/drivers/gpio/gpio-ep93xx.c
Paul Gortmaker [Sun, 31 Jul 2011 20:14:15 +0000 (16:14 -0400)]
Add module.h to /home/paul/git/module.h/linux-2.6.git/drivers/gpio/gpio-ep93xx.c

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoAdd module.h to /home/paul/git/module.h/linux-2.6.git/drivers/spi/spi-orion.c
Paul Gortmaker [Sun, 31 Jul 2011 20:14:15 +0000 (16:14 -0400)]
Add module.h to /home/paul/git/module.h/linux-2.6.git/drivers/spi/spi-orion.c

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoAdd module.h to /home/paul/git/module.h/linux-2.6.git/arch/arm/mach-davinci/cdce949.c
Paul Gortmaker [Sun, 31 Jul 2011 20:14:14 +0000 (16:14 -0400)]
Add module.h to /home/paul/git/module.h/linux-2.6.git/arch/arm/mach-davinci/cdce949.c

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoAdd module.h to /home/paul/git/module.h/linux-2.6.git/drivers/mtd/nand/cmx270_nand.c
Paul Gortmaker [Sun, 31 Jul 2011 20:14:14 +0000 (16:14 -0400)]
Add module.h to /home/paul/git/module.h/linux-2.6.git/drivers/mtd/nand/cmx270_nand.c

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoAdd module.h to /home/paul/git/module.h/linux-2.6.git/drivers/usb/host/fsl-mph-dr...
Paul Gortmaker [Sun, 31 Jul 2011 20:14:14 +0000 (16:14 -0400)]
Add module.h to /home/paul/git/module.h/linux-2.6.git/drivers/usb/host/fsl-mph-dr-of.c

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoAdd module.h to drivers/video/atmel_lcdfb.c
Paul Gortmaker [Sun, 31 Jul 2011 20:08:18 +0000 (16:08 -0400)]
Add module.h to drivers/video/atmel_lcdfb.c

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agolinux/dmaengine: implicitly is using asm/page.h
Paul Gortmaker [Sun, 31 Jul 2011 20:06:06 +0000 (16:06 -0400)]
linux/dmaengine: implicitly is using asm/page.h

Fix it so we don't see this:

include/linux/dmaengine.h:684: warning: 'struct page' declared inside parameter list
include/linux/dmaengine.h:684: warning: its scope is only this definition or declaration, which is probably not what you want
include/linux/dmaengine.h:687: warning: 'struct page' declared inside parameter list

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoAdd module.h to drivers/mmc/host/mxs-mmc.c
Paul Gortmaker [Sun, 31 Jul 2011 20:02:09 +0000 (16:02 -0400)]
Add module.h to drivers/mmc/host/mxs-mmc.c

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoAdd module.h to drivers/gpio/gpio-mxs.c
Paul Gortmaker [Sun, 31 Jul 2011 20:01:01 +0000 (16:01 -0400)]
Add module.h to drivers/gpio/gpio-mxs.c

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoarm - export
Paul Gortmaker [Sun, 31 Jul 2011 19:55:49 +0000 (15:55 -0400)]
arm - export

13 years agoarm - export
Paul Gortmaker [Sun, 31 Jul 2011 19:54:55 +0000 (15:54 -0400)]
arm - export

13 years agoarm - export
Paul Gortmaker [Sun, 31 Jul 2011 19:54:36 +0000 (15:54 -0400)]
arm - export

13 years agovideo - module
Paul Gortmaker [Sun, 31 Jul 2011 19:52:57 +0000 (15:52 -0400)]
video - module

13 years agoarm - module
Paul Gortmaker [Sun, 31 Jul 2011 19:50:52 +0000 (15:50 -0400)]
arm - module

13 years agospi - module
Paul Gortmaker [Sun, 31 Jul 2011 19:50:24 +0000 (15:50 -0400)]
spi - module

13 years agovideo - module
Paul Gortmaker [Sun, 31 Jul 2011 19:50:00 +0000 (15:50 -0400)]
video - module

13 years agovideo exoirt
Paul Gortmaker [Sun, 31 Jul 2011 19:45:43 +0000 (15:45 -0400)]
video exoirt

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agovideo : add expt
Paul Gortmaker [Sun, 31 Jul 2011 15:05:25 +0000 (11:05 -0400)]
video : add expt

13 years agoarm: add export
Paul Gortmaker [Sun, 31 Jul 2011 15:05:09 +0000 (11:05 -0400)]
arm: add export

13 years agovidfeo : export.h
Paul Gortmaker [Sun, 31 Jul 2011 15:01:45 +0000 (11:01 -0400)]
vidfeo : export.h

13 years agovideo: add module.h
Paul Gortmaker [Sun, 31 Jul 2011 15:01:30 +0000 (11:01 -0400)]
video: add module.h

13 years agovideo: another export
Paul Gortmaker [Sun, 31 Jul 2011 14:58:03 +0000 (10:58 -0400)]
video: another export

13 years agovideo: another export
Paul Gortmaker [Sun, 31 Jul 2011 14:57:14 +0000 (10:57 -0400)]
video: another export

13 years agoarm memset again
Paul Gortmaker [Sun, 31 Jul 2011 14:56:30 +0000 (10:56 -0400)]
arm memset again

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoarm memset again
Paul Gortmaker [Sun, 31 Jul 2011 14:55:55 +0000 (10:55 -0400)]
arm memset again

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoarm: add exoport
Paul Gortmaker [Sun, 31 Jul 2011 14:54:52 +0000 (10:54 -0400)]
arm: add exoport

13 years agoarm: fix implicit memset usage in omap2 usb-tusb6010.c
Paul Gortmaker [Sun, 31 Jul 2011 14:52:44 +0000 (10:52 -0400)]
arm: fix implicit memset usage in omap2 usb-tusb6010.c

To fix this:

arch/arm/mach-omap2/usb-tusb6010.c: In function 'tusb_set_async_mode':
arch/arm/mach-omap2/usb-tusb6010.c:58: error: implicit declaration of function 'memset'

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agomtd: omap2.c nand driver needs module.h
Paul Gortmaker [Sun, 31 Jul 2011 14:50:50 +0000 (10:50 -0400)]
mtd: omap2.c nand driver needs module.h

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoarm?: fix implicit string.h use in omap2/clockdomain.c
Paul Gortmaker [Sun, 31 Jul 2011 14:46:34 +0000 (10:46 -0400)]
arm?: fix implicit string.h use in omap2/clockdomain.c

Otherwise we get this:

arch/arm/mach-omap2/clockdomain.c: In function '_clkdm_lookup':
arch/arm/mach-omap2/clockdomain.c:52: error: implicit declaration of function 'strcmp'

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoarm: voltage export.h
Paul Gortmaker [Sun, 31 Jul 2011 14:45:52 +0000 (10:45 -0400)]
arm: voltage export.h

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoleds: needs module.h
Paul Gortmaker [Sun, 31 Jul 2011 14:43:46 +0000 (10:43 -0400)]
leds: needs module.h

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoarm: fix implicit use of PAGE_SHIFT in collie.c
Paul Gortmaker [Sun, 31 Jul 2011 14:42:00 +0000 (10:42 -0400)]
arm: fix implicit use of PAGE_SHIFT in collie.c

Otherwise we get this:

  CC      arch/arm/mach-sa1100/collie.o
arch/arm/mach-sa1100/collie.c:361: error: 'PAGE_SHIFT' undeclared here (not in a function)
make[3]: *** [arch/arm/mach-sa1100/collie.o] Error 1

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agopowerpc: cpmcommon export.h
Paul Gortmaker [Sun, 31 Jul 2011 08:39:29 +0000 (04:39 -0400)]
powerpc: cpmcommon export.h

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agopowerpc: mpc7448_hpc2.c needs module.h for search_exception_tables()
Paul Gortmaker [Sun, 31 Jul 2011 08:35:36 +0000 (04:35 -0400)]
powerpc: mpc7448_hpc2.c needs module.h for search_exception_tables()

Or else we'll get this:

arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c: In function 'mpc7448_machine_check_exception':
arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c:207: error: implicit declaration of function 'search_exception_tables'

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agomips: fix typo introduced by resource handling cleanup
Paul Gortmaker [Fri, 29 Jul 2011 00:11:01 +0000 (20:11 -0400)]
mips: fix typo introduced by resource handling cleanup

Commit 28f65c11f2ffb3957259dece647a24f8ad2e241b accidentally turned "rc"
into "rcrc" which causes this compile error:

arch/mips/pci/pci-rc32434.c: In function 'rc32434_pci_init':
arch/mips/pci/pci-rc32434.c:218: error: 'rcrc32434_res_pci_io1' undeclared (first use in this function)

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
CC: Joe Perches <joe@perches.com>
13 years agostaging: ft1000_proc needs asm/io.h for inw/outw on sparc
Paul Gortmaker [Sun, 31 Jul 2011 06:38:31 +0000 (02:38 -0400)]
staging: ft1000_proc needs asm/io.h for inw/outw on sparc

Seen during an allmodconfig build for sparc:

  CC [M]  drivers/staging/ft1000/ft1000-pcmcia/ft1000_proc.o
In file included from drivers/staging/ft1000/ft1000-pcmcia/ft1000_proc.c:26:
drivers/staging/ft1000/ft1000-pcmcia/ft1000.h: In function 'ft1000_read_reg':
drivers/staging/ft1000/ft1000-pcmcia/ft1000.h:80: error: implicit declaration of function 'inw'
drivers/staging/ft1000/ft1000-pcmcia/ft1000.h: In function 'ft1000_write_reg':
drivers/staging/ft1000/ft1000-pcmcia/ft1000.h:86: error: implicit declaration of function 'outw'

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agodrivers/input: kxtj9.c needs to explictly include module.h
Stephen Rothwell [Fri, 29 Jul 2011 05:06:46 +0000 (15:06 +1000)]
drivers/input: kxtj9.c needs to explictly include module.h

Since some of its facilities are used.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agodrivers/media: ir-raw.c needs kmod.h for request_module
Stephen Rothwell [Fri, 29 Jul 2011 05:34:32 +0000 (15:34 +1000)]
drivers/media: ir-raw.c needs kmod.h for request_module

To fix:

drivers/media/rc/ir-raw.c: In function 'init_decoders':
drivers/media/rc/ir-raw.c:354:2: error: implicit declaration of function 'request_module'

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoinclude: replace linux/module.h with "struct module" wherever possible
Paul Gortmaker [Thu, 26 May 2011 17:46:22 +0000 (13:46 -0400)]
include: replace linux/module.h with "struct module" wherever possible

The <linux/module.h> pretty much brings in the kitchen sink along
with it, so it should be avoided wherever reasonably possible in
terms of being included from other commonly used <linux/something.h>
files, as it results in a measureable increase on compile times.

The worst culprit was probably device.h since it is used everywhere.
This file also had an implicit dependency/usage of mutex.h which was
masked by module.h, and is also fixed here at the same time.

There are over a dozen other headers that simply declare the
struct instead of pulling in the whole file, so follow their lead
and simply make it a few more.

Most of the implicit dependencies on module.h being present by
these headers pulling it in have been now weeded out, so we can
finally make this change with hopefully minimal breakage.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoinclude: convert various register fcns to macros to avoid include chaining
Paul Gortmaker [Fri, 27 May 2011 13:02:11 +0000 (09:02 -0400)]
include: convert various register fcns to macros to avoid include chaining

The original implementations reference THIS_MODULE in an inline.
We could include <linux/export.h>, but it is better to avoid chaining.

Fortunately someone else already thought of this, and made a similar
inline into a #define in <linux/device.h> for device_schedule_callback(),
[see commit 523ded71de0] so follow that precedent here.

Also bubble up any __must_check that were used on the prev. wrapper inline
functions up one to the real __register functions, to preserve any prev.
sanity checks that were used in those instances.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agonet: sch_generic remove redundant use of <linux/module.h>
Paul Gortmaker [Thu, 26 May 2011 17:38:59 +0000 (13:38 -0400)]
net: sch_generic remove redundant use of <linux/module.h>

This file has modular references, but they are limited to
those which are covered by the simple "struct module;"
declaration used in dozens of other places.  In fact that
declaration is already there (just outside of the context
of this commit) so simply remove the include line.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agouwb.h: fix implicit use of asm/page.h for PAGE_SIZE
Paul Gortmaker [Sun, 17 Jul 2011 21:05:31 +0000 (17:05 -0400)]
uwb.h: fix implicit use of asm/page.h for PAGE_SIZE

Once we clean up the implicit presence of module.h (and all its
sub-includes), we'll see an implicit dependency on page.h for
the PAGE_SIZE define.  So fix it in advance.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agopm_runtime.h: explicitly requires notifier.h
Paul Gortmaker [Fri, 27 May 2011 11:08:41 +0000 (07:08 -0400)]
pm_runtime.h: explicitly requires notifier.h

This file was getting notifier.h via device.h --> module.h but
the module.h inclusion is going away, so add notifier.h directly.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agolinux/dmaengine.h needs bitmap.h
Stephen Rothwell [Fri, 29 Jul 2011 06:55:11 +0000 (16:55 +1000)]
linux/dmaengine.h needs bitmap.h

Presumably caused by some include file no longer being implicitly
included.

In file included from drivers/dma/iovlock.c:28:0:
include/linux/dmaengine.h: In function '__dma_cap_zero':
include/linux/dmaengine.h:736:2: error: implicit declaration of function 'bitmap_zero'
In file included from include/linux/nodemask.h:95:0,
                 from include/linux/mmzone.h:16,
                 from include/linux/gfp.h:4,
                 from include/linux/mm.h:8,
                 from include/linux/pagemap.h:7,
                 from drivers/dma/iovlock.c:29:
include/linux/bitmap.h: At top level:
include/linux/bitmap.h:159:20: warning: conflicting types for 'bitmap_zero'
include/linux/bitmap.h:159:20: error: static declaration of 'bitmap_zero' follows non-static declaration
include/linux/dmaengine.h:736:2: note: previous implicit declaration of 'bitmap_zero' was here

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agolinux/stop_machine.h: fix implicit use of smp.h for smp_processor_id
Paul Gortmaker [Sun, 17 Jul 2011 21:11:26 +0000 (17:11 -0400)]
linux/stop_machine.h: fix implicit use of smp.h for smp_processor_id

This will show up on MIPS when we fix all the implicit header presences
that are because of module.h being everywhere.

In file included from kernel/trace/ftrace.c:16:
include/linux/stop_machine.h: In function 'stop_one_cpu':
include/linux/stop_machine.h:50: error: implicit declaration of function 'smp_processor_id'
include/linux/stop_machine.h: In function 'stop_cpus':
include/linux/stop_machine.h:80: error: implicit declaration of function 'raw_smp_processor_id'

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agocrypto.h: remove unused crypto_tfm_alg_modname() inline
Paul Gortmaker [Thu, 26 May 2011 19:34:12 +0000 (15:34 -0400)]
crypto.h: remove unused crypto_tfm_alg_modname() inline

The <linux/crypto.h> (which is in turn in common headers
like tcp.h) wants to use module_name() in an inline fcn.
But having all of <linux/module.h> along for the ride is
overkill and slows down compiles by a measureable amount,
since it in turn includes lots of headers.

Since the inline is never used anywhere in the kernel[1],
we can just remove it, and then also remove the module.h
include as well.

In all the many crypto modules, there were some relying on
crypto.h including module.h -- for them we now explicitly
call out module.h for inclusion.

[1] git grep shows some staging drivers also define the same
static inline, but they also never ever use it.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agodevice_cgroup.h: delete needless include <linux/module.h>
Paul Gortmaker [Thu, 26 May 2011 19:58:15 +0000 (15:58 -0400)]
device_cgroup.h: delete needless include <linux/module.h>

There is nothing modular in this file, and no reason to drag
in all the 357 headers that module.h brings with it, since
it just slows down compiles.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agonet: inet_timewait_sock doesnt need <linux/module.h>
Paul Gortmaker [Thu, 26 May 2011 17:36:45 +0000 (13:36 -0400)]
net: inet_timewait_sock doesnt need <linux/module.h>

There is nothing module specific in this header, and removing
it doesn't seem to uncover any implicit dependencies either.
Must be simply a vestige of an ancient legacy.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agosysdev.h: dont include <linux/module.h> for no reason
Paul Gortmaker [Thu, 26 May 2011 15:41:46 +0000 (11:41 -0400)]
sysdev.h: dont include <linux/module.h> for no reason

The <linux/module.h> pretty much brings in the kitchen sink along
with it, so it should be avoided wherever reasonably possible in
terms of being included from other commonly used <linux/something.h>
files, as it results in a measureable increase on compile times.

There doesn't appear to be any module specifics in this file.
The obvious people who were relying on the presence of
the vast amount of stuff module.h sucked in have been fixed.

If other files are implicitly relying on it, then lets see who
they are and fix them too.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agodrivers/edac: Add module.h to mce_amd_inj.c
Paul Gortmaker [Sun, 3 Jul 2011 17:37:56 +0000 (13:37 -0400)]
drivers/edac: Add module.h to mce_amd_inj.c

This file really needs the full module.h header file present, but
was just getting it implicitly before.  Fix it up in advance so we
avoid build failures once the cleanup commit is present.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agolib: dma-debug needs export.h for EXPORT_SYMBOL
Paul Gortmaker [Fri, 1 Jul 2011 20:23:59 +0000 (16:23 -0400)]
lib: dma-debug needs export.h for EXPORT_SYMBOL

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agodrivers/sfi: sfi_acpi.c needs sysfs.h
Randy Dunlap [Sat, 30 Jul 2011 01:09:12 +0000 (18:09 -0700)]
drivers/sfi: sfi_acpi.c needs sysfs.h

sfi_acpi.c needs to include linux/sysfs.h for data types.

drivers/sfi/sfi_core.h:66: error: field 'attr' has incomplete type
drivers/sfi/sfi_acpi.c:179: warning: 'struct kobject' declared inside parameter list
drivers/sfi/sfi_acpi.c:179: warning: its scope is only this definition or declaration, which is probably not what you want
drivers/sfi/sfi_acpi.c:182: warning: type defaults to 'int' in declaration of '__mptr'
drivers/sfi/sfi_acpi.c:182: warning: initialization from incompatible pointer type

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agodrivers/pcmcia: add module.h to db1xxx_ss.c
Paul Gortmaker [Thu, 28 Jul 2011 22:44:02 +0000 (18:44 -0400)]
drivers/pcmcia: add module.h to db1xxx_ss.c

As we will get this after the module.h usage cleanup.

drivers/pcmcia/db1xxx_ss.c:577: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE'

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agodrivers/dca: Add module.h to dca-core.c
Paul Gortmaker [Sun, 3 Jul 2011 17:37:11 +0000 (13:37 -0400)]
drivers/dca: Add module.h to dca-core.c

This file really needs the full module.h header file present, but
was just getting it implicitly before.  Call it out in advance so
that we don't get future build failures on this.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agodrivers/hwmon: add module.h to ultra45_env.c
Paul Gortmaker [Mon, 18 Jul 2011 20:05:10 +0000 (16:05 -0400)]
drivers/hwmon: add module.h to ultra45_env.c

This file needs the full module.h header and up to now was just
implicitly capitalizing on it being present already.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agorapidio: Fix up those implicitly relying on getting stat.h
Paul Gortmaker [Fri, 15 Jul 2011 20:48:24 +0000 (16:48 -0400)]
rapidio: Fix up those implicitly relying on getting stat.h

Upon the trial removal of the implicit presence of module.h,
lots of files showed up that were getting the sub-includes
by default without calling them out.  Here is more of them.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agodrivers/w1: Add export.h for EXPORT_SYMBOL to w1_family.c
Paul Gortmaker [Sun, 10 Jul 2011 17:21:52 +0000 (13:21 -0400)]
drivers/w1: Add export.h for EXPORT_SYMBOL to w1_family.c

Give this file export.h so that it can reliably get the EXPORT_SYMBOL
macros in the future, once module.h isn't implicitly everywhere.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agodrivers/of: include export.h for EXPORT_SYMBOL_GPL in of_pci_irq.c
Stephen Rothwell [Fri, 29 Jul 2011 06:05:38 +0000 (16:05 +1000)]
drivers/of: include export.h for EXPORT_SYMBOL_GPL in of_pci_irq.c

This is an interaction with commit 98d9f30c820d ("pci/of: Match PCI
devices to OF nodes dynamically") which split off part of
drivers/of/of_pci.c, causing:

drivers/of/of_pci_irq.c:92:1: warning: data definition has no type or storage class
drivers/of/of_pci_irq.c:92:1: warning: type defaults to 'int' in declaration of 'EXPORT_SYMBOL_GPL'
drivers/of/of_pci_irq.c:92:1: warning: parameter names (without types) in function declaration

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agodrivers/sh: Add export.h for EXPORT_SYMBOL to intc/virq.c
Paul Gortmaker [Sun, 10 Jul 2011 16:57:12 +0000 (12:57 -0400)]
drivers/sh: Add export.h for EXPORT_SYMBOL to intc/virq.c

This is exporting symbols and will fail to build once we remove
the implicit presence of module.h

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agodrivers/isdn: Add export.h for THIS_MODULE to capi/kcapi_proc.c
Paul Gortmaker [Sun, 10 Jul 2011 16:23:16 +0000 (12:23 -0400)]
drivers/isdn: Add export.h for THIS_MODULE to capi/kcapi_proc.c

In preparation of the module.h usage cleanup, call out the header
that we need to get THIS_MODULE into scope.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agodrm: Add export.h for EXPORT_SYMBOL to ttm/ttm_tt.c
Paul Gortmaker [Sun, 10 Jul 2011 16:20:27 +0000 (12:20 -0400)]
drm: Add export.h for EXPORT_SYMBOL to ttm/ttm_tt.c

This exports symbols, but wasn't calling out the module.h header
before.  Add in export.h so that it still builds once we halt the
spread of module.h to every file.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agodrivers/firewire: Add export.h for EXPORT_SYMBOL to core-iso.c
Paul Gortmaker [Sun, 10 Jul 2011 16:16:32 +0000 (12:16 -0400)]
drivers/firewire: Add export.h for EXPORT_SYMBOL to core-iso.c

Ensure that the EXPORT_SYMBOL macros are present for when we clean up
the "module.h" is everywhere situation, to prevent build failures.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agodrivers/dca: Add export.h for THIS_MODULE to dca-sysfs.c
Paul Gortmaker [Sun, 10 Jul 2011 16:15:51 +0000 (12:15 -0400)]
drivers/dca: Add export.h for THIS_MODULE to dca-sysfs.c

Ensure we have access to the THIS_MODLUE macro once we clean up
the implicit module.h usage.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agodrivers/message: Add module.h to i2o/pci.c
Paul Gortmaker [Sun, 3 Jul 2011 19:13:20 +0000 (15:13 -0400)]
drivers/message: Add module.h to i2o/pci.c

This file really needs the full module.h header file present, but
was just getting it implicitly before.  Fix it up in advance so we
avoid build failures once the cleanup commit is present.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agouwb: Add export.h for EXPORT_SYMBOL/THIS_MODULE as required
Paul Gortmaker [Sun, 10 Jul 2011 17:18:02 +0000 (13:18 -0400)]
uwb: Add export.h for EXPORT_SYMBOL/THIS_MODULE as required

These macros are no longer in module.h and module.h is no longer
present everywhere.  Call out export.h for the real users who
are making use of these macros, or else we'll get things like:

 CC      drivers/uwb/umc-drv.o
drivers/uwb/umc-dev.c:42: warning: data definition has no type or storage class
drivers/uwb/umc-dev.c:42: warning: type defaults to ‘int’ in declaration of ‘EXPORT_SYMBOL_GPL’
drivers/uwb/umc-dev.c:42: warning: parameter names (without types) in function declaration

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agouwb: Add module.h to the real uwb modular users.
Paul Gortmaker [Sun, 17 Jul 2011 20:40:36 +0000 (16:40 -0400)]
uwb: Add module.h to the real uwb modular users.

Lots of files were getting an implicit include of module.h
for years now.  But that will be fixed shortly.  So get the
real users to call out the include explicitly.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agodrivers/uwb: fix implicit use of stat.h
Paul Gortmaker [Sun, 17 Jul 2011 20:50:39 +0000 (16:50 -0400)]
drivers/uwb: fix implicit use of stat.h

The module.h (via device.h) was pulling handfuls of implicitly present
header files -- including basic stuff like stat.h.  Fix up these stat.h
users in advance so they don't break on the cleanup.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agodrivers/gpio: Fix drivers who are implicit users of module.h
Paul Gortmaker [Sun, 3 Jul 2011 17:38:09 +0000 (13:38 -0400)]
drivers/gpio: Fix drivers who are implicit users of module.h

A pending cleanup will mean that module.h won't be implicitly
everywhere anymore.  Make sure the modular drivers in gpio
are actually calling out for <module.h> explicitly in advance.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agodrivers/of: Add module.h to of_spi.c
Paul Gortmaker [Sun, 17 Jul 2011 19:58:06 +0000 (15:58 -0400)]
drivers/of: Add module.h to of_spi.c

This file really needs the full module.h header file present, but
was just getting it implicitly before.  Fix it up in advance so we
avoid build failures once the cleanup commit is present.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agodrivers/spi: Add export.h for THIS_MODULE/EXPORT_SYMBOL to spi.c
Paul Gortmaker [Sun, 10 Jul 2011 16:57:55 +0000 (12:57 -0400)]
drivers/spi: Add export.h for THIS_MODULE/EXPORT_SYMBOL to spi.c

This uses both EXPORT_SYMBOL and THIS_MODULE, both which come from
the export.h file now

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agospi: spi-au1550.c was implicitly using module.h
Paul Gortmaker [Thu, 28 Jul 2011 23:33:33 +0000 (19:33 -0400)]
spi: spi-au1550.c was implicitly using module.h

It needs the full module.h header, else you get:

drivers/spi/spi-au1550.c:1030: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION'

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agospi: Add module.h to implicit users in drivers/spi
Paul Gortmaker [Sun, 3 Jul 2011 19:44:29 +0000 (15:44 -0400)]
spi: Add module.h to implicit users in drivers/spi

We are clipping down the presence of module.h, since it was
everywhere.  If you really need it, you better call it out,
as per this changeset.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoregulator/driver.h: Fix implicit use of notifier.h
Paul Gortmaker [Sun, 17 Jul 2011 20:24:35 +0000 (16:24 -0400)]
regulator/driver.h: Fix implicit use of notifier.h

This was implicitly appearing by way of module.h -- but when
we fix that, we'll get this:

In file included from drivers/regulator/dummy.c:21:
include/linux/regulator/driver.h:197: error: field 'notifier' has incomplete type
make[3]: *** [drivers/regulator/dummy.o] Error 1

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agoregulator: Add module.h to drivers/regulator users as required
Paul Gortmaker [Sun, 17 Jul 2011 20:28:23 +0000 (16:28 -0400)]
regulator: Add module.h to drivers/regulator users as required

Another group of drivers that are taking advantage of the implicit
presence of module.h -- and will break when we pull the carpet out
from under them during a cleanup.  Fix 'em now.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agodrivers/regulator: Add export.h for THIS_MODULE to dummy.c
Paul Gortmaker [Sun, 17 Jul 2011 19:48:22 +0000 (15:48 -0400)]
drivers/regulator: Add export.h for THIS_MODULE to dummy.c

So that THIS_MODULE is still in scope once we clean up the presence
of module.h being everywhere.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agodrivers: pci-sysfs.c needs export.h for THIS_MODULE
Paul Gortmaker [Fri, 27 May 2011 13:20:21 +0000 (09:20 -0400)]
drivers: pci-sysfs.c needs export.h for THIS_MODULE

Otherwise, once you break the chain of implicit includes from
device.h --> module.h then you will get this:

pci-sysfs.c: In function ‘remove_store’:
pci-sysfs.c:350: error: ‘THIS_MODULE’ undeclared (first use in this function)
pci-sysfs.c:350: error: (Each undeclared identifier is reported only once
pci-sysfs.c:350: error: for each function it appears in.)
make[3]: *** [drivers/pci/pci-sysfs.o] Error 1

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agodrivers/pci: Add module.h to hotplug/pciehp_acpi.c
Paul Gortmaker [Sun, 3 Jul 2011 19:27:05 +0000 (15:27 -0400)]
drivers/pci: Add module.h to hotplug/pciehp_acpi.c

This file really needs the full module.h header file present, but
was just getting it implicitly before.  Fix it up in advance so we
avoid build failures once the cleanup commit is present.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
13 years agovirtio: Add module.h to drivers/virtio users.
Paul Gortmaker [Sun, 3 Jul 2011 20:20:30 +0000 (16:20 -0400)]
virtio: Add module.h to drivers/virtio users.

Up to now, the module.h header was as hard to keep out as
sunlight.  But we are cleaning that up.  Fix the virtio users
who simply expect module.h to be there in every C file.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>