mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-06 03:45:24 -04:00
MIPS: fix build with gcc-12
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>
This commit is contained in:
parent
a3112d5da1
commit
a60def7568
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ void __init plat_mem_setup(void)
|
|||
|
||||
jz4740_reset_init();
|
||||
|
||||
if (__dtb_start != __dtb_end)
|
||||
if (&__dtb_start != &__dtb_end)
|
||||
dtb = __dtb_start;
|
||||
else
|
||||
dtb = (void *)fw_passed_dtb;
|
||||
|
|
|
|||
Loading…
Reference in a new issue