|
@@ -114,7 +114,7 @@ Signed-off-by: Felix Fietkau <[email protected]>
|
|
config MODULES_TREE_LOOKUP
|
|
config MODULES_TREE_LOOKUP
|
|
--- a/kernel/module.c
|
|
--- a/kernel/module.c
|
|
+++ b/kernel/module.c
|
|
+++ b/kernel/module.c
|
|
-@@ -3002,9 +3002,11 @@ static int setup_load_info(struct load_i
|
|
|
|
|
|
+@@ -3004,9 +3004,11 @@ static int setup_load_info(struct load_i
|
|
|
|
|
|
static int check_modinfo(struct module *mod, struct load_info *info, int flags)
|
|
static int check_modinfo(struct module *mod, struct load_info *info, int flags)
|
|
{
|
|
{
|
|
@@ -127,7 +127,7 @@ Signed-off-by: Felix Fietkau <[email protected]>
|
|
if (flags & MODULE_INIT_IGNORE_VERMAGIC)
|
|
if (flags & MODULE_INIT_IGNORE_VERMAGIC)
|
|
modmagic = NULL;
|
|
modmagic = NULL;
|
|
|
|
|
|
-@@ -3025,6 +3027,7 @@ static int check_modinfo(struct module *
|
|
|
|
|
|
+@@ -3027,6 +3029,7 @@ static int check_modinfo(struct module *
|
|
mod->name);
|
|
mod->name);
|
|
add_taint_module(mod, TAINT_OOT_MODULE, LOCKDEP_STILL_OK);
|
|
add_taint_module(mod, TAINT_OOT_MODULE, LOCKDEP_STILL_OK);
|
|
}
|
|
}
|
|
@@ -137,7 +137,7 @@ Signed-off-by: Felix Fietkau <[email protected]>
|
|
|
|
|
|
--- a/scripts/mod/modpost.c
|
|
--- a/scripts/mod/modpost.c
|
|
+++ b/scripts/mod/modpost.c
|
|
+++ b/scripts/mod/modpost.c
|
|
-@@ -1969,7 +1969,9 @@ static void read_symbols(const char *mod
|
|
|
|
|
|
+@@ -1971,7 +1971,9 @@ static void read_symbols(const char *mod
|
|
symname = remove_dot(info.strtab + sym->st_name);
|
|
symname = remove_dot(info.strtab + sym->st_name);
|
|
|
|
|
|
handle_modversions(mod, &info, sym, symname);
|
|
handle_modversions(mod, &info, sym, symname);
|
|
@@ -147,7 +147,7 @@ Signed-off-by: Felix Fietkau <[email protected]>
|
|
}
|
|
}
|
|
if (!is_vmlinux(modname) || vmlinux_section_warnings)
|
|
if (!is_vmlinux(modname) || vmlinux_section_warnings)
|
|
check_sec_ref(mod, modname, &info);
|
|
check_sec_ref(mod, modname, &info);
|
|
-@@ -2132,8 +2134,10 @@ static void add_header(struct buffer *b,
|
|
|
|
|
|
+@@ -2134,8 +2136,10 @@ static void add_header(struct buffer *b,
|
|
buf_printf(b, "\n");
|
|
buf_printf(b, "\n");
|
|
buf_printf(b, "BUILD_SALT;\n");
|
|
buf_printf(b, "BUILD_SALT;\n");
|
|
buf_printf(b, "\n");
|
|
buf_printf(b, "\n");
|
|
@@ -158,7 +158,7 @@ Signed-off-by: Felix Fietkau <[email protected]>
|
|
buf_printf(b, "\n");
|
|
buf_printf(b, "\n");
|
|
buf_printf(b, "__visible struct module __this_module\n");
|
|
buf_printf(b, "__visible struct module __this_module\n");
|
|
buf_printf(b, "__attribute__((section(\".gnu.linkonce.this_module\"))) = {\n");
|
|
buf_printf(b, "__attribute__((section(\".gnu.linkonce.this_module\"))) = {\n");
|
|
-@@ -2150,8 +2154,10 @@ static void add_header(struct buffer *b,
|
|
|
|
|
|
+@@ -2152,8 +2156,10 @@ static void add_header(struct buffer *b,
|
|
|
|
|
|
static void add_intree_flag(struct buffer *b, int is_intree)
|
|
static void add_intree_flag(struct buffer *b, int is_intree)
|
|
{
|
|
{
|
|
@@ -169,7 +169,7 @@ Signed-off-by: Felix Fietkau <[email protected]>
|
|
}
|
|
}
|
|
|
|
|
|
/* Cannot check for assembler */
|
|
/* Cannot check for assembler */
|
|
-@@ -2164,8 +2170,10 @@ static void add_retpoline(struct buffer
|
|
|
|
|
|
+@@ -2166,8 +2172,10 @@ static void add_retpoline(struct buffer
|
|
|
|
|
|
static void add_staging_flag(struct buffer *b, const char *name)
|
|
static void add_staging_flag(struct buffer *b, const char *name)
|
|
{
|
|
{
|
|
@@ -180,7 +180,7 @@ Signed-off-by: Felix Fietkau <[email protected]>
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
-@@ -2264,11 +2272,13 @@ static void add_depends(struct buffer *b
|
|
|
|
|
|
+@@ -2266,11 +2274,13 @@ static void add_depends(struct buffer *b
|
|
|
|
|
|
static void add_srcversion(struct buffer *b, struct module *mod)
|
|
static void add_srcversion(struct buffer *b, struct module *mod)
|
|
{
|
|
{
|
|
@@ -194,7 +194,7 @@ Signed-off-by: Felix Fietkau <[email protected]>
|
|
}
|
|
}
|
|
|
|
|
|
static void write_if_changed(struct buffer *b, const char *fname)
|
|
static void write_if_changed(struct buffer *b, const char *fname)
|
|
-@@ -2505,7 +2515,9 @@ int main(int argc, char **argv)
|
|
|
|
|
|
+@@ -2507,7 +2517,9 @@ int main(int argc, char **argv)
|
|
add_staging_flag(&buf, mod->name);
|
|
add_staging_flag(&buf, mod->name);
|
|
err |= add_versions(&buf, mod);
|
|
err |= add_versions(&buf, mod);
|
|
add_depends(&buf, mod, modules);
|
|
add_depends(&buf, mod, modules);
|