Re: [PATCH] m68k: Fix virt_addr_valid() W=1 compiler warnings

2021-03-05 Thread Geert Uytterhoeven
On Tue, Feb 23, 2021 at 11:50 AM Geert Uytterhoeven wrote: > 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 |

Re: [PATCH] m68k: Fix virt_addr_valid() W=1 compiler warnings

2021-02-23 Thread Greg Ungerer
On 23/2/21 8:49 pm, Geert Uytterhoeven wrote: 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

[PATCH] m68k: Fix virt_addr_valid() W=1 compiler warnings

2021-02-23 Thread Geert Uytterhoeven
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 &&