diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index f9ab34811dbf..cc1b7ece676e 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -2164,8 +2164,12 @@ static int check_modname_len(struct module *mod) **/ static void add_header(struct buffer *b, struct module *mod) { - buf_printf(b, "#include \n"); buf_printf(b, "#include \n"); + /* + * Include build-salt.h after module.h in order to + * inherit the definitions. + */ + buf_printf(b, "#include \n"); buf_printf(b, "#include \n"); buf_printf(b, "#include \n"); buf_printf(b, "\n");