projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6d4f32
)
lib/strncpy_from_user.c: replace module.h include
author
Rasmus Villemoes
<linux@rasmusvillemoes.dk>
Thu, 12 Feb 2015 23:03:16 +0000
(15:03 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
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 <linux@rasmusvillemoes.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/strncpy_from_user.c
patch
|
blob
|
history
diff --git
a/lib/strncpy_from_user.c
b/lib/strncpy_from_user.c
index bb2b201d6ad0397a77df53d1841f148af4465170..e0af6ff73d146cfa3356080ebcb1bbea36cd1f96 100644
(file)
--- 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>