diff options
Diffstat (limited to 'scripts/mod/modpost.c')
-rw-r--r-- | scripts/mod/modpost.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 1663fb19343a..dc6d714e4dcb 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c | |||
@@ -2125,10 +2125,13 @@ static int check_modname_len(struct module *mod) | |||
2125 | **/ | 2125 | **/ |
2126 | static void add_header(struct buffer *b, struct module *mod) | 2126 | static void add_header(struct buffer *b, struct module *mod) |
2127 | { | 2127 | { |
2128 | buf_printf(b, "#include <linux/build-salt.h>\n"); | ||
2128 | buf_printf(b, "#include <linux/module.h>\n"); | 2129 | buf_printf(b, "#include <linux/module.h>\n"); |
2129 | buf_printf(b, "#include <linux/vermagic.h>\n"); | 2130 | buf_printf(b, "#include <linux/vermagic.h>\n"); |
2130 | buf_printf(b, "#include <linux/compiler.h>\n"); | 2131 | buf_printf(b, "#include <linux/compiler.h>\n"); |
2131 | buf_printf(b, "\n"); | 2132 | buf_printf(b, "\n"); |
2133 | buf_printf(b, "BUILD_SALT;\n"); | ||
2134 | buf_printf(b, "\n"); | ||
2132 | buf_printf(b, "MODULE_INFO(vermagic, VERMAGIC_STRING);\n"); | 2135 | buf_printf(b, "MODULE_INFO(vermagic, VERMAGIC_STRING);\n"); |
2133 | buf_printf(b, "MODULE_INFO(name, KBUILD_MODNAME);\n"); | 2136 | buf_printf(b, "MODULE_INFO(name, KBUILD_MODNAME);\n"); |
2134 | buf_printf(b, "\n"); | 2137 | buf_printf(b, "\n"); |