linux-stable/arch/mips/ralink
Nathan Chancellor 0ec92c59e6 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 19:40:26 +02:00
..
bootrom.c
cevt-rt3352.c clocksource/drivers: Rename CLOCKSOURCE_OF_DECLARE to TIMER_OF_DECLARE 2017-06-14 11:58:45 +02:00
clk.c MIPS: ralink: allow NULL clock for clk_get_rate 2017-09-06 12:37:45 +02:00
common.h
early_printk.c
ill_acc.c
irq-gic.c irqchip: mips-gic: Move gic_get_c0_*_int() to asm/mips-gic.h 2017-09-04 13:53:14 +02:00
irq.c
Kconfig MIPS: ralink: Select CONFIG_CPU_MIPSR2_IRQ_VI on MT7620/8 2019-02-12 19:46:08 +01:00
Makefile
mt7620.c MIPS: ralink: Fix mt7620 nd_sd pinmux 2018-12-08 13:03:36 +01:00
mt7621.c MIPS: ralink: Fix booting on MT7621 2018-03-28 18:24:27 +02:00
of.c MIPS: Use address-of operator on section symbols 2022-05-15 19:40:26 +02:00
Platform
prom.c
reset.c MIPS: ralink: Remove ralink_halt() 2018-03-28 18:24:27 +02:00
rt288x.c
rt305x.c
rt3883.c
timer-gic.c clocksource/drivers: Rename clocksource_probe to timer_probe 2017-06-14 11:59:16 +02:00
timer.c