projects/linux·commit 11bcb328

Merge tag 'module-for-3.4' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux

11bcb328 · Linus Torvalds <[email protected]> · 2012-03-24 10:24:31 -07:00

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
Commit
11bcb32848ddb5ab28f09f142b625e2ba4d55c4c
Parents
ed2d265d · 8bc3bcc9

Merge commit. Changes below are compared with the first parent: ed2d265d.

Changes

100 files changed · +100 −100

FileStatusAddDelContent
drivers/dma/imx-dma.cmodified+0−1View file
drivers/dma/imx-sdma.cmodified+0−1View file
drivers/mmc/host/sdhci-tegra.cmodified+0−1View file
drivers/power/max8998_charger.cmodified+0−1View file
drivers/staging/iio/gyro/adis16060_core.cmodified+0−1View file
fs/aio.cmodified+1−1View file
fs/attr.cmodified+1−1View file
fs/bad_inode.cmodified+1−1View file
fs/binfmt_flat.cmodified+1−1View file
fs/bio.cmodified+1−1View file
fs/buffer.cmodified+1−1View file
fs/compat.cmodified+0−1View file
fs/compat_ioctl.cmodified+0−1View file
fs/dcache.cmodified+1−1View file
fs/dcookies.cmodified+1−1View file
fs/eventfd.cmodified+1−1View file
fs/file.cmodified+1−1View file
fs/fs-writeback.cmodified+1−1View file
fs/fs_struct.cmodified+1−1View file
fs/ioctl.cmodified+1−1View file
fs/libfs.cmodified+1−1View file
fs/mpage.cmodified+1−1View file
fs/namei.cmodified+1−1View file
fs/posix_acl.cmodified+1−1View file
fs/read_write.cmodified+1−1View file
fs/readdir.cmodified+1−1View file
fs/select.cmodified+1−1View file
fs/seq_file.cmodified+1−1View file
fs/splice.cmodified+1−1View file
fs/stack.cmodified+1−1View file
fs/stat.cmodified+1−1View file
fs/statfs.cmodified+1−1View file
fs/super.cmodified+1−1View file
fs/sync.cmodified+1−1View file
fs/xattr.cmodified+1−1View file
fs/xattr_acl.cmodified+1−1View file
kernel/params.cmodified+0−1View file
lib/argv_split.cmodified+1−1View file
lib/atomic64.cmodified+1−1View file
lib/average.cmodified+1−1View file
lib/bcd.cmodified+1−1View file
lib/bitmap.cmodified+2−1View file
lib/bsearch.cmodified+1−1View file
lib/check_signature.cmodified+1−1View file
lib/checksum.cmodified+1−1View file
lib/cmdline.cmodified+1−1View file
lib/cpu_rmap.cmodified+1−1View file
lib/cpumask.cmodified+1−1View file
lib/ctype.cmodified+2−1View file
lib/debug_locks.cmodified+1−1View file
lib/dec_and_lock.cmodified+1−1View file
lib/devres.cmodified+1−1View file
lib/div64.cmodified+2−1View file
lib/dump_stack.cmodified+1−1View file
lib/fault-inject.cmodified+1−1View file
lib/find_last_bit.cmodified+1−1View file
lib/find_next_bit.cmodified+1−1View file
lib/flex_array.cmodified+1−1View file
lib/gcd.cmodified+1−1View file
lib/genalloc.cmodified+1−1View file
lib/halfmd4.cmodified+1−1View file
lib/hexdump.cmodified+1−1View file
lib/hweight.cmodified+1−1View file
lib/idr.cmodified+1−1View file
lib/int_sqrt.cmodified+1−1View file
lib/iomap.cmodified+1−1View file
lib/iomap_copy.cmodified+1−1View file
lib/iommu-helper.cmodified+1−1View file
lib/ioremap.cmodified+1−1View file
lib/irq_regs.cmodified+2−1View file
lib/kasprintf.cmodified+1−1View file
lib/klist.cmodified+1−1View file
lib/kobject.cmodified+1−1View file
lib/kobject_uevent.cmodified+2−1View file
lib/kstrtox.cmodified+1−1View file
lib/lcm.cmodified+1−1View file
lib/list_debug.cmodified+1−1View file
lib/llist.cmodified+1−1View file
lib/locking-selftest.cmodified+0−1View file
lib/md5.cmodified+1−1View file
lib/nlattr.cmodified+1−1View file
lib/parser.cmodified+2−1View file
lib/radix-tree.cmodified+1−1View file
lib/random32.cmodified+1−1View file
lib/ratelimit.cmodified+1−1View file
lib/rational.cmodified+2−1View file
lib/rbtree.cmodified+1−1View file
lib/rwsem-spinlock.cmodified+1−1View file
lib/rwsem.cmodified+1−1View file
lib/scatterlist.cmodified+1−1View file
lib/sha1.cmodified+1−1View file
lib/smp_processor_id.cmodified+1−1View file
lib/spinlock_debug.cmodified+1−1View file
lib/string.cmodified+3−1View file
lib/string_helpers.cmodified+1−1View file
lib/swiotlb.cmodified+1−1View file
lib/syscall.cmodified+1−1View file
lib/timerqueue.cmodified+1−1View file
lib/uuid.cmodified+1−1View file
lib/vsprintf.cmodified+1−1View file

