diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2015-02-12 18:03:16 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-12 21:54:16 -0500 |
commit | bf3c2d6d2f9649f1cdfac96781e98a097e871147 (patch) | |
tree | fca055aad5592e168c1eac6c6bf0508ab136db51 /lib | |
parent | b6d4f3221d7fe00d440edaeeb6cde7257ae63a73 (diff) |
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')
-rw-r--r-- | lib/strncpy_from_user.c | 3 |
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 @@ | |||
1 | #include <linux/module.h> | 1 | #include <linux/compiler.h> |
2 | #include <linux/export.h> | ||
2 | #include <linux/uaccess.h> | 3 | #include <linux/uaccess.h> |
3 | #include <linux/kernel.h> | 4 | #include <linux/kernel.h> |
4 | #include <linux/errno.h> | 5 | #include <linux/errno.h> |