Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp580232lqo; Wed, 8 May 2024 08:35:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUJKLe7xumnBPBGCgoyzPm4uHI8G/wiykeQ5lwThDSz0N5k7rE9v3i9kylf4KtR5TDNu/5bZmwkBsjtGF/PI1yHrEGB8BW2tu1Lv7MtHQ== X-Google-Smtp-Source: AGHT+IFN1LfN7kQY0Elijh1Z+MBVJikvO4ZPxS4IdMrv/RmNTkXPjmeH2lSAHVtf+6l753rcgMpO X-Received: by 2002:a05:620a:2725:b0:792:929a:c20c with SMTP id af79cd13be357-792b279ab0cmr381061185a.28.1715182556446; Wed, 08 May 2024 08:35:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715182556; cv=pass; d=google.com; s=arc-20160816; b=cAo/dZn8ee2QUqTCpsNAR/SpvdNNa+PVAZUZ3UKUYijzImMyA0kTjGQrBf39xSjIuv gnjPN2MsczWSy3vyNxmvR42ZR1SRQibXASBHGwltH8Zmv5sgfA65zy1M1zodL6nSeoF1 V8HLkOW/qAAbzANhtVYT3JsHzYIYCvXvMMXJM6lTv13WAqHnrpwIRXgjppiFozoOEDJU RF07ecPCrS4ktjNW4ijtkGWgx1IefqUf0ulRu2Seogo3kseS6icvmRT7V/JUTAujbYWa 9dCv1AoEIN82pHVRqxwm0YdhpYp9XqyN+KO0LLTPK6AdhnWkM8nKMLs0FUeTunBhgVIQ TJdA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature:dkim-signature; bh=lm7blVN96AATC1Uf2yDMcFq6LkeeP8cygV+zg6qPXC4=; fh=HdJFn3Dyv0OO0icQ6XgovWdRpQ/I29rmylRyMTU0zQ8=; b=q1mWdOSx+ABPpyRpMTsCJKZu/GnEtF5impjpLY/I22gtz534PgHDQjcPApMeYtH7Ux NjfZ8JjUS47dx2UEK6MqWdm28QIq5vd8lH6acaUVC69ai6GSx+aL1/cJgQwjccvYOn76 jq+Lp0E9Wjaz8qtS4OgubhLQDO9mnTu8VD56sgs/nNvREunyZgkAQeyKheJ5jzZotuxW xzvmItSiD4WhR1TF8I0iv2LyMbZjQMGXV7WNjPMiQ87Dw2g+SMOeGHVhQ0yN25p0K+h5 BOIU1S4NM/a8sYkSR1rV2JkXJ7/QhXDgsovUgJxCDPbSzDmP6F0Z46U423W4/iMWRLxe fgrg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bur.io header.s=fm1 header.b=A+azkakD; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="W/QpmYuG"; arc=pass (i=1 spf=pass spfdomain=bur.io dkim=pass dkdomain=bur.io dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-173494-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173494-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u15-20020a05620a454f00b0078eddf7d96csi15195986qkp.249.2024.05.08.08.35.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 08:35:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173494-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bur.io header.s=fm1 header.b=A+azkakD; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="W/QpmYuG"; arc=pass (i=1 spf=pass spfdomain=bur.io dkim=pass dkdomain=bur.io dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-173494-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173494-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 148D71C24569 for ; Wed, 8 May 2024 15:35:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5119F1292D1; Wed, 8 May 2024 15:35:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bur.io header.i=@bur.io header.b="A+azkakD"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="W/QpmYuG" Received: from wfout4-smtp.messagingengine.com (wfout4-smtp.messagingengine.com [64.147.123.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6CF161272A0; Wed, 8 May 2024 15:35:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.147 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715182521; cv=none; b=WPXUca58+9vcObuQF90KlcjGyex5gJ2oZkdXwumUEFQ7gorJtX2p7nCWK3UiyPKQWo3TXWKU6fAqVi0TuGcoxSy6bUDTJX6Y1T3MzvijceevZlfG5+qrc4VSbsy3STr2dhX9R0Qd/xfxvaFRYTrylzt4rWWEjg1J09Au5hemzLc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715182521; c=relaxed/simple; bh=+dRTs8ZqtmxuGvGGQTyQR67DLee11cjjm+poaEq/vJ0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ovKPTXap3Qsr2pUdVIwieNEVFJjU8LIYrIrgphjQCCs8OJAjKZMX62Ovqq9EsYQXvUs7M41jjqX3PpgkQEvzxgpaCd4k8vTo+Ulg58L8XNRxIIZsLocrkrlhdHm/JpQ8UvNMbAX5vXdGNDk3Hx/l7dfspRbPu03DQpGqdIz7/Og= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bur.io; spf=pass smtp.mailfrom=bur.io; dkim=pass (2048-bit key) header.d=bur.io header.i=@bur.io header.b=A+azkakD; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=W/QpmYuG; arc=none smtp.client-ip=64.147.123.147 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bur.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bur.io Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfout.west.internal (Postfix) with ESMTP id 4249B1C00117; Wed, 8 May 2024 11:35:18 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Wed, 08 May 2024 11:35:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bur.io; h=cc:cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1715182517; x=1715268917; bh=lm7blVN96AATC1Uf2yDMcFq6LkeeP8cygV+zg6qPXC4=; b= A+azkakDnYGBO9BeCz/RXCX4GlmqJiq3dB0KkEEO/vXz9alEURN/UlczpnBtc48b TgXCqAD/I61eNhZAVZSaYdSjep2CoDFdhB9guSN8HAwTkk6dNzynL0ichVEoebdY xmgDGXpW3FX68/07UDwzT3KOcl9rb2KQWY5mf9P37Se5pdJ8YxTpUvjblnUT1LVZ 0Nx10hldSGgbmgTjVVQAMITP+98OeLzKF2SQC+IluzHwvW+sNCGn0xWo1hB9lp0M f39D3V2x1E3LVZX9M1pUNcAUjEJUeS1EMZ3M76m2AN0IzMcUsvAi4F4TS/xrIU86 uPyAhbQ6qBl6tQeTYd2EcQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1715182517; x= 1715268917; bh=lm7blVN96AATC1Uf2yDMcFq6LkeeP8cygV+zg6qPXC4=; b=W /QpmYuGKDgvozx+qRfKTDGJUZyhHkcq0d7TGKvZvEfJGnFUi+b3YcQ6mlcmxA6zi POG9hmTbs3W30JR8sqdyFZs2Lfqqt75ihM+PFsA6JRmMXcHJpxW2VNzLTrZC+rQ1 NZpPayYDIcUTkcJ5omYdPfzDb0i3r5eqlepUnfLaW76OGAS/lfsC3MzcLDre/JC6 eCG1tTOZmvDPtJfX097G8B6B2KtG/6LsKLLoDxOkylpGus8tD7S9DPbWYmuujo+5 pZh6oD/BbWdDBBoLbuh5RbF6xLvfR5SLzDE+8HJuY9vDOWllZtVOjchwkQAM7ngW 8MdymGtjmNJjBVwGFhIgg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdeftddgkeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggugfgjsehtkeertddttdejnecuhfhrohhmpeeuohhr ihhsuceuuhhrkhhovhcuoegsohhrihhssegsuhhrrdhioheqnecuggftrfgrthhtvghrnh epudelhfdthfetuddvtefhfedtiedtteehvddtkedvledtvdevgedtuedutdeitdeinecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepsghorhhish essghurhdrihho X-ME-Proxy: Feedback-ID: i083147f8:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 8 May 2024 11:35:16 -0400 (EDT) Date: Wed, 8 May 2024 08:37:35 -0700 From: Boris Burkov To: Lu Yao Cc: clm@fb.com, josef@toxicpanda.com, dsterba@suse.com, linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] btrfs: scrub: fix a compilation warning Message-ID: <20240508153735.GB372255@zen.localdomain> References: <20240507023417.31796-1-yaolu@kylinos.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240507023417.31796-1-yaolu@kylinos.cn> On Tue, May 07, 2024 at 10:34:17AM +0800, Lu Yao wrote: > The following error message is displayed: > ../fs/btrfs/scrub.c:2152:9: error: ‘ret’ may be used uninitialized > in this function [-Werror=maybe-uninitialized]" > > Signed-off-by: Lu Yao Reviewed-by: Boris Burkov > --- > gcc version: (Debian 10.2.1-6) 10.2.1 20210110 > --- > fs/btrfs/scrub.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c > index 4b22cfe9a98c..afd6932f5e89 100644 > --- a/fs/btrfs/scrub.c > +++ b/fs/btrfs/scrub.c > @@ -2100,7 +2100,7 @@ static int scrub_simple_mirror(struct scrub_ctx *sctx, > struct btrfs_fs_info *fs_info = sctx->fs_info; > const u64 logical_end = logical_start + logical_length; > u64 cur_logical = logical_start; > - int ret; > + int ret = 0; > > /* The range must be inside the bg */ > ASSERT(logical_start >= bg->start && logical_end <= bg->start + bg->length); > -- > 2.25.1 >