Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 2 participants 2 messages Oct 22, 2020 – Oct 23, 2020 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

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

fs/io_uring.c: In function 'loop_rw_iter':
fs/io_uring.c:3141:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
3141 | iovec.iov_base = (void __user *) req->rw.addr;
| ^

Introduced by commit

a5371db1e38d ("io_uring: make loop_rw_iter() use original user supplied pointers")

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 5 lines · Stephen Rothwell

Hi all,

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

Quoted 8 lines

fs/io_uring.c: In function 'loop_rw_iter':
fs/io_uring.c:3141:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
3141 | iovec.iov_base = (void __user *) req->rw.addr;
| ^

Introduced by commit

a5371db1e38d ("io_uring: make loop_rw_iter() use original user supplied pointers")

Thanks, not sure why I didn't use u64_to_user_pointer() in the first place - updated now.

Signature · 1 line
Jens Axboe