summaryrefslogtreecommitdiffstats
path: root/lib/muldi3.c
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2020-04-06 20:10:45 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-06-09 10:24:02 +0200
commit5666a294c906323d7fd49a60cad510af6e6cfd39 (patch)
tree3326193c355b77a11d08fc5d130e85d93e5d84c4 /lib/muldi3.c
parent85d0254e7ec88b9cf6c853d9f6ea9e3af64d7f81 (diff)
downloadlinux-stable-5666a294c906323d7fd49a60cad510af6e6cfd39.tar.gz
linux-stable-5666a294c906323d7fd49a60cad510af6e6cfd39.tar.bz2
linux-stable-5666a294c906323d7fd49a60cad510af6e6cfd39.zip
lib/dynamic_debug.c: use address-of operator on section symbols
commit 8306b057a85ec07482da5d4b99d5c0b47af69be1 upstream. 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 <ndesaulniers@google.com> Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: Jason Baron <jbaron@akamai.com> Link: https://github.com/ClangBuiltLinux/linux/issues/894 Link: http://lkml.kernel.org/r/20200220051320.10739-1-natechancellor@gmail.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/muldi3.c')
0 files changed, 0 insertions, 0 deletions