From: Christian Marangi Date: Sun, 16 Oct 2022 18:36:49 +0000 (+0200) Subject: generic: 5.10: refresh hack patches X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=32c683ddceba8c078faae3706d69eef103736773;p=openwrt%2Fstaging%2Fblocktrron.git generic: 5.10: refresh hack patches Refresh hack patches for kernel 5.10. Signed-off-by: Christian Marangi --- diff --git a/target/linux/generic/hack-5.10/204-module_strip.patch b/target/linux/generic/hack-5.10/204-module_strip.patch index d511df42c4..9f7eaf479a 100644 --- a/target/linux/generic/hack-5.10/204-module_strip.patch +++ b/target/linux/generic/hack-5.10/204-module_strip.patch @@ -143,7 +143,7 @@ Signed-off-by: Felix Fietkau --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c -@@ -2038,7 +2038,9 @@ static void read_symbols(const char *mod +@@ -2040,7 +2040,9 @@ static void read_symbols(const char *mod symname = remove_dot(info.strtab + sym->st_name); handle_symbol(mod, &info, sym, symname); @@ -153,7 +153,7 @@ Signed-off-by: Felix Fietkau } for (sym = info.symtab_start; sym < info.symtab_stop; sym++) { -@@ -2251,8 +2253,10 @@ static void add_header(struct buffer *b, +@@ -2253,8 +2255,10 @@ static void add_header(struct buffer *b, buf_printf(b, "\n"); buf_printf(b, "BUILD_SALT;\n"); buf_printf(b, "\n"); @@ -164,7 +164,7 @@ Signed-off-by: Felix Fietkau buf_printf(b, "\n"); buf_printf(b, "__visible struct module __this_module\n"); buf_printf(b, "__section(\".gnu.linkonce.this_module\") = {\n"); -@@ -2269,8 +2273,10 @@ static void add_header(struct buffer *b, +@@ -2271,8 +2275,10 @@ static void add_header(struct buffer *b, static void add_intree_flag(struct buffer *b, int is_intree) { @@ -175,7 +175,7 @@ Signed-off-by: Felix Fietkau } /* Cannot check for assembler */ -@@ -2283,8 +2289,10 @@ static void add_retpoline(struct buffer +@@ -2285,8 +2291,10 @@ static void add_retpoline(struct buffer static void add_staging_flag(struct buffer *b, const char *name) { @@ -186,7 +186,7 @@ Signed-off-by: Felix Fietkau } /** -@@ -2368,11 +2376,13 @@ static void add_depends(struct buffer *b +@@ -2370,11 +2378,13 @@ static void add_depends(struct buffer *b static void add_srcversion(struct buffer *b, struct module *mod) { @@ -200,7 +200,7 @@ Signed-off-by: Felix Fietkau } static void write_buf(struct buffer *b, const char *fname) -@@ -2631,7 +2641,9 @@ int main(int argc, char **argv) +@@ -2633,7 +2643,9 @@ int main(int argc, char **argv) add_staging_flag(&buf, mod->name); err |= add_versions(&buf, mod); add_depends(&buf, mod);