Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2889025pxj; Sun, 6 Jun 2021 18:17:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJye+e+wj38oN6YwRSOMaWDnLuOjrjks1YurjopAFj5AVc14o9/hi8v/j3N6DosRgh/nxerw X-Received: by 2002:aa7:d288:: with SMTP id w8mr8062518edq.276.1623028654382; Sun, 06 Jun 2021 18:17:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623028654; cv=none; d=google.com; s=arc-20160816; b=DM3KADngypgVygNuCK4xjUjtY77WX3Ib0hCIrnEYiQPhAEe0hrUQENLXqHUKjt8tB1 TiMZIGD3cVST4YpJE0wvSBa1d6piGY2Yfe3kxT96xBXzKxOtyENnbJkUTl/D8+qoNVMt rkDDoUhXDPxU5NzJ6wB2rEUfy9WsuB9rsB7eXI+b+XKj7zuC6wFelD0ybB9sl1WK+3ds xVeBbXh/26I+/P9fIcSvv+GEdiyhxTpPkJJUaLmeqIICpxSgdYt7VjnnFr4YDI8qFRbY UB+MAWdq1g8/zDV5V8zGHSB9+PcIglm97sz48tRxbrzd6ehWxoyLFjR8cqKqT3YB2osK zeiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=8HQ4WmTypMWj2dMuWy6fK8PxBPVp/a+KFUZmsmoJkgA=; b=OwOOmlDdUUAAXqXxBwwaf1rMRA4d9tM2CAriEXPf+bXrMllTMZqeCCvvQcU1tg9can 8iK29JIKCrh7plFWBxGfk50jYqwJJt5AVl45E30GEAHe/qtLMMzO+7IBTt7F6FcY9D4G FJkDw7Q7D+h00keeQUQRD0Z7YfjuyWxlPT7P/1M1sowleCKwVVWmgr5AIjDDN+DUMpj4 cAsshj5wZY17oNgLvWoZYGrG7YS7zeQIQStm3R7EEzgh1/3ilMgELkBXrph7MrXF+hr6 o7K2JNSL5Vp1fh3KjNNGCe+62X35Q4k9UhBs+NxdyY9z4+FADqFQAOlHvtOHZ4fAJjZH O+Zw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i18si10187667edr.251.2021.06.06.18.17.10; Sun, 06 Jun 2021 18:17:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230078AbhFGBSI (ORCPT + 99 others); Sun, 6 Jun 2021 21:18:08 -0400 Received: from mail110.syd.optusnet.com.au ([211.29.132.97]:37736 "EHLO mail110.syd.optusnet.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229894AbhFGBSH (ORCPT ); Sun, 6 Jun 2021 21:18:07 -0400 Received: from dread.disaster.area (pa49-179-138-183.pa.nsw.optusnet.com.au [49.179.138.183]) by mail110.syd.optusnet.com.au (Postfix) with ESMTPS id 800B3109E49; Mon, 7 Jun 2021 11:16:00 +1000 (AEST) Received: from dave by dread.disaster.area with local (Exim 4.92.3) (envelope-from ) id 1lq3rz-009pM0-82; Mon, 07 Jun 2021 11:15:59 +1000 Date: Mon, 7 Jun 2021 11:15:59 +1000 From: Dave Chinner To: Stephen Rothwell Cc: "Darrick J. Wong" , linux-xfs@vger.kernel.org, Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build warning after merge of the xfs tree Message-ID: <20210607011559.GA664593@dread.disaster.area> References: <20210607104819.2c032c75@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210607104819.2c032c75@canb.auug.org.au> X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.3 cv=F8MpiZpN c=1 sm=1 tr=0 a=MnllW2CieawZLw/OcHE/Ng==:117 a=MnllW2CieawZLw/OcHE/Ng==:17 a=kj9zAlcOel0A:10 a=r6YtysWOX24A:10 a=7-415B0cAAAA:8 a=NWAoBSUOnvqdeyLw_2IA:9 a=CjuIK1q_8ugA:10 a=biEYGPWJfzWAr4FL6Ov7:22 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 07, 2021 at 10:48:19AM +1000, Stephen Rothwell wrote: > Hi all, > > After merging the xfs tree, today's linux-next build (powerpc_ppc64 > defconfig) produced this warning: > > fs/xfs/libxfs/xfs_ialloc.c: In function 'xfs_difree_finobt': > fs/xfs/libxfs/xfs_ialloc.c:2032:20: warning: unused variable 'agi' [-Wunused-variable] > 2032 | struct xfs_agi *agi = agbp->b_addr; > | ^~~ > > Not sure how this came about, but somehow DEBUG has been turned off > which exposes this. I think I replaced all the agi->agi_seqno usages in that function with pag->pag_agno and so now the agi structure is only accessed via debug functions. The debug code should now pass perag structures rather than raw AGI structures to check the free inode counts.... Cheers, Dave. -- Dave Chinner david@fromorbit.com