Received: by 10.223.164.221 with SMTP id h29csp2086289wrb; Thu, 2 Nov 2017 05:46:29 -0700 (PDT) X-Google-Smtp-Source: ABhQp+RQiQQ4UR5HZrIgqjkALZgxc2sQOQ3KkJ+/6KN1vRtRTlw6LM7ovw+HD2+9DGcJY8KJr3xk X-Received: by 10.101.81.196 with SMTP id i4mr3460877pgq.192.1509626789193; Thu, 02 Nov 2017 05:46:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509626789; cv=none; d=google.com; s=arc-20160816; b=CzwHy/IBtWHdHsciDrzY1omS4fA9OYSgOZDPKsyFlWoxXNpCAd3pdfSlnjVgdKe5VG pND6yEt1ySunai0pGRXg264HNVrZXJnMxI2HvOqzLsd24/7a8o+mb3ak0GzudNYGxMu8 xBaOjq8lS2Zsd6W67KG2Z92ia7a/0uiKDy7won4FUE/8y9I6ZkFLe5jkvJYMBMwTXV2d 8gj2rm4EjJO/q7QJluy40oqt28lKrtbl1nErRMx3SoYGf+7ZBhPGhSe/Ccvc5bHbv+Fu hgOchI8YbyLEzMKnIHSaJddtXQYpgYh0/OCijlF8UJaVcl2qhfBCq8YMQN8HpEQVo7e3 54VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:arc-authentication-results; bh=KvAqz6HdXxIseYpzC4nr3VuNLiHo+rJ1JFBaCp4DwfE=; b=xcByJtJcaYcBkvcGpK9EoVcDCZKrTPAOKKjyzYta+Gr1CRuwZ9xGderpMAsS+uzu1U 8U1bC+ZHQ7cas4uLDt5I4lbPGc/yoKIACUnCwEyfFc0uZcR6AlDi7n10Ls6RLMc6UgjL sdb9rNlJtzn+30CWW/On3hOOooYsjRzp+u5AJRl4s91ajQUVvAaHIougLjJZEONTXJUQ V/ldORWneo/J0xUc0GYFUVneQuvAm7RfpFAGAb6kTVDn2nhVJu4QzkpgFXAQf7mpdQy4 foov5v0hf533b3dMuccxmohryezDdBQ8DQYZLrkolJzZ9LZjqKc34PCdSovB55yJgVd4 ULpg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w16si2268369plp.206.2017.11.02.05.46.15; Thu, 02 Nov 2017 05:46:29 -0700 (PDT) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755154AbdKBMoK (ORCPT + 96 others); Thu, 2 Nov 2017 08:44:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47904 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932868AbdKBMoH (ORCPT ); Thu, 2 Nov 2017 08:44:07 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2F36CC04AC42; Thu, 2 Nov 2017 12:44:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 2F36CC04AC42 Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=bfoster@redhat.com Received: from bfoster.bfoster (dhcp-41-20.bos.redhat.com [10.18.41.20]) by smtp.corp.redhat.com (Postfix) with ESMTP id EC7E45D6B4; Thu, 2 Nov 2017 12:44:04 +0000 (UTC) Received: by bfoster.bfoster (Postfix, from userid 1000) id 0A85A120147; Thu, 2 Nov 2017 08:44:04 -0400 (EDT) Date: Thu, 2 Nov 2017 08:44:03 -0400 From: Brian Foster To: Arnd Bergmann Cc: "Darrick J. Wong" , linux-xfs@vger.kernel.org, Dave Chinner , Eric Sandeen , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] xfs: fix unused variable warnings Message-ID: <20171102124403.GC16645@bfoster.bfoster> References: <20171102111137.3062126-1-arnd@arndb.de> <20171102111137.3062126-2-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171102111137.3062126-2-arnd@arndb.de> User-Agent: Mutt/1.9.1 (2017-09-22) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Thu, 02 Nov 2017 12:44:07 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 02, 2017 at 12:11:13PM +0100, Arnd Bergmann wrote: > fs/xfs/libxfs/xfs_bmap.c: In function 'xfs_bmap_del_extent_delay': > fs/xfs/libxfs/xfs_bmap.c:4648:20: error: unused variable 'ifp' [-Werror=unused-variable] > struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); > ^~~ > fs/xfs/libxfs/xfs_bmap.c: In function 'xfs_bmap_del_extent_cow': > fs/xfs/libxfs/xfs_bmap.c:4776:20: error: unused variable 'ifp' [-Werror=unused-variable] > > Fixes: ca5d8e5b7b90 ("xfs: move pre/post-bmap tracing into xfs_iext_update_extent") > Signed-off-by: Arnd Bergmann > --- Thanks for sending this: Reviewed-by: Brian Foster > fs/xfs/libxfs/xfs_bmap.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c > index f45f05c45e15..fa85b08b8fe2 100644 > --- a/fs/xfs/libxfs/xfs_bmap.c > +++ b/fs/xfs/libxfs/xfs_bmap.c > @@ -4645,7 +4645,6 @@ xfs_bmap_del_extent_delay( > struct xfs_bmbt_irec *del) > { > struct xfs_mount *mp = ip->i_mount; > - struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); > struct xfs_bmbt_irec new; > int64_t da_old, da_new, da_diff = 0; > xfs_fileoff_t del_endoff, got_endoff; > @@ -4663,7 +4662,7 @@ xfs_bmap_del_extent_delay( > da_new = 0; > > ASSERT(*idx >= 0); > - ASSERT(*idx <= xfs_iext_count(ifp)); > + ASSERT(*idx <= xfs_iext_count(XFS_IFORK_PTR(ip, whichfork))); > ASSERT(del->br_blockcount > 0); > ASSERT(got->br_startoff <= del->br_startoff); > ASSERT(got_endoff >= del_endoff); > @@ -4773,7 +4772,6 @@ xfs_bmap_del_extent_cow( > struct xfs_bmbt_irec *del) > { > struct xfs_mount *mp = ip->i_mount; > - struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, XFS_COW_FORK); > struct xfs_bmbt_irec new; > xfs_fileoff_t del_endoff, got_endoff; > int state = BMAP_COWFORK; > @@ -4784,7 +4782,7 @@ xfs_bmap_del_extent_cow( > got_endoff = got->br_startoff + got->br_blockcount; > > ASSERT(*idx >= 0); > - ASSERT(*idx <= xfs_iext_count(ifp)); > + ASSERT(*idx <= xfs_iext_count(XFS_IFORK_PTR(ip, XFS_COW_FORK))); > ASSERT(del->br_blockcount > 0); > ASSERT(got->br_startoff <= del->br_startoff); > ASSERT(got_endoff >= del_endoff); > -- > 2.9.0 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-xfs" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html From 1582952558896478367@xxx Thu Nov 02 11:13:19 +0000 2017 X-GM-THRID: 1582952558896478367 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread