Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp113948pxb; Wed, 3 Feb 2021 00:43:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJzxLMk2Zep1axFrs9nO9Zd++ZrXRrK9wjiRBeS7PmmW1bTrDJ1T6B4wKgfvEvIdReXgNU7Q X-Received: by 2002:a17:907:1701:: with SMTP id le1mr2233267ejc.68.1612341823586; Wed, 03 Feb 2021 00:43:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612341823; cv=none; d=google.com; s=arc-20160816; b=Il1fB0rZLx/07iJcTIGyD0f9T+lxl0q8743aSCKStzzdDJUj2YM6TsEXAEluXuU11g e860ULBL6mUaUi5Hd273lSroj8aev7pVDWg2q2FcITxFCBoHrPE0663/LFcL6zm1aFvI PXygVJwLRPv8hM9GeFQX48JbbNLAGfr7p2JH4f6a4Jd/xak1laQ6QeAfm+VzlAMF6hKy 2xhMS0d6avkWUoemdiyuBNFbsrize3vX4bmrU15Puq8CUZEF9nsVKxuj4/bcJx+0qTSK GFwpdjzR8fe1Ntnv6tc1mPqFAHTSPMwIHVqG8gUsFoTI0TRcAEUuRf0V3Q3niVvpu8js mGXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=4hOzBeLFw5p3HQ/Nr2AMt+rlfK/n3wnORYSxGhxeDWg=; b=jGuYzsqFtSPhZd2WBhBKt6LeYC2SivJpPPyjKoTKl50VeQp5ehkVWNN9JXtaz4sM0L lURbaHpnfZjvXOCCNh9YOc+g0HBbxR/lHPiww54XJhlB91itRCUmq3emVdLhmiJ8HJE4 2Zgdd9O2phuMdLmCQEEMvw9lwTE+dtJWw+4hTUpu7o/S7ij8+efu53L+hew7Z9tVjMHC 4x/HHF5wMq/gftLug7APEO32MvbF7I7ecqAmXFZXBAqSfUSQRyBhS4sPUpsoPvUN/gc0 EIS6GFSccxS0OxbjOppbDY2n+1OgW220kIRrDou6tulEg1lN3wW8Dv1L6gkzpguREOqk 2N3Q== 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 w11si951105eju.458.2021.02.03.00.43.19; Wed, 03 Feb 2021 00:43:43 -0800 (PST) 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 S233052AbhBCIl5 (ORCPT + 99 others); Wed, 3 Feb 2021 03:41:57 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:12012 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233001AbhBCIk6 (ORCPT ); Wed, 3 Feb 2021 03:40:58 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4DVw7d1cs9zjJYJ; Wed, 3 Feb 2021 16:38:37 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.498.0; Wed, 3 Feb 2021 16:39:44 +0800 From: Shaokun Zhang To: , CC: Shaokun Zhang , "Darrick J. Wong" , Christoph Hellwig , Christian Brauner Subject: [PATCH -next] xfs: Fix unused variable 'mp' warning Date: Wed, 3 Feb 2021 16:39:18 +0800 Message-ID: <1612341558-22171-1-git-send-email-zhangshaokun@hisilicon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is a warning on arm64 platform: CC [M] fs/xfs/xfs_ioctl32.o 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; | ^~ LD [M] fs/xfs/xfs.o Fix this warning. Fixes: f736d93d76d3 ("xfs: support idmapped mounts") Cc: "Darrick J. Wong" Cc: Christoph Hellwig Cc: Christian Brauner Signed-off-by: Shaokun Zhang --- fs/xfs/xfs_ioctl32.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/xfs/xfs_ioctl32.c b/fs/xfs/xfs_ioctl32.c index 926427b19573..fd590c0b5d3b 100644 --- a/fs/xfs/xfs_ioctl32.c +++ b/fs/xfs/xfs_ioctl32.c @@ -438,7 +438,6 @@ xfs_file_compat_ioctl( { struct inode *inode = file_inode(filp); struct xfs_inode *ip = XFS_I(inode); - struct xfs_mount *mp = ip->i_mount; void __user *arg = compat_ptr(p); int error; @@ -446,6 +445,8 @@ xfs_file_compat_ioctl( switch (cmd) { #if defined(BROKEN_X86_ALIGNMENT) + struct xfs_mount *mp = ip->i_mount; + case XFS_IOC_ALLOCSP_32: case XFS_IOC_FREESP_32: case XFS_IOC_ALLOCSP64_32: -- 2.7.4