From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4110BC433E0 for ; Wed, 27 Jan 2021 07:16:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 05C6A20729 for ; Wed, 27 Jan 2021 07:16:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233462AbhA0HQb (ORCPT ); Wed, 27 Jan 2021 02:16:31 -0500 Received: from verein.lst.de ([213.95.11.211]:51665 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233278AbhA0HNK (ORCPT ); Wed, 27 Jan 2021 02:13:10 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id CEF9868AFE; Wed, 27 Jan 2021 08:12:25 +0100 (CET) Date: Wed, 27 Jan 2021 08:12:25 +0100 From: Christoph Hellwig To: Stephen Rothwell Cc: Christian Brauner , Christoph Hellwig , Linux Kernel Mailing List , Linux Next Mailing List Subject: Re: linux-next: build warning after merge of the pidfd tree Message-ID: <20210127071225.GB21133@lst.de> References: <20210127094101.2100177b@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210127094101.2100177b@canb.auug.org.au> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-next@vger.kernel.org On Wed, Jan 27, 2021 at 09:41:01AM +1100, Stephen Rothwell wrote: > Hi all, > > After merging the pidfd tree, today's linux-next build (powerpc > ppc64_defconfig) produced this warning: > > fs/xfs/xfs_ioctl32.c: In function 'xfs_file_compat_ioctl': > fs/xfs/xfs_ioctl32.c:441:20: warning: unused variable 'mp' [-Wunused-variable] > 441 | struct xfs_mount *mp = ip->i_mount; > | ^~ So this is only used in an x86-specific section of the function. Let me think what we can do about this.