]> git.karo-electronics.de Git - karo-tx-linux.git/commit
include: replace linux/module.h with "struct module" wherever possible
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 26 May 2011 17:46:22 +0000 (13:46 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 31 Jul 2011 08:06:39 +0000 (04:06 -0400)
commit2b347a04f39752d7ee1aff3abe9d69560f53d4fd
treec1c327b8a2ef4fafa7e91468e08361ac1eb17b75
parent2aeabb21920e864b441590a44a787362bbd2fb10
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>
22 files changed:
include/drm/drmP.h
include/linux/blkdev.h
include/linux/cpuidle.h
include/linux/device.h
include/linux/firmware.h
include/linux/ftrace.h
include/linux/i2c.h
include/linux/ipmi.h
include/linux/ipmi_smi.h
include/linux/mdio-bitbang.h
include/linux/mtd/mtd.h
include/linux/sunrpc/svc_xprt.h
include/linux/textsearch.h
include/linux/uio_driver.h
include/linux/vlynq.h
include/media/saa7146.h
include/media/v4l2-int-device.h
include/net/lib80211.h
include/net/sock.h
include/sound/core.h
include/trace/define_trace.h
include/trace/events/module.h