Only the first 600 diff lines are shown. Download the complete patch.

drivers/dma/imx-dma.c

View file
diff --git a/drivers/dma/imx-dma.c b/drivers/dma/imx-dma.c
index e4383ee..38586ba 100644
--- a/drivers/dma/imx-dma.c
+++ b/drivers/dma/imx-dma.c
@@ -14,7 +14,6 @@
* http://www.gnu.org/copyleft/gpl.html
*/
#include <linux/init.h>
-#include <linux/module.h>
#include <linux/types.h>
#include <linux/mm.h>
#include <linux/interrupt.h>

drivers/dma/imx-sdma.c

View file
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c
index 8bc5acf..63540d3 100644
--- a/drivers/dma/imx-sdma.c
+++ b/drivers/dma/imx-sdma.c
@@ -35,7 +35,6 @@
#include <linux/dmaengine.h>
#include <linux/of.h>
#include <linux/of_device.h>
-#include <linux/module.h>
#include <asm/irq.h>
#include <mach/sdma.h>

drivers/mmc/host/sdhci-tegra.c

View file
diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c
index 78a36eb..cb34856 100644
--- a/drivers/mmc/host/sdhci-tegra.c
+++ b/drivers/mmc/host/sdhci-tegra.c
@@ -23,7 +23,6 @@
#include <linux/gpio.h>
#include <linux/mmc/card.h>
#include <linux/mmc/host.h>
-#include <linux/module.h>
#include <asm/gpio.h>

drivers/power/max8998_charger.c

View file
diff --git a/drivers/power/max8998_charger.c b/drivers/power/max8998_charger.c
index 9b3f2bf..6dc01c2 100644
--- a/drivers/power/max8998_charger.c
+++ b/drivers/power/max8998_charger.c
@@ -19,7 +19,6 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include <linux/module.h>
#include <linux/err.h>
#include <linux/module.h>
#include <linux/slab.h>

drivers/staging/iio/gyro/adis16060_core.c

View file
diff --git a/drivers/staging/iio/gyro/adis16060_core.c b/drivers/staging/iio/gyro/adis16060_core.c
index c0ca709..02cc234 100644
--- a/drivers/staging/iio/gyro/adis16060_core.c
+++ b/drivers/staging/iio/gyro/adis16060_core.c
@@ -14,7 +14,6 @@
#include <linux/spi/spi.h>
#include <linux/slab.h>
#include <linux/sysfs.h>
-#include <linux/module.h>
#include "../iio.h"
#include "../sysfs.h"

fs/aio.c

View file
diff --git a/fs/aio.c b/fs/aio.c
index c7acaf3..4f71627 100644
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -13,7 +13,7 @@
#include <linux/errno.h>
#include <linux/time.h>
#include <linux/aio_abi.h>
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/syscalls.h>
#include <linux/backing-dev.h>
#include <linux/uio.h>

