lib/strncpy_from_user.c: replace module.h include
authorRasmus Villemoes <[email protected]>
Thu, 12 Feb 2015 23:03:16 +0000 (15:03 -0800)
committerLinus Torvalds <[email protected]>
Fri, 13 Feb 2015 02:54:16 +0000 (18:54 -0800)
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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
lib/strncpy_from_user.c

index bb2b201d6ad0397a77df53d1841f148af4465170..e0af6ff73d146cfa3356080ebcb1bbea36cd1f96 100644 (file)
@@ -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>