aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorNathan Chancellor <[email protected]>2020-06-23 20:59:20 -0700
committerMichael Ellerman <[email protected]>2020-06-30 14:38:00 +1000
commitdf4232d96e724d09e54a623362f9f610727f059f (patch)
tree7489e2604f69391b04905162eb38034079f463c6 /tools/perf/scripts/python
parent1addb6444791f9e87fce0eb9882ec96a4a76e615 (diff)
powerpc/boot: Use address-of operator on section symbols
Clang warns: arch/powerpc/boot/main.c:107:18: warning: array comparison always evaluates to a constant [-Wtautological-compare] if (_initrd_end > _initrd_start) { ^ arch/powerpc/boot/main.c:155:20: warning: array comparison always evaluates to a constant [-Wtautological-compare] if (_esm_blob_end <= _esm_blob_start) ^ 2 warnings 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). Reported-by: Joel Stanley <[email protected]> Signed-off-by: Nathan Chancellor <[email protected]> Tested-by: Geoff Levand <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions