Skip to content

Commit 8f68d8c

Browse files
sudipm-mukherjeesmb49
authored andcommitted
MIPS: fix build with gcc-12
BugLink: https://bugs.launchpad.net/bugs/1980407 Some mips builds with gcc-12 fails with the error: arch/mips/jz4740/setup.c:64:25: error: comparison between two arrays [-Werror=array-compare] 64 | if (__dtb_start != __dtb_end) 'd24f48767d5e ("MIPS: Use address-of operator on section symbols")' has been applied which fixes most of the error, but it missed one file which was not available upstream when the change was done. Fixes: d24f48767d5e ("MIPS: Use address-of operator on section symbols") Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Kamal Mostafa <kamal@canonical.com> Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
1 parent 53697fa commit 8f68d8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/mips/jz4740/setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ void __init plat_mem_setup(void)
6161

6262
jz4740_reset_init();
6363

64-
if (__dtb_start != __dtb_end)
64+
if (&__dtb_start != &__dtb_end)
6565
dtb = __dtb_start;
6666
else
6767
dtb = (void *)fw_passed_dtb;

0 commit comments

Comments
 (0)