aboutsummaryrefslogtreecommitdiff
path: root/arch/sparc/vdso/vdso32/vclock_gettime.c
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2020-04-06 20:09:27 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2020-04-07 10:43:42 -0700
commit63174f61dfaef58dc0e813eaf6602636794f8942 (patch)
tree3841cec5ccba9026f523a401b16b159d4eaf8eca /arch/sparc/vdso/vdso32/vclock_gettime.c
parent06e85c7e9a1c1356038936566fc23f7c0d363b96 (diff)
downloadlinux-stericsson-63174f61dfaef58dc0e813eaf6602636794f8942.tar.gz
kernel/extable.c: use address-of operator on section symbols
Clang warns: ../kernel/extable.c:37:52: warning: array comparison always evaluates to a constant [-Wtautological-compare] if (main_extable_sort_needed && __stop___ex_table > __start___ex_table) { ^ 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> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Link: https://github.com/ClangBuiltLinux/linux/issues/892 Link: http://lkml.kernel.org/r/20200219202036.45702-1-natechancellor@gmail.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/sparc/vdso/vdso32/vclock_gettime.c')
0 files changed, 0 insertions, 0 deletions