2020-02-11 22:12:07

by Stephen Rothwell

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

Hi all,

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

fs/btrfs/volumes.c: In function 'btrfs_scratch_superblocks':
fs/btrfs/volumes.c:7338:3: warning: ignoring return value of 'write_one_page', declared with attribute warn_unused_result [-Wunused-result]
7338 | write_one_page(page);
| ^~~~~~~~~~~~~~~~~~~~

Introduced by commit

d19ec014a46b ("btrfs: use the page-cache for super block reading")

--
Cheers,
Stephen Rothwell


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

2020-02-12 16:05:48

by David Sterba

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

On Wed, Feb 12, 2020 at 09:10:28AM +1100, Stephen Rothwell wrote:
> Hi all,
>
> After merging the btrfs tree, today's linux-next build (powerpc
> ppc64_defconfig) produced this warning:
>
> fs/btrfs/volumes.c: In function 'btrfs_scratch_superblocks':
> fs/btrfs/volumes.c:7338:3: warning: ignoring return value of 'write_one_page', declared with attribute warn_unused_result [-Wunused-result]
> 7338 | write_one_page(page);
> | ^~~~~~~~~~~~~~~~~~~~
>
> Introduced by commit
>
> d19ec014a46b ("btrfs: use the page-cache for super block reading")

Known and fix is in the patchset revision that will be in the next
for-next branch update. Thanks.

2020-02-20 22:33:22

by Stephen Rothwell

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

Hi David,

On Wed, 12 Feb 2020 17:03:41 +0100 David Sterba <[email protected]> wrote:
>
> On Wed, Feb 12, 2020 at 09:10:28AM +1100, Stephen Rothwell wrote:
> >
> > After merging the btrfs tree, today's linux-next build (powerpc
> > ppc64_defconfig) produced this warning:
> >
> > fs/btrfs/volumes.c: In function 'btrfs_scratch_superblocks':
> > fs/btrfs/volumes.c:7338:3: warning: ignoring return value of 'write_one_page', declared with attribute warn_unused_result [-Wunused-result]
> > 7338 | write_one_page(page);
> > | ^~~~~~~~~~~~~~~~~~~~
> >
> > Introduced by commit
> >
> > d19ec014a46b ("btrfs: use the page-cache for super block reading")
>
> Known and fix is in the patchset revision that will be in the next
> for-next branch update. Thanks.

I am still getting that warning.

--
Cheers,
Stephen Rothwell


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