summaryrefslogtreecommitdiffstats
path: root/lib/strncpy_from_user.c
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2015-02-13 00:03:16 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2015-02-13 03:54:16 +0100
commitbf3c2d6d2f9649f1cdfac96781e98a097e871147 (patch)
treefca055aad5592e168c1eac6c6bf0508ab136db51 /lib/strncpy_from_user.c
parentlib/stmp_device.c: replace module.h include (diff)
downloadlinux-bf3c2d6d2f9649f1cdfac96781e98a097e871147.tar.xz
linux-bf3c2d6d2f9649f1cdfac96781e98a097e871147.zip
lib/strncpy_from_user.c: replace module.h include
strncpy_from_user.c only needs EXPORT_SYMBOL, so just include compiler.h and export.h instead of the whole module.h machinery. Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r--lib/strncpy_from_user.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/strncpy_from_user.c b/lib/strncpy_from_user.c
index bb2b201d6ad0..e0af6ff73d14 100644
--- a/lib/strncpy_from_user.c
+++ b/lib/strncpy_from_user.c
@@ -1,4 +1,5 @@
-#include <linux/module.h>
+#include <linux/compiler.h>
+#include <linux/export.h>
#include <linux/uaccess.h>
#include <linux/kernel.h>
#include <linux/errno.h>