Subject: linux-next: build warning after merge of the block tree

From: Stephen Rothwell <[email-masked]>
Date: Tue, 15 Jun 2021 12:13:14 +1000

Hi all,

After merging the block tree, today's linux-next build (arm
multi_v7_defconfig) produced this warning:

In file included from include/linux/kernel.h:15,
                 from fs/io_uring.c:42:
fs/io_uring.c: In function 'io_alloc_page_table':
include/linux/minmax.h:20:28: warning: comparison of distinct pointer types lacks a cast
   20 |  (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1)))
      |                            ^~
include/linux/minmax.h:26:4: note: in expansion of macro '__typecheck'
   26 |   (__typecheck(x, y) && __no_side_effects(x, y))
      |    ^~~~~~~~~~~
include/linux/minmax.h:36:24: note: in expansion of macro '__safe_cmp'
   36 |  __builtin_choose_expr(__safe_cmp(x, y), \
      |                        ^~~~~~~~~~
include/linux/minmax.h:45:19: note: in expansion of macro '__careful_cmp'
   45 | #define min(x, y) __careful_cmp(x, y, <)
      |                   ^~~~~~~~~~~~~
fs/io_uring.c:7095:28: note: in expansion of macro 'min'
 7095 |   unsigned int this_size = min(size, PAGE_SIZE);
      |                            ^~~

Introduced by commit

  9123c8ffce16 ("io_uring: add helpers for 2 level table alloc")

-- 
Cheers,
Stephen Rothwell