aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/device.py
diff options
context:
space:
mode:
authorNathan Chancellor <[email protected]>2020-04-06 20:10:45 -0700
committerLinus Torvalds <[email protected]>2020-04-07 10:43:43 -0700
commit8306b057a85ec07482da5d4b99d5c0b47af69be1 (patch)
treed94b01a748b0c99c94a2cf222e4a8655262e6747 /scripts/gdb/linux/device.py
parent295bcca84916cb5079140a89fccb472bb8d1f6e2 (diff)
lib/dynamic_debug.c: use address-of operator on section symbols
Clang warns: ../lib/dynamic_debug.c:1034:24: warning: array comparison always evaluates to false [-Wtautological-compare] if (__start___verbose == __stop___verbose) { ^ 1 warning 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). Suggested-by: Nick Desaulniers <[email protected]> Signed-off-by: Nathan Chancellor <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Acked-by: Jason Baron <[email protected]> Link: https://github.com/ClangBuiltLinux/linux/issues/894 Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/device.py')
0 files changed, 0 insertions, 0 deletions