Message ID | 20221019204127.44463-1-helgaas@kernel.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp527387wrs; Wed, 19 Oct 2022 13:47:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4RBklCbsA8iZr6l2Dvs000h44qk0CJq7/lRY14LVUG1bHsMdd0M+7PPjQ11//y41KFdk9m X-Received: by 2002:a17:902:db05:b0:185:537a:7440 with SMTP id m5-20020a170902db0500b00185537a7440mr10251562plx.13.1666212464830; Wed, 19 Oct 2022 13:47:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666212464; cv=none; d=google.com; s=arc-20160816; b=rS+zZcLApyHXHM3zYxXMjhiJFfLv70oTSxX8FQmQALo445maFBHJ1gTjWnWppw8ux0 lxfDBOFsJrG8MgYwg19iAIRbW290yXzK7l2T4D/OVKEGvc+BwKTmqXI54ApqL0u9u1Ol 9XqjbDfoPqcNXPijONOokHqc4dVdkW7VrwA0coEQv9MH8SXBA6jUhrcPV3O5m7T6z466 djfYdKaHrFHgBkxwnox+Yho5MQLQISg8pMzREYm4+c2S/gLHQnqkrCkEEHPXg53FjlKZ LZHd4miIx8kEilAp4lsJ0XJYSq52b/GtkS8M4BunSw921EPh09fdcD5p2sAL7k8M6yyn v4MA== 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 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.32; Wed, 19 Oct 2022 13:47:44 -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 <rfc822;samuel.l.nystrom@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <helgaas@kernel.org> To: linux-pci@vger.kernel.org Cc: Stefan Roese <sr@denx.de>, Lukas Wunner <lukas@wunner.de>, Jan Kiszka <jan.kiszka@siemens.com>, Stuart Hayes <stuart.w.hayes@gmail.com>, Keith Busch <kbusch@kernel.org>, linux-kernel@vger.kernel.org, Bjorn Helgaas <bhelgaas@google.com> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747150401694596798?= X-GMAIL-MSGID: =?utf-8?q?1747150401694596798?= |
Series | PCI/portdrv: Squash into portdrv.c | |
Message
Bjorn Helgaas
Oct. 19, 2022, 8:41 p.m. UTC
From: Bjorn Helgaas <bhelgaas@google.com>
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
Comments
On Wed, Oct 19, 2022 at 03:41:24PM -0500, Bjorn Helgaas wrote: > From: Bjorn Helgaas <bhelgaas@google.com> > > 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. Looks like a nice cleanup. Reviewed-by: Keith Busch <kbusch@kernel.org>
On Wed, Oct 19, 2022 at 03:41:24PM -0500, Bjorn Helgaas wrote: > From: Bjorn Helgaas <bhelgaas@google.com> > > 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 I applied these to pci/portdrv for v6.2 with Reviewed-Bys from Christoph and Keith. Thanks for taking a look! Bjorn