diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-24 13:24:31 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-24 13:24:31 -0400 |
| commit | 11bcb32848ddb5ab28f09f142b625e2ba4d55c4c (patch) | |
| tree | 9a2c085e1fce41012bb0f2a340f6ceaaf616b7a0 /lib | |
| parent | ed2d265d1266736bd294332d7f649003943ae36e (diff) | |
| parent | 8bc3bcc93a2b4e47d5d410146f6546bca6171663 (diff) | |
Merge tag 'module-for-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux
Pull cleanup of fs/ and lib/ users of module.h from Paul Gortmaker:
"Fix up files in fs/ and lib/ dirs to only use module.h if they really
need it.
These are trivial in scope vs the work done previously. We now have
things where any few remaining cleanups can be farmed out to arch or
subsystem maintainers, and I have done so when possible. What is
remaining here represents the bits that don't clearly lie within a
single arch/subsystem boundary, like the fs dir and the lib dir.
Some duplicate includes arising from overlapping fixes from
independent subsystem maintainer submissions are also quashed."
Fix up trivial conflicts due to clashes with other include file cleanups
(including some due to the previous bug.h cleanup pull).
* tag 'module-for-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux:
lib: reduce the use of module.h wherever possible
fs: reduce the use of module.h wherever possible
includecheck: delete any duplicate instances of module.h
Diffstat (limited to 'lib')
63 files changed, 71 insertions, 63 deletions
diff --git a/lib/argv_split.c b/lib/argv_split.c index 4b1b083f219c..1e9a6cbc3689 100644 --- a/lib/argv_split.c +++ b/lib/argv_split.c | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | #include <linux/ctype.h> | 6 | #include <linux/ctype.h> |
| 7 | #include <linux/string.h> | 7 | #include <linux/string.h> |
| 8 | #include <linux/slab.h> | 8 | #include <linux/slab.h> |
| 9 | #include <linux/module.h> | 9 | #include <linux/export.h> |
| 10 | 10 | ||
| 11 | static const char *skip_arg(const char *cp) | 11 | static const char *skip_arg(const char *cp) |
| 12 | { | 12 | { |
diff --git a/lib/atomic64.c b/lib/atomic64.c index 3975470caf4f..978537809d84 100644 --- a/lib/atomic64.c +++ b/lib/atomic64.c | |||
| @@ -13,7 +13,7 @@ | |||
| 13 | #include <linux/cache.h> | 13 | #include <linux/cache.h> |
| 14 | #include <linux/spinlock.h> | 14 | #include <linux/spinlock.h> |
| 15 | #include <linux/init.h> | 15 | #include <linux/init.h> |
| 16 | #include <linux/module.h> | 16 | #include <linux/export.h> |
| 17 | #include <linux/atomic.h> | 17 | #include <linux/atomic.h> |
| 18 | 18 | ||
| 19 | /* | 19 | /* |
diff --git a/lib/average.c b/lib/average.c index 57c38c6e39cd..99a67e662b3c 100644 --- a/lib/average.c +++ b/lib/average.c | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | * Version 2. See the file COPYING for more details. | 5 | * Version 2. See the file COPYING for more details. |
| 6 | */ | 6 | */ |
| 7 | 7 | ||
| 8 | #include <linux/module.h> | 8 | #include <linux/export.h> |
| 9 | #include <linux/average.h> | 9 | #include <linux/average.h> |
| 10 | #include <linux/kernel.h> | 10 | #include <linux/kernel.h> |
| 11 | #include <linux/bug.h> | 11 | #include <linux/bug.h> |
| @@ -1,5 +1,5 @@ | |||
| 1 | #include <linux/bcd.h> | 1 | #include <linux/bcd.h> |
| 2 | #include <linux/module.h> | 2 | #include <linux/export.h> |
| 3 | 3 | ||
| 4 | unsigned bcd2bin(unsigned char val) | 4 | unsigned bcd2bin(unsigned char val) |
| 5 | { | 5 | { |
diff --git a/lib/bitmap.c b/lib/bitmap.c index 90a683b34075..b5a8b6ad2454 100644 --- a/lib/bitmap.c +++ b/lib/bitmap.c | |||
| @@ -5,7 +5,8 @@ | |||
| 5 | * This source code is licensed under the GNU General Public License, | 5 | * This source code is licensed under the GNU General Public License, |
| 6 | * Version 2. See the file COPYING for more details. | 6 | * Version 2. See the file COPYING for more details. |
| 7 | */ | 7 | */ |
| 8 | #include <linux/module.h> | 8 | #include <linux/export.h> |
| 9 | #include <linux/thread_info.h> | ||
| 9 | #include <linux/ctype.h> | 10 | #include <linux/ctype.h> |
| 10 | #include <linux/errno.h> | 11 | #include <linux/errno.h> |
| 11 | #include <linux/bitmap.h> | 12 | #include <linux/bitmap.h> |
diff --git a/lib/bsearch.c b/lib/bsearch.c index 5b54758e2afb..e33c179089db 100644 --- a/lib/bsearch.c +++ b/lib/bsearch.c | |||
| @@ -9,7 +9,7 @@ | |||
| 9 | * published by the Free Software Foundation; version 2. | 9 | * published by the Free Software Foundation; version 2. |
| 10 | */ | 10 | */ |
| 11 | 11 | ||
| 12 | #include <linux/module.h> | 12 | #include <linux/export.h> |
| 13 | #include <linux/bsearch.h> | 13 | #include <linux/bsearch.h> |
| 14 | 14 | ||
| 15 | /* | 15 | /* |
diff --git a/lib/check_signature.c b/lib/check_signature.c index fd6af199247b..6b49797980c4 100644 --- a/lib/check_signature.c +++ b/lib/check_signature.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | #include <linux/io.h> | 1 | #include <linux/io.h> |
| 2 | #include <linux/module.h> | 2 | #include <linux/export.h> |
| 3 | 3 | ||
| 4 | /** | 4 | /** |
| 5 | * check_signature - find BIOS signatures | 5 | * check_signature - find BIOS signatures |
diff --git a/lib/checksum.c b/lib/checksum.c index 8df2f91e6d98..12dceb27ff20 100644 --- a/lib/checksum.c +++ b/lib/checksum.c | |||
| @@ -32,7 +32,7 @@ | |||
| 32 | /* Revised by Kenneth Albanowski for m68knommu. Basic problem: unaligned access | 32 | /* Revised by Kenneth Albanowski for m68knommu. Basic problem: unaligned access |
| 33 | kills, so most of the assembly has to go. */ | 33 | kills, so most of the assembly has to go. */ |
| 34 | 34 | ||
| 35 | #include <linux/module.h> | 35 | #include <linux/export.h> |
| 36 | #include <net/checksum.h> | 36 | #include <net/checksum.h> |
| 37 | 37 | ||
| 38 | #include <asm/byteorder.h> | 38 | #include <asm/byteorder.h> |
diff --git a/lib/cmdline.c b/lib/cmdline.c index f5f3ad8b62ff..eb6791188cf5 100644 --- a/lib/cmdline.c +++ b/lib/cmdline.c | |||
| @@ -12,7 +12,7 @@ | |||
| 12 | * | 12 | * |
| 13 | */ | 13 | */ |
| 14 | |||
