From patchwork Wed Oct 19 20:41:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 5837 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp527711wrs; Wed, 19 Oct 2022 13:48:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5dzQtfs6frh5kS39OX+PKj8uXiJ3roIo/yRlxNgOKhk45YAq5aUADX1DdMokoTGNVyE4iH X-Received: by 2002:a17:907:6d8f:b0:78d:9b5e:1a0f with SMTP id sb15-20020a1709076d8f00b0078d9b5e1a0fmr8718276ejc.23.1666212523974; Wed, 19 Oct 2022 13:48:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666212523; cv=none; d=google.com; s=arc-20160816; b=Ctoq1cP8unFdCSgyjdd8xqekcwtvxMB/zTWuvEM+/lCFlAd4b9nOIH5Y43erErSZt4 bJiBbHIgbiX3TWtagyQXzTZvGAZpdHLd9ZiONKqP4LxMMFc5Gv7vPwgFcEvmKkSCYzB/ eBSPrqmGDDUPqHCQIlNvwwqm14RY+pXrWyfZe50vkzMpUM+tjZ4wDZzfWW4SGBWS1s1R DPTC2mkPKeLYkAx+da7r23hbLQ5wj4R91Zf2l4K0MuwNWUeU4zDYfjr8ik9Jpd5gbHqU 7miGnUfF6H9QISp/1LuotX3NXT0jtywjk2Po7MM9gSgFgFShWNusPPwLguFaRXtcIMhW N/VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HsZEPpBrSx4cumo7sDm4AgWzjZ1MCSRFPiW8TDLYCeI=; b=ZKCKFkOlC/KRivuB+SmLkae0LLqE7dkcRIhJInCfSYWUcJQ15lSiQyYP1DJeoukd6U ZSUQUMQMKtDr2SyuPYPLz7k4ng9QqII2qofeQCoNMlqKV8YE94sfuDhxtmHeXs+mC/g5 r+uq8rJgJ+pnQBAzp8Qra+cacSf3EaoGsxEct99y1YpSGbBiC6lFaPzXGBWcyBub0JXz prIL2DhgW2PpVVJBpbcTzzfkKdO1J2DJyJdFYO1N0peTvvrUTonRjl/fDgh4D5cAUZXJ qs3YcOtPIKTfj1CVOv10txegrb5LmqOe0nl9ZCk0gSnnliFbgM4OBQpJo+UiD2trzdod lqAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qsGd5p7j; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w13-20020a50fa8d000000b00459b0e0e04bsi13269820edr.199.2022.10.19.13.48.18; Wed, 19 Oct 2022 13:48:43 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qsGd5p7j; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231478AbiJSUlw (ORCPT + 99 others); Wed, 19 Oct 2022 16:41:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231449AbiJSUlm (ORCPT ); Wed, 19 Oct 2022 16:41:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C566162522; Wed, 19 Oct 2022 13:41:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9E7B2619D2; Wed, 19 Oct 2022 20:41:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8912C433D6; Wed, 19 Oct 2022 20:41:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666212100; bh=Z44DH9O6uOt3QHqDqInc9GBIPGQQ++f33al7IoM5jWc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qsGd5p7jqkQgXVTHec8LJiwk6MYBhy6eX4wSUsk2BryLFHFfsyx693Hpn5QEadjOd G/7n8X+9cR0rQikJ3UkLe9imHmBiVTiRnME4A6MhEkJ2Zm9uBbfqfm4+h1sfMShAK6 LDcG9aQb5iT4/tRbdemTM+bzBoF2V9VG2zwJxbqGFHPpuTC37XIBt4dcQ32+rUgzAn 2tzyMVFR+xZZEKX9sseHSVjDe3PnEzAihKIPAVyfxTx4gssLAl3iRoVJAjEVrGPFEr WWG3bL70esN3bNLjJhfs72vAuDN/oMyZLJzAZ6NQCLrRzYGnNnR1H/K1fKobxFlF1I 1O89VhtGSRfRQ== From: Bjorn Helgaas To: linux-pci@vger.kernel.org Cc: Stefan Roese , Lukas Wunner , Jan Kiszka , Stuart Hayes , Keith Busch , linux-kernel@vger.kernel.org, Bjorn Helgaas Subject: [PATCH 3/3] PCI/portdrv: Unexport pcie_port_service_register(), pcie_port_service_unregister() Date: Wed, 19 Oct 2022 15:41:27 -0500 Message-Id: <20221019204127.44463-4-helgaas@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221019204127.44463-1-helgaas@kernel.org> References: <20221019204127.44463-1-helgaas@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747150463207576887?= X-GMAIL-MSGID: =?utf-8?q?1747150463207576887?= From: Bjorn Helgaas pcie_port_service_register() and pcie_port_service_unregister() are used only by the pciehp, aer, dpc, and pme PCIe port service drivers, none of which can be modules. Unexport pcie_port_service_register() and pcie_port_service_unregister(). No functional change intended. Signed-off-by: Bjorn Helgaas Reviewed-by: Christoph Hellwig --- drivers/pci/pcie/portdrv.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/pci/pcie/portdrv.c b/drivers/pci/pcie/portdrv.c index ae8da5b2e922..a6c4225505d5 100644 --- a/drivers/pci/pcie/portdrv.c +++ b/drivers/pci/pcie/portdrv.c @@ -584,7 +584,6 @@ int pcie_port_service_register(struct pcie_port_service_driver *new) return driver_register(&new->driver); } -EXPORT_SYMBOL(pcie_port_service_register); /** * pcie_port_service_unregister - unregister PCI Express port service driver @@ -594,7 +593,6 @@ void pcie_port_service_unregister(struct pcie_port_service_driver *drv) { driver_unregister(&drv->driver); } -EXPORT_SYMBOL(pcie_port_service_unregister); /* If this switch is set, PCIe port native services should not be enabled. */ bool pcie_ports_disabled;