summaryrefslogtreecommitdiffstats
path: root/lib/strncpy_from_user.c
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2015-02-12 15:03:16 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2015-02-12 18:54:16 -0800
commitbf3c2d6d2f9649f1cdfac96781e98a097e871147 (patch)
treefca055aad5592e168c1eac6c6bf0508ab136db51 /lib/strncpy_from_user.c
parentb6d4f3221d7fe00d440edaeeb6cde7257ae63a73 (diff)
downloadlinux-stable-bf3c2d6d2f9649f1cdfac96781e98a097e871147.tar.gz
linux-stable-bf3c2d6d2f9649f1cdfac96781e98a097e871147.tar.bz2
linux-stable-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 'lib/strncpy_from_user.c')
-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>