From patchwork Wed Aug 2 13:32:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 129847 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f41:0:b0:3e4:2afc:c1 with SMTP id v1csp475337vqx; Wed, 2 Aug 2023 06:59:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlF1pGtdiYz4px1I2wAjMaF4g7aLo6yvzOjilFcqwf0qP6scyfmmWIyc1FmNRkFbPtj3ffMO X-Received: by 2002:a17:906:73d9:b0:992:5135:4112 with SMTP id n25-20020a17090673d900b0099251354112mr4551531ejl.32.1690984755289; Wed, 02 Aug 2023 06:59:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690984755; cv=none; d=google.com; s=arc-20160816; b=OknYm3j5ROuhbMLe0KATaZo1/PVpCX2zBQqaBoBLz/JNLVZ1Pnr6Y7QyWaymSoX54o W2kSEtHvCj0rdd9lrqnoV/fNLny/O/iRVn4Ck8YEsSEy0z2Eo+xJKKvcJT1z8AdlNdW3 FbCcd+AO2CJtEXyMr/HeIMV2FgF+Q1VTRYaKTlNS1tnydqPwclIxyVC7a6kbWtAcEWvC rUW4OCNUFH5n7NH0ugy7mmjscvGTtI/264A1xrNqFl0H5j0B9/hjyF3p8eG1UXHZ01Ro kPApAHX2Gov8eh5t+IE3ZUA+FO1W0rIpfFIzj14zFExuXOLQQg9n2QyjI5tJSWXF6icb leiw== 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=mpwdbnUscpG+nCvQ69CL8VQ1DWkMQNPyvicTQYLDIaQ=; fh=+RWcVvYXN3RhCsiQQ//ccqB9KNxzLfWOt9PRpQFJgeU=; b=FOujhlewQfk1I5KIRfEjfiWiIDz63zjbyGx1Oa/85EqEOmPul2F4oYYhliEHCuEjVe SvopVgZWOBEN6KnUHZ1YBh3qSrLzlz/mRh5fPE/N5DUY+mVjADvDQeaW8HNj/dCsnFvv EYg7S7AGNlnukHR7hQymZvkvP5CWLERHgIal8K1A+aZILkhkpypnVqHO+yJI3wO5N1Px A6VUrlXScLj1TMGdTG+tJrRaB0tMgmaHzrnLOUZmyGshUbpTKePVcfKggcrYLMMwlSwi yMtz3kJGcFMktAiuwPCduImZceIzxUV20BalztG45eqAB11/QICToWSpE4MKaWX2j8ug LVWg== 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 j13-20020a170906474d00b0099392706398si10870719ejs.231.2023.08.02.06.58.50; Wed, 02 Aug 2023 06:59:15 -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 S231915AbjHBNdM (ORCPT + 99 others); Wed, 2 Aug 2023 09:33:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234324AbjHBNcr (ORCPT ); Wed, 2 Aug 2023 09:32:47 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E4AC30C7 for ; Wed, 2 Aug 2023 06:32:33 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.53]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4RGCWb56XDzLnvv; Wed, 2 Aug 2023 21:29:47 +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:32:30 +0800 From: Yue Haibing To: , , CC: , Subject: [PATCH -next] iommu/amd: Remove unsued extern declaration amd_iommu_init_hardware() Date: Wed, 2 Aug 2023 21:32:01 +0800 Message-ID: <20230802133201.17512-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=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,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: 1773126031075391364 X-GMAIL-MSGID: 1773126031075391364 From: YueHaibing Commit 2c0ae1720c09 ("iommu/amd: Convert iommu initialization to state machine") left behind this. Signed-off-by: YueHaibing Reviewed-by: Suravee Suthikulpanit --- include/linux/amd-iommu.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/linux/amd-iommu.h b/include/linux/amd-iommu.h index 953e6f12fa1c..99a5201d9e62 100644 --- a/include/linux/amd-iommu.h +++ b/include/linux/amd-iommu.h @@ -32,7 +32,6 @@ struct task_struct; struct pci_dev; extern int amd_iommu_detect(void); -extern int amd_iommu_init_hardware(void); /** * amd_iommu_init_device() - Init device for use with IOMMUv2 driver