Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 3 participants 3 messages Mar 4, 2020 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

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

fs/io_uring.c: In function 'io_close':
fs/io_uring.c:3415:3: warning: ignoring return value of 'refcount_inc_not_zero', declared with attribute warn_unused_result [-Wunused-result]

 3415 |   refcount_inc_not_zero(&req->refs);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Introduced by commit

62e0c6b73a2c ("io_uring: make submission ref putting consistent")

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 (powerpc ppc64_defconfig) produced this warning:

Quoted 8 lines

fs/io_uring.c: In function 'io_close':
fs/io_uring.c:3415:3: warning: ignoring return value of 'refcount_inc_not_zero', declared with attribute warn_unused_result [-Wunused-result]

 3415 |   refcount_inc_not_zero(&req->refs);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Introduced by commit

62e0c6b73a2c ("io_uring: make submission ref putting consistent")

That should just be a refcount_inc() and also looks like it should happen before the async queue. I'll fix it up.

Signature · 1 line
Jens Axboe
#2 lore raw
Quoted 11 lines · Jens Axboe
Quoted 10 lines · Stephen Rothwell

Hi all,

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

fs/io_uring.c: In function 'io_close':
fs/io_uring.c:3415:3: warning: ignoring return value of 'refcount_inc_not_zero', declared with attribute warn_unused_result [-Wunused-result]

 3415 |   refcount_inc_not_zero(&req->refs);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Quoted 6 lines
Quoted 3 lines

Introduced by commit

62e0c6b73a2c ("io_uring: make submission ref putting consistent")

That should just be a refcount_inc() and also looks like it should happen before the async queue. I'll fix it up.

Yes, it's better to. Thanks!

Signature · 1 line
Pavel Begunkov