fs/attr.c

View file
diff --git a/fs/attr.c b/fs/attr.c
index 95053ad..73f69a6 100644
--- a/fs/attr.c
+++ b/fs/attr.c
@@ -5,7 +5,7 @@
* changes by Thomas Schoebel-Theuer
*/
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/time.h>
#include <linux/mm.h>
#include <linux/string.h>

fs/bad_inode.c

View file
diff --git a/fs/bad_inode.c b/fs/bad_inode.c
index 22e9a78..37268c5 100644
--- a/fs/bad_inode.c
+++ b/fs/bad_inode.c
@@ -9,7 +9,7 @@
*/
#include <linux/fs.h>
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/stat.h>
#include <linux/time.h>
#include <linux/namei.h>

fs/binfmt_flat.c

View file
diff --git a/fs/binfmt_flat.c b/fs/binfmt_flat.c
index 04f61f0..5979027 100644
--- a/fs/binfmt_flat.c
+++ b/fs/binfmt_flat.c
@@ -15,7 +15,7 @@
* JAN/99 -- coded full program relocation ([email protected])
*/
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/mm.h>

fs/bio.c

View file
diff --git a/fs/bio.c b/fs/bio.c
index b980ecd..e453924 100644
--- a/fs/bio.c
+++ b/fs/bio.c
@@ -22,7 +22,7 @@
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/kernel.h>
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/mempool.h>
#include <linux/workqueue.h>
#include <scsi/sg.h> /* for struct sg_iovec */

fs/buffer.c

View file
diff --git a/fs/buffer.c b/fs/buffer.c
index 1a30db7..70e2017 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -29,7 +29,7 @@
#include <linux/file.h>
#include <linux/quotaops.h>
#include <linux/highmem.h>
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/writeback.h>
#include <linux/hash.h>
#include <linux/suspend.h>

fs/compat.c

View file
diff --git a/fs/compat.c b/fs/compat.c
index 07880ba..14483a7 100644
--- a/fs/compat.c
+++ b/fs/compat.c
@@ -33,7 +33,6 @@
#include <linux/nfs4_mount.h>
#include <linux/syscalls.h>
#include <linux/ctype.h>
-#include <linux/module.h>
#include <linux/dirent.h>
#include <linux/fsnotify.h>
#include <linux/highuid.h>

fs/compat_ioctl.c

View file
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c
index 10d8cd9..debdfe0 100644
--- a/fs/compat_ioctl.c
+++ b/fs/compat_ioctl.c
@@ -49,7 +49,6 @@
#include <linux/elevator.h>
#include <linux/rtc.h>
#include <linux/pci.h>
-#include <linux/module.h>
#include <linux/serial.h>
#include <linux/if_tun.h>
#include <linux/ctype.h>

fs/dcache.c

View file
diff --git a/fs/dcache.c b/fs/dcache.c
index 2b55bd0..e9a07b2 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -23,7 +23,7 @@
#include <linux/init.h>
#include <linux/hash.h>
#include <linux/cache.h>
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/mount.h>
#include <linux/file.h>
#include <asm/uaccess.h>

fs/dcookies.c

View file
diff --git a/fs/dcookies.c b/fs/dcookies.c
index dda0dc7..17c7799 100644
--- a/fs/dcookies.c
+++ b/fs/dcookies.c
@@ -13,7 +13,7 @@
*/
#include <linux/syscalls.h>
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/slab.h>
#include <linux/list.h>
#include <linux/mount.h>

fs/eventfd.c

View file
diff --git a/fs/eventfd.c b/fs/eventfd.c
index d9a5917..dba15fe 100644
--- a/fs/eventfd.c
+++ b/fs/eventfd.c
@@ -16,7 +16,7 @@
#include <linux/spinlock.h>
#include <linux/anon_inodes.h>
#include <linux/syscalls.h>
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/kref.h>
#include <linux/eventfd.h>

fs/file.c

