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:
37b5e52
)
init/version.c: include <linux/export.h> instead of <linux/module.h>
author
Masahiro Yamada
<
[email protected]
>
Fri, 17 Nov 2017 23:29:10 +0000
(15:29 -0800)
committer
Linus Torvalds
<
[email protected]
>
Sat, 18 Nov 2017 00:10:02 +0000
(16:10 -0800)
init/version.c has nothing to do with modules, so remove the
<linux/modude.h>.
Instead, include <linux/export.h> for EXPORT_SYMBOL_GPL.
This cuts off a lot of unnecessary header parsing.
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Masahiro Yamada <
[email protected]
>
Cc: Paul Gortmaker <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
init/version.c
patch
|
blob
|
history
diff --git
a/init/version.c
b/init/version.c
index 5606341e9efd5510c9b8ede9eb01b12b9965e6c9..bfb4e3f4955e0caed1ae3d5b404f55ccdacf35a0 100644
(file)
--- a/
init/version.c
+++ b/
init/version.c
@@
-7,7
+7,7
@@
*/
#include <generated/compile.h>
-#include <linux/
module
.h>
+#include <linux/
export
.h>
#include <linux/uts.h>
#include <linux/utsname.h>
#include <generated/utsrelease.h>