WSL2-Linux-Kernel/arch/m68k
Geert Uytterhoeven a65a802aad 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
e9aa7c285d ("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
2021-03-06 14:15:07 +01:00
..
68000 Fixes include: 2020-12-21 10:35:11 -08:00
amiga
apollo
atari
bvme6000
coldfire m68k: let clk_enable() return immediately if clk is NULL 2021-02-08 08:15:17 +10:00
configs m68k: defconfig: Update defconfigs for v5.11-rc1 2021-01-25 13:23:38 +01:00
emu block: store a block_device pointer in struct bio 2021-01-24 18:17:20 -07:00
fpsp040
hp300
ifpsp060
include m68k: Fix virt_addr_valid() W=1 compiler warnings 2021-03-06 14:15:07 +01:00
kernel io_uring-worker.v3-2021-02-25 2021-02-27 08:29:02 -08:00
lib
mac
math-emu
mm
mvme16x
mvme147
q40
sun3
sun3x
tools/amiga
Kbuild
Kconfig
Kconfig.bus
Kconfig.cpu Fixes include: 2020-12-21 10:35:11 -08:00
Kconfig.debug
Kconfig.devices
Kconfig.machine Fixes include: 2020-12-21 10:35:11 -08:00
Makefile
install.sh