View file
diff --git a/fs/file.c b/fs/file.c
index 4c6992d..3c426de 100644
--- a/fs/file.c
+++ b/fs/file.c
@@ -6,7 +6,7 @@
* Manage the dynamic fd arrays in the process files_struct.
*/
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/fs.h>
#include <linux/mm.h>
#include <linux/mmzone.h>

fs/fs-writeback.c

View file
diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c
index 77b535a..236972b 100644
--- a/fs/fs-writeback.c
+++ b/fs/fs-writeback.c
@@ -14,7 +14,7 @@
*/
#include <linux/kernel.h>
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/spinlock.h>
#include <linux/slab.h>
#include <linux/sched.h>

fs/fs_struct.c

View file
diff --git a/fs/fs_struct.c b/fs/fs_struct.c
index 6324c42..e159e68 100644
--- a/fs/fs_struct.c
+++ b/fs/fs_struct.c
@@ -1,4 +1,4 @@
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/sched.h>
#include <linux/fs.h>
#include <linux/path.h>

fs/ioctl.c

View file
diff --git a/fs/ioctl.c b/fs/ioctl.c
index 066836e..29167be 100644
--- a/fs/ioctl.c
+++ b/fs/ioctl.c
@@ -10,7 +10,7 @@
#include <linux/file.h>
#include <linux/fs.h>
#include <linux/security.h>
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/uaccess.h>
#include <linux/writeback.h>
#include <linux/buffer_head.h>

fs/libfs.c

View file
diff --git a/fs/libfs.c b/fs/libfs.c
index 722e0d5..4a0d1f0 100644
--- a/fs/libfs.c
+++ b/fs/libfs.c
@@ -3,7 +3,7 @@
* Library for filesystems writers.
*/
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/pagemap.h>
#include <linux/slab.h>
#include <linux/mount.h>

fs/mpage.c

View file
diff --git a/fs/mpage.c b/fs/mpage.c
index 643e9f5..0face1c 100644
--- a/fs/mpage.c
+++ b/fs/mpage.c
@@ -13,7 +13,7 @@
*/
#include <linux/kernel.h>
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/mm.h>
#include <linux/kdev_t.h>
#include <linux/gfp.h>

fs/namei.c

View file
diff --git a/fs/namei.c b/fs/namei.c
index 73ec863..e615ff3 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -15,7 +15,7 @@
*/
#include <linux/init.h>
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/slab.h>
#include <linux/fs.h>
#include <linux/namei.h>

fs/posix_acl.c

View file
diff --git a/fs/posix_acl.c b/fs/posix_acl.c
index cea4623..5e325a4 100644
--- a/fs/posix_acl.c
+++ b/fs/posix_acl.c
@@ -18,7 +18,7 @@
#include <linux/fs.h>
#include <linux/sched.h>
#include <linux/posix_acl.h>
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/errno.h>

fs/read_write.c

View file
diff --git a/fs/read_write.c b/fs/read_write.c
index 5ad4248..ffc99d2 100644
--- a/fs/read_write.c
+++ b/fs/read_write.c
@@ -11,7 +11,7 @@
#include <linux/uio.h>
#include <linux/fsnotify.h>
#include <linux/security.h>
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/syscalls.h>
#include <linux/pagemap.h>
#include <linux/splice.h>

fs/readdir.c

View file
diff --git a/fs/readdir.c b/fs/readdir.c
index 356f715..cc0a822 100644
--- a/fs/readdir.c
+++ b/fs/readdir.c
@@ -6,7 +6,7 @@
#include <linux/stddef.h>
#include <linux/kernel.h>
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/time.h>
#include <linux/mm.h>
#include <linux/errno.h>

fs/select.c

View file
diff --git a/fs/select.c b/fs/select.c
index ecfd0b1..6fb8943 100644
--- a/fs/select.c
+++ b/fs/select.c
@@ -17,7 +17,7 @@
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/syscalls.h>
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/slab.h>
#include <linux/poll.h>
#include <linux/personality.h> /* for STICKY_TIMEOUTS */

fs/seq_file.c

View file
diff --git a/fs/seq_file.c b/fs/seq_file.c
index 46cfb06..0cbd049 100644
--- a/fs/seq_file.c
+++ b/fs/seq_file.c
@@ -6,7 +6,7 @@
*/
#include <linux/fs.h>
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/seq_file.h>
#include <linux/slab.h>

