Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1668475rwi; Wed, 19 Oct 2022 13:48:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7KHH9a2EMhMTNuTiHRCSG0eJONLiD5JLy1G/AaWeQYZQOaS2ofBkyxvXkLTviRBV2f1fK2 X-Received: by 2002:a63:dc54:0:b0:44c:ce26:fa35 with SMTP id f20-20020a63dc54000000b0044cce26fa35mr8963560pgj.374.1666212492014; Wed, 19 Oct 2022 13:48:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666212492; cv=none; d=google.com; s=arc-20160816; b=heDuCLjNjmbhsP13gzICN1qOl9KWY1+ZUlvcJUfe+iPm0MDn5ThvgNOIOj0/zW/vXQ 0MqVdzXTFnKazJMwuzVeyhkJxJEFoB8I9VfBk5k/KBixmA+yGuSDFHBewnSsxsfdkpmE 7w8jX0sOxov7BG7XCo1KQvL8lTc+h+pkVMoAsCAeYhMJTbZwzMGdaMH5gqwOfLEtXfWB lSQBFOc+8LdFNpST1YFfh2u/vGBLF1ySq/si1VMSwi5Z9zPm94KegQPq1JuvAxjOcy4v GzaYQy07MLpBhrwpUWL6asb7cT4S46eEkNgIMZvKgrSXEZnV8KLnITQsVvGn5s/J9yop 9EtQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=QHCCYP6R/f3CQDLKNERDZzbCYcj9hLg2wvrTbQEUYeM=; b=QIwZ4z/LJIDq/uXqM15aJDSf48DvTObyFnpOXWHPszKCdSKNHpWsgXYK39ysXoZUmd XBaH49+yfq9El/+l9sttO65E5XKOW3aOaRA19NkxWGLkawCVe12cVo/Ip8AZ/6KYZT2A gUROCCIlWqTJB+Vd/0AyxS+GyMdSDm8KWQlilrldFuvOalczwlFtLFjBAC1J5Myx0Wif bWLZUmK5wvQ/8C6X1tT9RL1RaXTDYkbkhN5kGwXTWlhM+M/JcFtbEJ+pity43fjFux85 ihtbxwbJi2fRjEmlF9fjjKXGvPgM3OYqMjnLyaUYT4LCX6jEMTyi/9OyHEKwo3OVK46a KpsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YkXjB6+m; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id np10-20020a17090b4c4a00b001fd6e58cd98si1003264pjb.123.2022.10.19.13.47.58; Wed, 19 Oct 2022 13:48:12 -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=YkXjB6+m; 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 S230496AbiJSUlh (ORCPT + 99 others); Wed, 19 Oct 2022 16:41:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229776AbiJSUlg (ORCPT ); Wed, 19 Oct 2022 16:41:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89B2424970; Wed, 19 Oct 2022 13:41:35 -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 238A2619D2; Wed, 19 Oct 2022 20:41:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 579A7C433C1; Wed, 19 Oct 2022 20:41:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666212094; bh=Bf+ussmrPLKODLInTtQn2XGEe9MvhvHx0iPkoYcSZr4=; h=From:To:Cc:Subject:Date:From; b=YkXjB6+mH96kG8UoVtrE4Yq+vDgm3JDelDTPhL+omA7Oy60pnl69MXVE8LcmEcF4L nvfNsgwzaVmL+Na3ttb+fOmX2dt0+2Q6vD8V8CTVpVctDz1nYICq8B79L9bLlTvHz+ j6n2MMFmsoO6sYDVIZZsAfDcUvecXVUOawNgVy7bR0ln08UqxbNyPUtDeEWYi85xI/ UtnHLOmVvKKPKD5NKzu9ccdJvFVN2bD1tgEd7eh9yEqmKF4kv/+53ByygNz3RQOrfL /p/8kO7cAGVProPhBCj75UNc51DK8fuSVXNnzxv+Ykt250aT9bsn9il531ZkP2s8f3 L8ppJ2BPxc0zA== 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 0/3] PCI/portdrv: Squash into portdrv.c Date: Wed, 19 Oct 2022 15:41:24 -0500 Message-Id: <20221019204127.44463-1-helgaas@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 From: Bjorn Helgaas The PCIe portdrv is split across portdrv_core.c and portdrv_pci.c, but neither is very big and it's a hassle to figure out which to look at. Squash them into a single portdrv.c file. Make functions static and non-exported when possible, and move some private things out of portdrv.h. Please comment. Bjorn Helgaas (3): PCI/portdrv: Squash into portdrv.c PCI/portdrv: Move private things to portdrv.c PCI/portdrv: Unexport pcie_port_service_register(), pcie_port_service_unregister() drivers/pci/pcie/Makefile | 2 +- .../pci/pcie/{portdrv_core.c => portdrv.c} | 263 +++++++++++++++++- drivers/pci/pcie/portdrv.h | 19 -- drivers/pci/pcie/portdrv_pci.c | 252 ----------------- 4 files changed, 253 insertions(+), 283 deletions(-) rename drivers/pci/pcie/{portdrv_core.c => portdrv.c} (69%) delete mode 100644 drivers/pci/pcie/portdrv_pci.c -- 2.25.1