From patchwork Mon Aug 14 13:55:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 135459 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp2773357vqi; Mon, 14 Aug 2023 07:14:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHh05w6Rdu3H8rQQ/U760I8rWM7DmoAmBBoHreh2g/YX6FTRd+Jf4hHh1pMo4vhBUTtYKWt X-Received: by 2002:a05:6a20:158e:b0:13e:7d3:61d1 with SMTP id h14-20020a056a20158e00b0013e07d361d1mr14380748pzj.12.1692022450206; Mon, 14 Aug 2023 07:14:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692022450; cv=none; d=google.com; s=arc-20160816; b=Jr+n75cve9Ms9rRNxchqnjki0y7piIQaV95fYocEuSDeScOG+hUyJ6xQseXWE7ei/o b9cqiOUXUoRFsXcNHrF2YcQYwwQp5tuZTSGuhm/WBEonmBk1pn8iEYDYa1TiNgZa3lUJ E3//W6xDYBx2IHDuCg4M3oUs9+BHjdtPwJzuQ+BuYplGKhZnK4LJIQevU1FoJ0C/QHfx N8wqSScMtr7jc4rOq78SKyqM/yQulkDjViA/obWYP6HDPeGrHOVQd5gpddK9h78k36Xt ZL2qUYNpdeZTB1mDETChzH4hK0Lh2YN3KsgMrRh8Behrouk9XtEo15yKqGYSM2tyUnIc nEIg== 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=Xn+dJFQkimdwOD/58U+GcprqFDYWcQxTzrEyzl/yv6I=; fh=6oN3E166UYtapnVors0mF/+I7cBPSPmD/mT6Q4KGB30=; b=ifhoe3EzzA39qpbMjiimPvEJYJ1okWQknwYuTGNr/FlFXS8A6TOtY7ZEh1PmQWFnRS t2q6TkNLPRW0pn/gFIiVYNJybviazsL9RVj7vUfFDK98aDhmmP1hcZz40WOyy0hBXdzZ nEnuUF18xCAJeemXmzBX+XxeCCbyD7PjGheSfJiCn3NUWJ+E3jUP3NzMYD4tYUpFnIsO 33jArU3dDRBVbPxgu8st2MRXTcbsCCKEcN4+ljCZBSF7DagObRPgW4U2T8N170HLmvQE aiuuJiZmhxkUkNHb+SmGPmtTCyYhaha0fDYbJhrOeWy0qOkY3375kr39EIWB/GY+QvTU R5pw== 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 i191-20020a6387c8000000b00565d0ebe3f3si273568pge.359.2023.08.14.07.13.56; Mon, 14 Aug 2023 07:14:10 -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 S231658AbjHNNzo (ORCPT + 99 others); Mon, 14 Aug 2023 09:55:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231684AbjHNNzN (ORCPT ); Mon, 14 Aug 2023 09:55:13 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAA04E6D for ; Mon, 14 Aug 2023 06:55:11 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RPbTp626WzrRxB; Mon, 14 Aug 2023 21:53:50 +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.31; Mon, 14 Aug 2023 21:55:09 +0800 From: Yue Haibing To: , , , , CC: , , Subject: [PATCH -next] iommu/amd: Remove unused declarations Date: Mon, 14 Aug 2023 21:55:02 +0800 Message-ID: <20230814135502.4808-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: dggems701-chm.china.huawei.com (10.3.19.178) 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 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: 1774214132896152992 X-GMAIL-MSGID: 1774214132896152992 Commit aafd8ba0ca74 ("iommu/amd: Implement add_device and remove_device") removed the implementations but left declarations in place. Remove it. Signed-off-by: Yue Haibing --- drivers/iommu/amd/amd_iommu.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/iommu/amd/amd_iommu.h b/drivers/iommu/amd/amd_iommu.h index f23ad6043f04..e2857109e966 100644 --- a/drivers/iommu/amd/amd_iommu.h +++ b/drivers/iommu/amd/amd_iommu.h @@ -20,9 +20,6 @@ void amd_iommu_apply_erratum_63(struct amd_iommu *iommu, u16 devid); void amd_iommu_restart_event_logging(struct amd_iommu *iommu); void amd_iommu_restart_ga_log(struct amd_iommu *iommu); void amd_iommu_restart_ppr_log(struct amd_iommu *iommu); -int amd_iommu_init_devices(void); -void amd_iommu_uninit_devices(void); -void amd_iommu_init_notifier(void); void amd_iommu_set_rlookup_table(struct amd_iommu *iommu, u16 devid); #ifdef CONFIG_AMD_IOMMU_DEBUGFS