|
@@ -2125,10 +2125,13 @@ static int check_modname_len(struct module *mod)
|
|
|
**/
|
|
|
static void add_header(struct buffer *b, struct module *mod)
|
|
|
{
|
|
|
+ buf_printf(b, "#include <linux/build-salt.h>\n");
|
|
|
buf_printf(b, "#include <linux/module.h>\n");
|
|
|
buf_printf(b, "#include <linux/vermagic.h>\n");
|
|
|
buf_printf(b, "#include <linux/compiler.h>\n");
|
|
|
buf_printf(b, "\n");
|
|
|
+ buf_printf(b, "BUILD_SALT;\n");
|
|
|
+ buf_printf(b, "\n");
|
|
|
buf_printf(b, "MODULE_INFO(vermagic, VERMAGIC_STRING);\n");
|
|
|
buf_printf(b, "MODULE_INFO(name, KBUILD_MODNAME);\n");
|
|
|
buf_printf(b, "\n");
|