fs/splice.c

View file
diff --git a/fs/splice.c b/fs/splice.c
index f16402e..5f883de 100644
--- a/fs/splice.c
+++ b/fs/splice.c
@@ -25,7 +25,7 @@
#include <linux/mm_inline.h>
#include <linux/swap.h>
#include <linux/writeback.h>
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/syscalls.h>
#include <linux/uio.h>
#include <linux/security.h>

fs/stack.c

View file
diff --git a/fs/stack.c b/fs/stack.c
index 9c11519..5b53882 100644
--- a/fs/stack.c
+++ b/fs/stack.c
@@ -1,4 +1,4 @@
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/fs.h>
#include <linux/fs_stack.h>

fs/stat.c

View file
diff --git a/fs/stat.c b/fs/stat.c
index 86f1356..c733dc5 100644
--- a/fs/stat.c
+++ b/fs/stat.c
@@ -4,7 +4,7 @@
* Copyright (C) 1991, 1992 Linus Torvalds
*/
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/mm.h>
#include <linux/errno.h>
#include <linux/file.h>

fs/statfs.c

View file
diff --git a/fs/statfs.c b/fs/statfs.c
index 2aa6a22..43e6b6f 100644
--- a/fs/statfs.c
+++ b/fs/statfs.c
@@ -1,5 +1,5 @@
#include <linux/syscalls.h>
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/fs.h>
#include <linux/file.h>
#include <linux/mount.h>

fs/super.c

View file
diff --git a/fs/super.c b/fs/super.c
index 7fcb135..cf00177 100644
--- a/fs/super.c
+++ b/fs/super.c
@@ -20,7 +20,7 @@
* Heavily rewritten for 'one fs - one tree' dcache architecture. AV, Mar 2000
*/
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/slab.h>
#include <linux/acct.h>
#include <linux/blkdev.h>

fs/sync.c

View file
diff --git a/fs/sync.c b/fs/sync.c
index f3501ef..0e8db93 100644
--- a/fs/sync.c
+++ b/fs/sync.c
@@ -6,7 +6,7 @@
#include <linux/file.h>
#include <linux/fs.h>
#include <linux/slab.h>
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/namei.h>
#include <linux/sched.h>
#include <linux/writeback.h>

fs/xattr.c

View file
diff --git a/fs/xattr.c b/fs/xattr.c
index 82f4337..d6dfd24 100644
--- a/fs/xattr.c
+++ b/fs/xattr.c
@@ -16,7 +16,7 @@
#include <linux/security.h>
#include <linux/evm.h>
#include <linux/syscalls.h>
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/fsnotify.h>
#include <linux/audit.h>
#include <asm/uaccess.h>

fs/xattr_acl.c

View file
diff --git a/fs/xattr_acl.c b/fs/xattr_acl.c
index 8d5a506..69d06b0 100644
--- a/fs/xattr_acl.c
+++ b/fs/xattr_acl.c
@@ -5,7 +5,7 @@
* Copyright (C) 2001 by Andreas Gruenbacher, <[email protected]>
*/
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/fs.h>
#include <linux/posix_acl_xattr.h>
#include <linux/gfp.h>

kernel/params.c

View file
diff --git a/kernel/params.c b/kernel/params.c
index 4bc965d..47f5bf1 100644
--- a/kernel/params.c
+++ b/kernel/params.c
@@ -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/module.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/errno.h>

lib/argv_split.c

