Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8bc3bcc9 authored by Paul Gortmaker's avatar Paul Gortmaker
Browse files

lib: reduce the use of module.h wherever possible



For files only using THIS_MODULE and/or EXPORT_SYMBOL, map
them onto including export.h -- or if the file isn't even
using those, then just delete the include.  Fix up any implicit
include dependencies that were being masked by module.h along
the way.

Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent 630d9c47
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)
{
+1 −1
Original line number Diff line number Diff line
@@ -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>

/*
+2 −1
Original line number Diff line number Diff line
@@ -5,8 +5,9 @@
 * 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>
#include <linux/log2.h>

+1 −1
Original line number Diff line number Diff line
#include <linux/bcd.h>
#include <linux/module.h>
#include <linux/export.h>

unsigned bcd2bin(unsigned char val)
{
+2 −1
Original line number Diff line number Diff line
@@ -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>
Loading