Re: [PATCH] btrfs: scrub: Remove compilation errors when -Werror=maybe-uninitialized
From: David Sterba
Date: Thu Jan 19 2023 - 06:10:14 EST
On Thu, Jan 19, 2023 at 01:57:13PM +0800, ye.xingchen@xxxxxxxxxx wrote:
> From: ye xingchen <ye.xingchen@xxxxxxxxxx>
>
> fs/btrfs/scrub.c: In function
> 'scrub_raid56_data_stripe_for_parity.isa.0':
> fs/btrfs/scrub.c:3297:9 error: 'ret' may be used uninitialized in this
> function [-Werror=maybe-uninitialized]
>
> fs/btrfs/scrub.c: In function
> 'scrub_simple_mirror':
> fs/btrfs/scrub.c:3530:9 error: 'ret' may be used uninitialized in this
> function [-Werror=maybe-uninitialized]
What compiler and version do you use?