2019-10-18 22:25:31

by Stephen Rothwell

[permalink] [raw]
Subject: linux-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:

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 ...

--
Cheers,
Stephen Rothwell


Attachments:
(No filename) (499.00 B)
OpenPGP digital signature

2019-10-18 22:25:38

by Jens Axboe

[permalink] [raw]
Subject: Re: linux-next: build warning after merge of the block tree

On 10/17/19 6:56 PM, Jens Axboe wrote:
> On 10/17/19 6:51 PM, Stephen Rothwell wrote:
>> 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 ...
>
> I'll fix these warnings up, guessing it's 32-bit?

Should be fixed up and pushed out now.

--
Jens Axboe

2019-10-18 22:27:34

by Jens Axboe

[permalink] [raw]
Subject: Re: linux-next: build warning after merge of the block tree

On 10/17/19 6:51 PM, Stephen Rothwell wrote:
> 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 ...

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

--
Jens Axboe

2019-10-18 22:33:45

by Stephen Rothwell

[permalink] [raw]
Subject: Re: linux-next: build warning after merge of the block tree

Hi Jens,

On Thu, 17 Oct 2019 18:56:39 -0600 Jens Axboe <[email protected]> wrote:
>
> I'll fix these warnings up, guessing it's 32-bit?

Thanks. Yeah 32 bit.

--
Cheers,
Stephen Rothwell


Attachments:
(No filename) (499.00 B)
OpenPGP digital signature