View file
diff --git a/lib/argv_split.c b/lib/argv_split.c
index 4b1b083..1e9a6cb 100644
--- a/lib/argv_split.c
+++ b/lib/argv_split.c
@@ -6,7 +6,7 @@
#include <linux/ctype.h>
#include <linux/string.h>
#include <linux/slab.h>
-#include <linux/module.h>
+#include <linux/export.h>
static const char *skip_arg(const char *cp)
{

lib/atomic64.c

View file
diff --git a/lib/atomic64.c b/lib/atomic64.c
index 3975470..9785378 100644
--- a/lib/atomic64.c
+++ b/lib/atomic64.c
@@ -13,7 +13,7 @@
#include <linux/cache.h>
#include <linux/spinlock.h>
#include <linux/init.h>
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/atomic.h>
/*

lib/average.c

View file
diff --git a/lib/average.c b/lib/average.c
index 57c38c6..99a67e6 100644
--- a/lib/average.c
+++ b/lib/average.c
@@ -5,7 +5,7 @@
* Version 2. See the file COPYING for more details.
*/
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/average.h>
#include <linux/kernel.h>
#include <linux/bug.h>

lib/bcd.c

View file
diff --git a/lib/bcd.c b/lib/bcd.c
index d74257f..55efaf7 100644
--- a/lib/bcd.c
+++ b/lib/bcd.c
@@ -1,5 +1,5 @@
#include <linux/bcd.h>
-#include <linux/module.h>
+#include <linux/export.h>
unsigned bcd2bin(unsigned char val)
{

lib/bitmap.c

View file
diff --git a/lib/bitmap.c b/lib/bitmap.c
index 90a683b..b5a8b6a 100644
--- a/lib/bitmap.c
+++ b/lib/bitmap.c
@@ -5,7 +5,8 @@
* This source code is licensed under the GNU General Public License,
* Version 2. See the file COPYING for more details.
*/
-#include <linux/module.h>
+#include <linux/export.h>
+#include <linux/thread_info.h>
#include <linux/ctype.h>
#include <linux/errno.h>
#include <linux/bitmap.h>

lib/bsearch.c

View file
diff --git a/lib/bsearch.c b/lib/bsearch.c
index 5b54758..e33c179 100644
--- a/lib/bsearch.c
+++ b/lib/bsearch.c
@@ -9,7 +9,7 @@
* published by the Free Software Foundation; version 2.
*/
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/bsearch.h>
/*

lib/check_signature.c

View file
diff --git a/lib/check_signature.c b/lib/check_signature.c
index fd6af19..6b49797 100644
--- a/lib/check_signature.c
+++ b/lib/check_signature.c
@@ -1,5 +1,5 @@
#include <linux/io.h>
-#include <linux/module.h>
+#include <linux/export.h>
/**
* check_signature - find BIOS signatures

lib/checksum.c

View file
diff --git a/lib/checksum.c b/lib/checksum.c
index 8df2f91..12dceb2 100644
--- a/lib/checksum.c
+++ b/lib/checksum.c
@@ -32,7 +32,7 @@
/* Revised by Kenneth Albanowski for m68knommu. Basic problem: unaligned access
kills, so most of the assembly has to go. */
-#include <linux/module.h>
+#include <linux/export.h>
#include <net/checksum.h>
#include <asm/byteorder.h>

lib/cmdline.c

View file
diff --git a/lib/cmdline.c b/lib/cmdline.c
index f5f3ad8..eb67911 100644
--- a/lib/cmdline.c
+++ b/lib/cmdline.c
@@ -12,7 +12,7 @@
*
*/
-#include <linux/module.h>
+#include <linux/export.h>
#include <linux/kernel.h>
#include <linux/string.h>

lib/cpu_rmap.c

View file
diff --git a/lib/cpu_rmap.c b/lib/cpu_rmap.c
index 987acfa..145dec5 100644
--- a/lib/cpu_rmap.c
+++ b/lib/cpu_rmap.c
@@ -11,7 +11,7 @@
#ifdef CONFIG_GENERIC_HARDIRQS
#include <linux/interrupt.h>
#endif
-#include <linux/module.h>
+#include <linux/export.h>
/*
* These functions maintain a mapping from CPUs to some ordered set of

lib/cpumask.c

View file
diff --git a/lib/cpumask.c b/lib/cpumask.c
index af3e581..0b66011 100644
--- a/lib/cpumask.c
+++ b/lib/cpumask.c
@@ -2,7 +2,7 @@
#include <linux/kernel.h>
#include <linux/bitops.h>
#include <linux/cpumask.h>

This diff is incomplete. Download the complete patch.

lib/ctype.c

View file

This diff is incomplete. Download the complete patch.

lib/debug_locks.c

View file

This diff is incomplete. Download the complete patch.

lib/dec_and_lock.c

View file

This diff is incomplete. Download the complete patch.

lib/devres.c

View file

This diff is incomplete. Download the complete patch.

lib/div64.c

View file

This diff is incomplete. Download the complete patch.

lib/dump_stack.c

View file

This diff is incomplete. Download the complete patch.

lib/fault-inject.c

View file

This diff is incomplete. Download the complete patch.

lib/find_last_bit.c

View file

This diff is incomplete. Download the complete patch.

lib/find_next_bit.c

View file

This diff is incomplete. Download the complete patch.

lib/flex_array.c

View file

This diff is incomplete. Download the complete patch.

lib/gcd.c

View file

This diff is incomplete. Download the complete patch.

lib/genalloc.c

View file

This diff is incomplete. Download the complete patch.

lib/halfmd4.c

View file

This diff is incomplete. Download the complete patch.

lib/hexdump.c

View file

This diff is incomplete. Download the complete patch.

lib/hweight.c

View file

This diff is incomplete. Download the complete patch.

lib/idr.c

View file

This diff is incomplete. Download the complete patch.

lib/int_sqrt.c

View file

This diff is incomplete. Download the complete patch.

lib/iomap.c

View file

This diff is incomplete. Download the complete patch.

lib/iomap_copy.c

View file

This diff is incomplete. Download the complete patch.

lib/iommu-helper.c

View file

This diff is incomplete. Download the complete patch.

lib/ioremap.c

View file

This diff is incomplete. Download the complete patch.

lib/irq_regs.c

View file

This diff is incomplete. Download the complete patch.

lib/kasprintf.c

View file

This diff is incomplete. Download the complete patch.

lib/klist.c

View file

This diff is incomplete. Download the complete patch.

lib/kobject.c

View file

This diff is incomplete. Download the complete patch.

lib/kobject_uevent.c

View file

This diff is incomplete. Download the complete patch.

lib/kstrtox.c

View file

This diff is incomplete. Download the complete patch.

lib/lcm.c

View file

This diff is incomplete. Download the complete patch.

lib/list_debug.c

View file

This diff is incomplete. Download the complete patch.

lib/llist.c

View file

This diff is incomplete. Download the complete patch.

lib/locking-selftest.c

View file

This diff is incomplete. Download the complete patch.

lib/md5.c

View file

This diff is incomplete. Download the complete patch.

lib/nlattr.c

View file

This diff is incomplete. Download the complete patch.

lib/parser.c

View file

This diff is incomplete. Download the complete patch.

lib/radix-tree.c

View file

This diff is incomplete. Download the complete patch.

lib/random32.c

View file

This diff is incomplete. Download the complete patch.

lib/ratelimit.c

View file

This diff is incomplete. Download the complete patch.

lib/rational.c

View file

This diff is incomplete. Download the complete patch.

lib/rbtree.c

View file

This diff is incomplete. Download the complete patch.

lib/rwsem-spinlock.c

View file

This diff is incomplete. Download the complete patch.

lib/rwsem.c

View file

This diff is incomplete. Download the complete patch.

lib/scatterlist.c

View file

This diff is incomplete. Download the complete patch.

lib/sha1.c

View file

This diff is incomplete. Download the complete patch.

lib/smp_processor_id.c

View file

This diff is incomplete. Download the complete patch.

lib/spinlock_debug.c

View file

This diff is incomplete. Download the complete patch.

lib/string.c

View file

This diff is incomplete. Download the complete patch.

lib/string_helpers.c

View file

This diff is incomplete. Download the complete patch.

lib/swiotlb.c

View file

This diff is incomplete. Download the complete patch.

lib/syscall.c

View file

This diff is incomplete. Download the complete patch.

lib/timerqueue.c

View file

This diff is incomplete. Download the complete patch.

lib/uuid.c

View file

This diff is incomplete. Download the complete patch.

lib/vsprintf.c

View file

This diff is incomplete. Download the complete patch.