diff mbox series

init/version: include <linux/export.h> instead of <linux/module.h>

Message ID 1505920984-8523-1-git-send-email-yamada.masahiro@socionext.com
State New
Headers show
Series init/version: include <linux/export.h> instead of <linux/module.h> | expand

Commit Message

Masahiro Yamada Sept. 20, 2017, 3:23 p.m. UTC
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(-)

-- 
2.7.4

Comments

Paul Gortmaker Sept. 20, 2017, 8:55 p.m. UTC | #1
[[PATCH] init/version: include <linux/export.h> instead of <linux/module.h>] On 21/09/2017 (Thu 00:23) Masahiro Yamada wrote:

> init/version.c has nothing to do with module, so remove

> the <linux/modude.h>.

> 

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


I checked and there weren't any __init lurking in that file which is the
usual other required replacement (<linux/init.h>) so this should be
fine.

Paul.
--

> 

> 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

>
diff mbox series

Patch

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>