From patchwork Tue Jul 26 14:29:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 12929376 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 9B6B6C19F21 for ; Tue, 26 Jul 2022 14:29:44 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id AABEC8E0005; Tue, 26 Jul 2022 10:29:41 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9BDD3900002; Tue, 26 Jul 2022 10:29:41 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8ACAB8E0005; Tue, 26 Jul 2022 10:29:41 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 7A7798E0001 for ; Tue, 26 Jul 2022 10:29:41 -0400 (EDT) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 403F2AAEDB for ; Tue, 26 Jul 2022 14:29:41 +0000 (UTC) X-FDA: 79729484562.01.8603A80 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf31.hostedemail.com (Postfix) with ESMTP id D10EA200A4 for ; Tue, 26 Jul 2022 14:29:39 +0000 (UTC) Received: from canpemm500002.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4LsfNw56LBzjX0w; Tue, 26 Jul 2022 22:26:40 +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; Tue, 26 Jul 2022 22:29:32 +0800 From: Miaohe Lin To: , , CC: , , Subject: [PATCH v2 2/5] hugetlbfs: remove unneeded hugetlbfs_ops forward declaration Date: Tue, 26 Jul 2022 22:29:15 +0800 Message-ID: <20220726142918.51693-3-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20220726142918.51693-1-linmiaohe@huawei.com> References: <20220726142918.51693-1-linmiaohe@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To canpemm500002.china.huawei.com (7.192.104.244) X-CFilter-Loop: Reflected ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1658845781; a=rsa-sha256; cv=none; b=oYgyNOUgHxq3QoT5CPQf38eHxQsrca6A1yxZsBePt+74d+g67fT0Ggj6dfGr2nunjRMS11 +HhDiuoFwUlDr1NHerMz8Qtp1z1lPDQov2JdE/MVeM06MkEXQvx+nYMQiH7Qy1ZJ6yHqbV ij/aYq89TdbHMl6xSbHa4tSCaQ1a0TA= ARC-Authentication-Results: i=1; imf31.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf31.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1658845781; 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=ftNWhZKMCyFHJuS+/lMmo6G1TIYcQUyKHeEfj9gb5Bg=; b=hmNMV04Wo0dCRrD+DfIee+af2DVC4coQV3eU/E3e1sPpZzZfPpUVN81FyxFY1VyVS5rzvP t1k6kAYrffpsbMSS9b3CJ+aNcoRVmuU70pEhk1t5y/Zt1iMFXxSY2CH/qu7W2fLqTcWLOf uHT5lnlQ0cHSvn3i59y1lS/VVAK6QJA= X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: D10EA200A4 Authentication-Results: imf31.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf31.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com X-Stat-Signature: 48p9ihk4bude4ujqtier9nxnxc14dzbr X-HE-Tag: 1658845779-16117 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 Reviewed-by: Muchun Song --- 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;