From patchwork Wed Aug 2 13:39:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 129849 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f41:0:b0:3e4:2afc:c1 with SMTP id v1csp475695vqx; Wed, 2 Aug 2023 06:59:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlGmN5VfnXnBhwzi1APcmzrTAc5Fk368aknQkbNViCrMf6AwbWM3QoE9Q1psFNKAbUEth3xB X-Received: by 2002:a17:902:ec8d:b0:1b8:35fa:cdb6 with SMTP id x13-20020a170902ec8d00b001b835facdb6mr16678514plg.13.1690984791289; Wed, 02 Aug 2023 06:59:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690984791; cv=none; d=google.com; s=arc-20160816; b=zzcwLhMaFcJAy4/ubwZlbxDTGIiLyd4ee+S6dsyUSNNmA5Vxow+6O6kuJfmnr66Mw/ ZPpaE/lQGZLialN5K19LI/pbaHDUE2NZR7Is99aQgpJ5nLO0LLD/IzB1Z7UlznX8RZ/X Y6u3/WBvjcPksPdBRIOJamPQd71T6FY0Q7fBbFmKHuQIsAH3MKHxuFzo1TgVJwEKzADG cIGroNRj9T6qthherU9LPBtfB11I572ze34HPKm5wLfbzozfjGbrdz9d2VWQtKBQbPfD JGNECJhAr7YOHpuK+7H/QUgrtxMhuV3pFyaS5oHgwmQotd2m/3UfB+LpeE5ESTTZm1vk 1/zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=1wi01375Vau+TMqQbMWwPJnnQfMah04y/WXizfj/Mgo=; fh=PHdmKoVfd5lfXa7Q+iAiDnCvW3MAjniDt8Bqb5328sA=; b=B/4nFv0mVxd3yz1v/06+a6eIQY7vDlTQqApPkRcqC+Kxmr7lnnvL9V8m1cKe/QgX64 BWac5h/mzKP2x+AGhKwJx2e8RzJizoCNDd0/qkwnqJnWyqGKqiExh4PtRlH4DPHRRtYv f1PB/l9xx91LO2NrVJsnGs1axkTwB1llgM0lAYNM//YfifhZjWjJS1S9wUsrZ8VUwPcg cTAsmwp97L6iFq1dWPVkqQGiuDbrN5S1VeHT2mdTieqQjD/rMpT3xizWJMiU2agsSbSx 5b7RiXqpyfFMenaXjDpGwX3j0lpYmNXqqGg44Tzxsm+utNHjbaCc5qilZ3tZMuYli6PY /e4A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c12-20020a170903234c00b001bb0fdb28a3si11272753plh.210.2023.08.02.06.59.36; Wed, 02 Aug 2023 06:59:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232733AbjHBNkG (ORCPT + 99 others); Wed, 2 Aug 2023 09:40:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231683AbjHBNkE (ORCPT ); Wed, 2 Aug 2023 09:40:04 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95E4E2698 for ; Wed, 2 Aug 2023 06:40:02 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4RGCjM1kGhzVj2S; Wed, 2 Aug 2023 21:38:15 +0800 (CST) Received: from localhost (10.174.179.215) by canpemm500007.china.huawei.com (7.192.104.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 2 Aug 2023 21:39:59 +0800 From: Yue Haibing To: , , , , CC: , , , Subject: [PATCH -next] iommu: dmar: Remove unused extern declaration dmar_parse_dev_scope() Date: Wed, 2 Aug 2023 21:39:34 +0800 Message-ID: <20230802133934.19712-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.179.215] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To canpemm500007.china.huawei.com (7.192.104.62) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773126068475117379 X-GMAIL-MSGID: 1773126068475117379 From: YueHaibing Since commit 2e4552893038 ("iommu/vt-d: Unify the way to process DMAR device scope array") this is not used anymore, so can remove it. Signed-off-by: YueHaibing --- include/linux/dmar.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/dmar.h b/include/linux/dmar.h index 27dbd4c64860..e34b601b71fd 100644 --- a/include/linux/dmar.h +++ b/include/linux/dmar.h @@ -106,8 +106,6 @@ static inline bool dmar_rcu_check(void) extern int dmar_table_init(void); extern int dmar_dev_scope_init(void); extern void dmar_register_bus_notifier(void); -extern int dmar_parse_dev_scope(void *start, void *end, int *cnt, - struct dmar_dev_scope **devices, u16 segment); extern void *dmar_alloc_dev_scope(void *start, void *end, int *cnt); extern void dmar_free_dev_scope(struct dmar_dev_scope **devices, int *cnt); extern int dmar_insert_dev_scope(struct dmar_pci_notify_info *info,