aboutsummaryrefslogtreecommitdiff
path: root/arch/mips/generic/proc.c
diff options
context:
space:
mode:
authorNathan Chancellor <[email protected]>2021-01-05 13:18:27 -0700
committerThomas Bogendoerfer <[email protected]>2021-01-07 17:10:36 +0100
commitd422c6c0644bccbb1ebeefffa51f35cec3019517 (patch)
tree3c407591f283259c13ca68e7ebdc61eddce7444a /arch/mips/generic/proc.c
parentecd3e709747b5f715de752d796b2f758534c10aa (diff)
MIPS: Use address-of operator on section symbols
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 <[email protected]> Acked-by: Florian Fainelli <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
Diffstat (limited to 'arch/mips/generic/proc.c')
0 files changed, 0 insertions, 0 deletions