[PATCH] realtek: fix gcc-12 build with -Werror=array-compare

Sander Vanheule sander at svanheule.net
Wed Jun 22 09:56:20 PDT 2022

On Sun, 2022-06-19 at 15:59 +0200, Bjørn Mork wrote:
> 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 at mork.no>
> ---
> Kind of stupid....
> But this is how similar fallout has been fixed in mainline AFAICS. For
> example commit ca831f29f8f2 ("mm: page_alloc: fix building error on
> -Werror=array-compare")

Externally linked data can be weird like that. Thanks for spotting this early, I'll be merging the


More information about the openwrt-devel mailing list