Skip to content

Commit

Permalink
init/version.c: include <linux/export.h> instead of <linux/module.h>
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
masahir0y authored and torvalds committed Nov 18, 2017
1 parent 37b5e52 commit e4f02fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit e4f02fd

Please sign in to comment.