Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 2 participants 4 messages Oct 18, 2019 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

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

fs/io_uring.c: In function 'io_accept':
fs/io_uring.c:1729:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1729 | addr = (struct sockaddr __user *) READ_ONCE(sqe->addr);
| ^
fs/io_uring.c:1730:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1730 | addr_len = (int __user *) READ_ONCE(sqe->addr2);
| ^

Introduced by commit

d674c2b9335f ("io_uring: add support for IORING_OP_ACCEPT")

addr and addr2 are __u64 ...

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

Hi all,

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

fs/io_uring.c: In function 'io_accept':
fs/io_uring.c:1729:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1729 | addr = (struct sockaddr __user *) READ_ONCE(sqe->addr);
| ^
fs/io_uring.c:1730:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1730 | addr_len = (int __user *) READ_ONCE(sqe->addr2);
| ^

Quoted 5 lines

Introduced by commit

   d674c2b9335f ("io_uring: add support for IORING_OP_ACCEPT")

addr and addr2 are __u64 ...

I'll fix these warnings up, guessing it's 32-bit?

Signature · 1 line
Jens Axboe
#2 lore raw
Quoted 14 lines · Jens Axboe
Quoted 13 lines · Stephen Rothwell

Hi all,

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

fs/io_uring.c: In function 'io_accept':
fs/io_uring.c:1729:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1729 | addr = (struct sockaddr __user *) READ_ONCE(sqe->addr);
| ^
fs/io_uring.c:1730:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1730 | addr_len = (int __user *) READ_ONCE(sqe->addr2);
| ^

Quoted 7 lines
Quoted 5 lines

Introduced by commit

    d674c2b9335f ("io_uring: add support for IORING_OP_ACCEPT")

addr and addr2 are __u64 ...

I'll fix these warnings up, guessing it's 32-bit?

Should be fixed up and pushed out now.

Signature · 1 line
Jens Axboe