From patchwork Fri Aug 11 09:59:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 134396 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp979998vqi; Fri, 11 Aug 2023 03:12:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEwUiXgtkGnFmCJTdhIV3Si6GzO/tewWmCafcyD5Ty7owsKyq+5XGZKZV7NNYdrwfBhteDp X-Received: by 2002:aa7:d054:0:b0:521:ae63:ee63 with SMTP id n20-20020aa7d054000000b00521ae63ee63mr1265490edo.16.1691748740625; Fri, 11 Aug 2023 03:12:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691748740; cv=none; d=google.com; s=arc-20160816; b=rXPKt21jS1HxFTjQu0KCDXvDUmIDcV74kwt4jNBApHa0Z5eWtfoHGEoKwJh88nO220 lKSb8vIBgIFHoPGt7aukTkD2fn0AWansQvwpHQv9gW6tuIw4YjeQRCy5hhrQCZNtnmqk XuXn6QRCXJHBjBkHvXysStr06buysbR4Zj0p036c06ZPr6d6ndGUIIX2kORPY0KI0p/W opKcTX6Dh212ltfOE68Wh49y6JiOKaR8dslq41LmDlDj36LEvar+WeVodHEps7rPcMrD Ftu3II7JkK0GX39cjulEhIhzXggau8xOcDbd8ZSe4smUA1BGtMhPeuKfl8oTzj8hXzFP 4qmQ== 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=RWqpGXrecbvPz3ngYgbG9shMVIN64u93Hv8XcP9ESKE=; fh=gaUIbLpr+fcsysHlTROeZQC2zKU5wa1/N6xWN4H0KNg=; b=wOc98QjsIK/JgTKOOdyMgc3ZlDFfNpPDkT8XLRv5A87YT0inC2YSdeVBER4ZSU2Ezb JppoBY+SxQqvNFtxiGrQomjiVLGSyNEGuD+uJsvjf6ITL9Uy2KOr8bb69oZ2r2/z1X6d e5K98+/vGQbb5mSulLinv2fO0lDmO/P3qjg5UDAfiYfdDg614XnCveg1NisR3Gwnc1iH +TxxHspL8anscH11iQwx2mAPDgC0h3b6YDSnfH9tlyk39Ke125GS7nfzFHQWnUntDtG4 Nscu6qzbO8S37ycjsXMfThY4rnwtVFwHNWEqTeAXYkxhr7eEOSSgCOwtlrD3jTeFG+2P gRnw== 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 l23-20020a056402345700b005231c4e7d8fsi3065457edc.455.2023.08.11.03.11.56; Fri, 11 Aug 2023 03:12:20 -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 S232691AbjHKJ7k (ORCPT + 99 others); Fri, 11 Aug 2023 05:59:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230149AbjHKJ7h (ORCPT ); Fri, 11 Aug 2023 05:59:37 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B46D9273E; Fri, 11 Aug 2023 02:59:36 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4RMfNd0P6yzTmQq; Fri, 11 Aug 2023 17:57:37 +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; Fri, 11 Aug 2023 17:59:34 +0800 From: Yue Haibing To: , , , , CC: , , Subject: [PATCH -next] PCI: Remove unused function declarations Date: Fri, 11 Aug 2023 17:59:33 +0800 Message-ID: <20230811095933.28652-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: 1773927127779136021 X-GMAIL-MSGID: 1773927127779136021 These declarations is never implemented since the beginning of git history. Signed-off-by: Yue Haibing --- drivers/pci/hotplug/acpiphp.h | 1 - drivers/pci/hotplug/cpci_hotplug.h | 2 -- drivers/pci/hotplug/ibmphp.h | 2 -- include/linux/pci.h | 1 - 4 files changed, 6 deletions(-) diff --git a/drivers/pci/hotplug/acpiphp.h b/drivers/pci/hotplug/acpiphp.h index 1f8ab4377ad8..5745be6018e1 100644 --- a/drivers/pci/hotplug/acpiphp.h +++ b/drivers/pci/hotplug/acpiphp.h @@ -178,7 +178,6 @@ void acpiphp_unregister_hotplug_slot(struct acpiphp_slot *slot); int acpiphp_enable_slot(struct acpiphp_slot *slot); int acpiphp_disable_slot(struct acpiphp_slot *slot); u8 acpiphp_get_power_status(struct acpiphp_slot *slot); -u8 acpiphp_get_attention_status(struct acpiphp_slot *slot); u8 acpiphp_get_latch_status(struct acpiphp_slot *slot); u8 acpiphp_get_adapter_status(struct acpiphp_slot *slot); diff --git a/drivers/pci/hotplug/cpci_hotplug.h b/drivers/pci/hotplug/cpci_hotplug.h index 3fdd1b9bd8c3..6d8970d8c3f2 100644 --- a/drivers/pci/hotplug/cpci_hotplug.h +++ b/drivers/pci/hotplug/cpci_hotplug.h @@ -83,8 +83,6 @@ extern int cpci_debug; * board/chassis drivers. */ u8 cpci_get_attention_status(struct slot *slot); -u8 cpci_get_latch_status(struct slot *slot); -u8 cpci_get_adapter_status(struct slot *slot); u16 cpci_get_hs_csr(struct slot *slot); int cpci_set_attention_status(struct slot *slot, int status); int cpci_check_and_clear_ins(struct slot *slot); diff --git a/drivers/pci/hotplug/ibmphp.h b/drivers/pci/hotplug/ibmphp.h index 0399c60d2ec1..41eafe511210 100644 --- a/drivers/pci/hotplug/ibmphp.h +++ b/drivers/pci/hotplug/ibmphp.h @@ -264,8 +264,6 @@ extern struct list_head ibmphp_slot_head; void ibmphp_free_ebda_hpc_queue(void); int ibmphp_access_ebda(void); struct slot *ibmphp_get_slot_from_physical_num(u8); -int ibmphp_get_total_hp_slots(void); -void ibmphp_free_ibm_slot(struct slot *); void ibmphp_free_bus_info_queue(void); void ibmphp_free_ebda_pci_rsrc_queue(void); struct bus_info *ibmphp_find_same_bus_num(u32); diff --git a/include/linux/pci.h b/include/linux/pci.h index eeb2e6f6130f..494470a38abf 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -1403,7 +1403,6 @@ void pci_assign_unassigned_bridge_resources(struct pci_dev *bridge); void pci_assign_unassigned_bus_resources(struct pci_bus *bus); void pci_assign_unassigned_root_bus_resources(struct pci_bus *bus); int pci_reassign_bridge_resources(struct pci_dev *bridge, unsigned long type); -void pdev_enable_device(struct pci_dev *); int pci_enable_resources(struct pci_dev *, int mask); void pci_assign_irq(struct pci_dev *dev); struct resource *pci_find_resource(struct pci_dev *dev, struct resource *res);