lkml.org 
[lkml]   [2017]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] init/version: include <linux/export.h> instead of <linux/module.h>
Date
init/version.c has nothing to do with module, so remove
the <linux/modude.h>.

Instead, include <linux/export.h> for EXPORT_SYMBOL_GPL.

This cuts off a lot of unnecessary header parsing.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

init/version.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/init/version.c b/init/version.c
index 5606341..bfb4e3f 100644
--- 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>
--
2.7.4
\
 
 \ /
  Last update: 2017-09-20 17:25    [W:0.028 / U:6.548 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site