lkml.org 
[lkml]   [2022]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectlinux-next: build warning after merge of the block tree
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/slab.h:16,
from io_uring/net.c:5:
io_uring/net.c: In function 'io_recvmsg_multishot_overflow':
include/linux/overflow.h:67:22: warning: comparison of distinct pointer types lacks a cast
67 | (void) (&__a == &__b); \
| ^~
io_uring/net.c:332:13: note: in expansion of macro 'check_add_overflow'
332 | if (check_add_overflow(sizeof(struct io_uring_recvmsg_out),
| ^~~~~~~~~~~~~~~~~~
include/linux/overflow.h:68:22: warning: comparison of distinct pointer types lacks a cast
68 | (void) (&__a == __d); \
| ^~
io_uring/net.c:332:13: note: in expansion of macro 'check_add_overflow'
332 | if (check_add_overflow(sizeof(struct io_uring_recvmsg_out),
| ^~~~~~~~~~~~~~~~~~
include/linux/overflow.h:67:22: warning: comparison of distinct pointer types lacks a cast
67 | (void) (&__a == &__b); \
| ^~
io_uring/net.c:335:13: note: in expansion of macro 'check_add_overflow'
335 | if (check_add_overflow(hdr, iomsg->controllen, &hdr))
| ^~~~~~~~~~~~~~~~~~

Introduced by commit

a8b38c4ce724 ("io_uring: support multishot in recvmsg")

--
Cheers,
Stephen Rothwell
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2022-07-15 05:53    [W:0.038 / U:0.428 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site