summaryrefslogtreecommitdiff
path: root/drivers/hwmon/adt7x10.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2021-03-05 11:41:22 +0300
committerGeert Uytterhoeven <geert@linux-m68k.org>2021-03-06 16:15:07 +0300
commita65a802aadba072ca7514fc0c301fd7fdc6fc6cb (patch)
tree7944bfe1da3d75470bb8602dbf3e9209a1741e46 /drivers/hwmon/adt7x10.c
parenta38fd8748464831584a19438cbb3082b5a2dab15 (diff)
downloadlinux-a65a802aadba072ca7514fc0c301fd7fdc6fc6cb.tar.xz
m68k: Fix virt_addr_valid() W=1 compiler warnings
If CONFIG_DEBUG_SG=y, and CONFIG_MMU=y: include/linux/scatterlist.h: In function ‘sg_set_buf’: arch/m68k/include/asm/page_mm.h:174:49: warning: ordered comparison of pointer with null pointer [-Wextra] 174 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory) | ^~ or CONFIG_MMU=n: include/linux/scatterlist.h: In function ‘sg_set_buf’: arch/m68k/include/asm/page_no.h:33:50: warning: ordered comparison of pointer with null pointer [-Wextra] 33 | #define virt_addr_valid(kaddr) (((void *)(kaddr) >= (void *)PAGE_OFFSET) && \ | ^~ Fix this by doing the comparison in the "unsigned long" instead of the "void *" domain. Note that for now this is only seen when compiling btrfs, due to commit e9aa7c285d20a69c ("btrfs: enable W=1 checks for btrfs"), but as people are doing more W=1 compile testing, it will start to show up elsewhere, too. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Greg Ungerer <gerg@linux-m68k.org> Link: https://lore.kernel.org/r/20210305084122.4118826-1-geert@linux-m68k.org
Diffstat (limited to 'drivers/hwmon/adt7x10.c')
0 files changed, 0 insertions, 0 deletions