linux-stable/arch/mips/ralink
Nathan Chancellor 7648f42d1a MIPS: Use address-of operator on section symbols
commit d422c6c064 upstream.

When building xway_defconfig with clang:

arch/mips/lantiq/prom.c:82:23: error: array comparison always evaluates
to true [-Werror,-Wtautological-compare]
        else if (__dtb_start != __dtb_end)
                             ^
1 error generated.

These are not true arrays, they are linker defined symbols, which are
just addresses. Using the address of operator silences the warning
and does not change the resulting assembly with either clang/ld.lld
or gcc/ld (tested with diff + objdump -Dr). Do the same thing across
the entire MIPS subsystem to ensure there are no more warnings around
this type of comparison.

Link: https://github.com/ClangBuiltLinux/linux/issues/1232
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-05-15 20:00:08 +02:00
..
bootrom.c
cevt-rt3352.c
clk.c
common.h
early_printk.c
ill_acc.c mips: ralink: fix a refcount leak in ill_acc_of_setup() 2022-04-13 21:00:58 +02:00
irq-gic.c
irq.c
Kconfig
Makefile
mt7620.c
mt7621.c MIPS: ralink: drop ralink_clk_init for mt7621 2020-05-31 14:17:00 +02:00
of.c MIPS: Use address-of operator on section symbols 2022-05-15 20:00:08 +02:00
Platform
prom.c
reset.c
rt288x.c
rt305x.c
rt3883.c
timer-gic.c
timer.c