From d6eebaf99570aa6de0b10694fcb11ee8c0195d3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Mork?= Date: Sun, 19 Jun 2022 15:59:27 +0200 Subject: realtek: fix gcc-12 build with -Werror=array-compare MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- target/linux/realtek/files-5.10/arch/mips/rtl838x/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target/linux/realtek') 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"); -- cgit v1.2.3