Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp483535ybl; Tue, 28 Jan 2020 06:40:02 -0800 (PST) X-Google-Smtp-Source: APXvYqwxIRiKDtYcIDgC0jqtD2ZfCxs2C2C7AAgdw2YbBEWeFeEDfmYR+27Kr4BkOEv5Ieyikcge X-Received: by 2002:a9d:21f4:: with SMTP id s107mr17500497otb.102.1580222402072; Tue, 28 Jan 2020 06:40:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580222402; cv=none; d=google.com; s=arc-20160816; b=lLtt90f6iRFdEtBBLzNrwa8fDlIOOkCk9dVW0jPL6gZ3wyZZfQxY08rpW3nqnRbC31 /u3bhj+dnFteOhTOI4b3f0OisXn2QR1Rcb4S35sX3TMQvbMsLsxXn4nAtIVkcvpGS0VB MxMrNwPpCsezKnUQ9JOnPn+1ezHSTnrQj10s0Ht3Fezimu1qEnK7K1KeQBksvnBa/4ig HxNZsy4PWE1ZOHE2w0TooTDFfpQKov6UQjV69GVWnnQURT/mU/kdSifhFt/1KahbyHFJ K62TjTK/gtIk/Mp4vwY0C+IsPKuPVXvyNgcRt8D9hlbMNJjmRYqNTwnAs5X36SKK6y0C Q25Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=dRUFpTD4tx0NMP7Hrsad6maRWdSJuHxktygzckcgHAg=; b=RQPm3R0X9Rz2nqLSFstf+ArUhAbugLD618IECxLohe0CVcpz51x5JEMzrpy4E0kTDn mKjiZCUBqpxVWSMNSlSWp9jZt1iMgJherMwpftyy3bhXf7O1KO3QRDQGeszMBMnUl8+M GJk5mLqegFGgGZV6eB5XykVJv2LaZ8HD+D/yoaZPBNNIWskow38ySykUUujCLVXDWLIJ 5uz3UH+oqY3CMqbewWETFySdKbyxM2TIVPAq/2YIsGI17dPnc27FgD+m6N8pvYrAyk9X Skc+EMKCv7kKZNSn0/JWFzEy6uMowkyhhWx+dHdh2jyMeUwhjksu0FwokOUaGS+3iHD8 h0Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NPcR1Q48; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z14si8535961oth.15.2020.01.28.06.39.49; Tue, 28 Jan 2020 06:40:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NPcR1Q48; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729616AbgA1OTC (ORCPT + 99 others); Tue, 28 Jan 2020 09:19:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:43234 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730787AbgA1OTA (ORCPT ); Tue, 28 Jan 2020 09:19:00 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3BCC32071E; Tue, 28 Jan 2020 14:18:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580221139; bh=bxsM9wkTKbbaw5X9lfoDF/LZA8vY4wzEaVce2Y8TZNs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NPcR1Q48mmKTA1wXyGorJ4pFkEanFnMUxFwmVuOPVJauOyYUcIIwKjDI0jVsDWieg vISBK/BE0pht1jdGUPPH8yjTjf/g+WEAv6GubI+g/TwRngz8C7iEfpinrTqWi3mv63 +IZPdoMG9sT2Ic95/97gGxrOR1w+npaCFhutY5r8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Dave Kleikamp , Sasha Levin Subject: [PATCH 4.9 103/271] jfs: fix bogus variable self-initialization Date: Tue, 28 Jan 2020 15:04:12 +0100 Message-Id: <20200128135900.258014976@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200128135852.449088278@linuxfoundation.org> References: <20200128135852.449088278@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann [ Upstream commit a5fdd713d256887b5f012608701149fa939e5645 ] A statement was originally added in 2006 to shut up a gcc warning, now but now clang warns about it: fs/jfs/jfs_txnmgr.c:1932:15: error: variable 'pxd' is uninitialized when used within its own initialization [-Werror,-Wuninitialized] pxd_t pxd = pxd; /* truncated extent of xad */ ~~~ ^~~ Modern versions of gcc are fine without the silly assignment, so just drop it. Tested with gcc-4.6 (released 2011), 4.7, 4.8, and 4.9. Fixes: c9e3ad6021e5 ("JFS: Get rid of "may be used uninitialized" warnings") Signed-off-by: Arnd Bergmann Signed-off-by: Dave Kleikamp Signed-off-by: Sasha Levin --- fs/jfs/jfs_txnmgr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/jfs/jfs_txnmgr.c b/fs/jfs/jfs_txnmgr.c index 4d973524c8879..224ef034004b7 100644 --- a/fs/jfs/jfs_txnmgr.c +++ b/fs/jfs/jfs_txnmgr.c @@ -1928,8 +1928,7 @@ static void xtLog(struct jfs_log * log, struct tblock * tblk, struct lrd * lrd, * header ? */ if (tlck->type & tlckTRUNCATE) { - /* This odd declaration suppresses a bogus gcc warning */ - pxd_t pxd = pxd; /* truncated extent of xad */ + pxd_t pxd; /* truncated extent of xad */ int twm; /* -- 2.20.1