aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2019-05-17 21:59:52 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2019-05-17 22:04:21 +0200
commite6928e6b29f03269f6e550a9a8d83900e340c550 (patch)
tree50656562dab23dccda6a3fc1f4e158b6390ee609
parent3239f5613696ff3bdeeafc0eceb00550e2005ced (diff)
downloadupstream-e6928e6b29f03269f6e550a9a8d83900e340c550.tar.gz
upstream-e6928e6b29f03269f6e550a9a8d83900e340c550.tar.bz2
upstream-e6928e6b29f03269f6e550a9a8d83900e340c550.zip
kernel: Fix arc kernel build
This fixes a patch for the ARC architecture. This was found by the build bot. Fixes: 5183df0dbf5f ("kernel: bump 4.9 to 4.9.161") Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--target/linux/generic/pending-4.9/332-arc-add-OWRTDTB-section.patch20
1 files changed, 10 insertions, 10 deletions
diff --git a/target/linux/generic/pending-4.9/332-arc-add-OWRTDTB-section.patch b/target/linux/generic/pending-4.9/332-arc-add-OWRTDTB-section.patch
index ca89f87594..6f248343ab 100644
--- a/target/linux/generic/pending-4.9/332-arc-add-OWRTDTB-section.patch
+++ b/target/linux/generic/pending-4.9/332-arc-add-OWRTDTB-section.patch
@@ -38,7 +38,16 @@ Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
;----------------------------------------------------------------
--- a/arch/arc/kernel/setup.c
+++ b/arch/arc/kernel/setup.c
-@@ -444,7 +444,7 @@ ignore_uboot_args:
+@@ -404,6 +404,8 @@ static inline bool uboot_arg_invalid(uns
+ /* We always pass 0 as magic from U-boot */
+ #define UBOOT_MAGIC_VALUE 0
+
++extern struct boot_param_header __image_dtb;
++
+ void __init handle_uboot_args(void)
+ {
+ bool use_embedded_dtb = true;
+@@ -444,7 +446,7 @@ ignore_uboot_args:
#endif
if (use_embedded_dtb) {
@@ -47,15 +56,6 @@ Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
if (!machine_desc)
panic("Embedded DT invalid\n");
}
-@@ -460,6 +460,8 @@ ignore_uboot_args:
- }
- }
-
-+extern struct boot_param_header __image_dtb;
-+
- void __init setup_arch(char **cmdline_p)
- {
- handle_uboot_args();
--- a/arch/arc/kernel/vmlinux.lds.S
+++ b/arch/arc/kernel/vmlinux.lds.S
@@ -30,6 +30,19 @@ SECTIONS