diff options
author | Bjørn Mork <bjorn@mork.no> | 2022-06-19 15:59:27 +0200 |
---|---|---|
committer | Sander Vanheule <sander@svanheule.net> | 2022-06-22 18:37:40 +0200 |
commit | d6eebaf99570aa6de0b10694fcb11ee8c0195d3c (patch) | |
tree | 1420cbd510b157945fd5e467d994bcfcf8bd9a8f /target/linux | |
parent | d9e12c21fa98c90d0cc355e344d90469c5fd42c1 (diff) | |
download | upstream-d6eebaf99570aa6de0b10694fcb11ee8c0195d3c.tar.gz upstream-d6eebaf99570aa6de0b10694fcb11ee8c0195d3c.tar.bz2 upstream-d6eebaf99570aa6de0b10694fcb11ee8c0195d3c.zip |
realtek: fix gcc-12 build with -Werror=array-compare
Removing this gcc-12 error:
arch/mips/rtl838x/setup.c:64:30: error: comparison between two arrays [-Werror=array-compare]
64 | else if (__dtb_start != __dtb_end)
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/realtek/files-5.10/arch/mips/rtl838x/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/realtek/files-5.10/arch/mips/rtl838x/setup.c b/target/linux/realtek/files-5.10/arch/mips/rtl838x/setup.c index 55419c7b0b..18c477eb0f 100644 --- a/target/linux/realtek/files-5.10/arch/mips/rtl838x/setup.c +++ b/target/linux/realtek/files-5.10/arch/mips/rtl838x/setup.c @@ -61,7 +61,7 @@ void __init plat_mem_setup(void) if (fw_passed_dtb) /* UHI interface */ dtb = (void *)fw_passed_dtb; - else if (__dtb_start != __dtb_end) + else if (&__dtb_start[0] != &__dtb_end[0]) dtb = (void *)__dtb_start; else panic("no dtb found"); |