summaryrefslogtreecommitdiffstats
path: root/lib/muldi3.c
diff options
context:
space:
mode:
authorNathan Chancellor <natechancellor@gmail.com>2020-04-06 20:09:27 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-06-09 10:24:02 +0200
commit85d0254e7ec88b9cf6c853d9f6ea9e3af64d7f81 (patch)
tree4242e8cfe1125e156168e659a91fce598500926a /lib/muldi3.c
parentd2b6d2ee693db41363eb4288a5c2b4a556d3b93c (diff)
downloadlinux-stable-85d0254e7ec88b9cf6c853d9f6ea9e3af64d7f81.tar.gz
linux-stable-85d0254e7ec88b9cf6c853d9f6ea9e3af64d7f81.tar.bz2
linux-stable-85d0254e7ec88b9cf6c853d9f6ea9e3af64d7f81.zip
kernel/extable.c: use address-of operator on section symbols
commit 63174f61dfaef58dc0e813eaf6602636794f8942 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/muldi3.c')
0 files changed, 0 insertions, 0 deletions