From patchwork Thu Jul 21 13:16:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 12925108 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38947C433EF for ; Thu, 21 Jul 2022 13:17:01 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A10F38E000D; Thu, 21 Jul 2022 09:16:55 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9C1508E000E; Thu, 21 Jul 2022 09:16:55 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7C54C8E0001; Thu, 21 Jul 2022 09:16:55 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 622A08E000D for ; Thu, 21 Jul 2022 09:16:55 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 34289AB21F for ; Thu, 21 Jul 2022 13:16:55 +0000 (UTC) X-FDA: 79711157190.16.E1182DD Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf17.hostedemail.com (Postfix) with ESMTP id 54436400A1 for ; Thu, 21 Jul 2022 13:16:53 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4LpY1t1P70zkXG5; Thu, 21 Jul 2022 21:14:26 +0800 (CST) Received: from huawei.com (10.175.124.27) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 21 Jul 2022 21:16:49 +0800 From: Miaohe Lin To: , , CC: , , Subject: [PATCH 2/5] hugetlbfs: remove unneeded hugetlbfs_ops forward declaration Date: Thu, 21 Jul 2022 21:16:34 +0800 Message-ID: <20220721131637.6306-3-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20220721131637.6306-1-linmiaohe@huawei.com> References: <20220721131637.6306-1-linmiaohe@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf17.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1658409413; a=rsa-sha256; cv=none; b=sMdxrZWaVBuQPnu4U2JUrnNxzB0JqLm1jchCkEfKBk3FSdmaj47dTyAAmV3D/PbsVmNNBG ExRVxijw1bJSIyxObu4cMyX7uKhgaov3fnuwXwiJemUrdFIstnlbfB+EW31x8/gxLfx+HO l+K4cc1w290CjY5iNAvQXoD913xf6Xo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1658409413; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=maquh9EDDYoYvITFl33TfvanP1Wn7igS/aW6AbUVNFM=; b=CAajNXdcym401PuZtRpdcFPJBCIaqquRlkiU6L1Gu+CDy9VvaQ3JVeobWeYVCWzmXkt/fX M6qVtffbbqzo2aN6IWsDkPSSzbwiIszeL9Qd4RPgG8ppNvS4MC5pWXMRw0m76UcvQYTNGU ZonMAyL+8+e9Gvz42IswXCPThkX9/IE= Authentication-Results: imf17.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf17.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com X-Rspam-User: X-Rspamd-Server: rspam01 X-Stat-Signature: yz86cdt5gim4c9e81p6eh9peakhhsbbm X-Rspamd-Queue-Id: 54436400A1 X-HE-Tag: 1658409413-128178 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: The forward declaration for hugetlbfs_ops is unnecessary. Remove it. Signed-off-by: Miaohe Lin Reviewed-by: Mike Kravetz --- fs/hugetlbfs/inode.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index e998c416b85f..a10156df5726 100644 --- a/fs/hugetlbfs/inode.c +++ b/fs/hugetlbfs/inode.c @@ -40,7 +40,6 @@ #include #include -static const struct super_operations hugetlbfs_ops; static const struct address_space_operations hugetlbfs_aops; const struct file_operations hugetlbfs_file_operations; static const struct inode_operations hugetlbfs_dir_inode_operations;