Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10416516ybi; Wed, 24 Jul 2019 22:50:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqyhKP/ssHf4Yi8YuOJeqly3isfwKuaiuT28XVKP1bOK3BVye2z7CJCYDlh2Em9ez5T+tzp7 X-Received: by 2002:a17:90a:350c:: with SMTP id q12mr91535425pjb.46.1564033822957; Wed, 24 Jul 2019 22:50:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564033822; cv=none; d=google.com; s=arc-20160816; b=P6ZljqPWudQ15xZiWfPmu40fhuwe3O0I3UhfoIDyEB8gycZ/FgiyVQt7ElJ8e0IAQA tlU/p0wD5vU4O0g3j89BdHIRkf2T4qMBWqq/WBPT7b3JtOO6A0mi1+HADdc9EnjW+uKn Gi+EySXV7RNXuIAHvApnQ33CXz6h4EZgFIe0+L5DvNvLE8OLWIqUCnOVzvX6dTsa49Mg jeVycv5NmdVIUXz6LqIQikNAOanr/BAtyMipd0oPWacuql1FGl2Hg+qgZBFJrz4lQqoP nrWGhDjX1jxasD+JT90ynTb3FQXLYirKUb7rltgdcza+01nnliLvGfOZkkpHhEdZKaRV uRiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=N/20K4zPt1+GF4yWXbg6ZLq7eeYH//zGfwHqy2zNVYY=; b=QfTH98tgLeQ0wnTmJmydYoua4F3a/ZtCeOP1I1tpxw8aL7jdVM+l7LW0NrZs9MSleO LjwfRiFFt0FBSsML/n5c8fWqooLyC9Seveo+6WgxidXdK9LYwgWxcfF5VZDbQ2y+MD9D ZlDUkqkc6PZMDjaJQovwlgwOo0NylrbCLU/CodeHk+FBFK8Jkve5ymZuPU8Kayat9UMh Xq1XFuMexigdOitzbELmlBIknjcrg1HVdFbZPkrWlq3h+Xi3ud8Qa8J+V/UWYB1pQa77 miWa/QfDY5P5KzkjTpVi58obtCFcb7j9sqobRj+iZTStx904BgEnodcVs+/ogs5rrvoq Morw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="aOSQOn4/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 72si15332270plc.415.2019.07.24.22.50.08; Wed, 24 Jul 2019 22:50:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="aOSQOn4/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388432AbfGXXj3 (ORCPT + 99 others); Wed, 24 Jul 2019 19:39:29 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:40409 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729765AbfGXXjY (ORCPT ); Wed, 24 Jul 2019 19:39:24 -0400 Received: by mail-io1-f68.google.com with SMTP id h6so6750625iom.7; Wed, 24 Jul 2019 16:39:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=N/20K4zPt1+GF4yWXbg6ZLq7eeYH//zGfwHqy2zNVYY=; b=aOSQOn4/VbZarbVQ9TBvC/kLlR9+ig17cPc19RZAgY3ju3h9sU2E9bCLMF9aVWwhWX UCzDzKlfI/OLyBk29DvOA8QBmlZaBPsDSywTtd0N7XdGNezYXHh0qxRt8X5thTF+hAFs 1k0ytUq94dd7vMi8LOFdpKiPPDUKw8U0WhMd3yERILd44+lb5vAwhd71JUbbn+8zeRoL vnkxsv5lLgZTQMMdliCNg/VFTX/WnmnadTsA7SGMNu/l1YoxJtOticz1d6+QM0xJz7hD 4omTIi6ZluqqS0r+iN7mH2uV8ZezaUvyz/sri2cg4mqn8mfMxMMKoB3KF6lqXjP/PgU/ 68uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=N/20K4zPt1+GF4yWXbg6ZLq7eeYH//zGfwHqy2zNVYY=; b=ODTgvtVFfbD9y6zTyeA0fYbc7wsSFLBn69DCIL4NQi0WyiB03TMpmlmH2bWhaBfV0k 0/6y9Rlqm162oDYXCColSJe9RGsJt4+aGxuSTM8PKt7IHsbNPxaqGu0/zXYlADip2y8F XwPyBKCkoB3VuwWkaGzabt/daC21caeQrflJ9lVOrPJAJ+QbFfq/Oj3gtZg5rFLr7BNm JGouOgzyhtOgRuAqWqJh1iq8dqjSZ6aGNTQTWKncNYa+AJlcLndXqW/tpiEf/GcQ6CP7 PnrJ+qAjTEF+WUqQd8wcyL6Ds8aoKdnKQJN14MbpgqW+ab+X7Ld1GTWkuA6ZRS4ZkMI2 cfvQ== X-Gm-Message-State: APjAAAUI+Lj0UT/Ze1kgz2/wC7oHKnQpElhtCOYBDRlPwMaf4pnQE2bu ag02utZ2IoSigHvZfesdCzA= X-Received: by 2002:a6b:ed01:: with SMTP id n1mr78293304iog.255.1564011563412; Wed, 24 Jul 2019 16:39:23 -0700 (PDT) Received: from localhost.localdomain (c-73-243-191-173.hsd1.co.comcast.net. [73.243.191.173]) by smtp.gmail.com with ESMTPSA id b14sm51612959iod.33.2019.07.24.16.39.21 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 24 Jul 2019 16:39:22 -0700 (PDT) From: Kelsey Skunberg To: bhelgaas@google.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Cc: skunberg.kelsey@gmail.com, linux-kernel-mentees@lists.linuxfoundation.org, skhan@linuxfoundation.org Subject: [PATCH v2 03/11] PCI: Move *_host_bridge_device() declarations to drivers/pci.pci.h Date: Wed, 24 Jul 2019 17:38:40 -0600 Message-Id: <20190724233848.73327-4-skunberg.kelsey@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190724233848.73327-1-skunberg.kelsey@gmail.com> References: <20190711222341.111556-1-skunberg.kelsey@gmail.com> <20190724233848.73327-1-skunberg.kelsey@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org pci_get_host_bridge_device() and pci_put_host_bridge_device() are only called within drivers/pci/pci.h. Since declarations do not need to be visible to the rest of the kernel, move to drives/pci/pci.h. Signed-off-by: Kelsey Skunberg --- drivers/pci/pci.h | 3 +++ include/linux/pci.h | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index ad1fe54ab8ee..f41dde136648 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h @@ -105,6 +105,9 @@ void pci_free_cap_save_buffers(struct pci_dev *dev); bool pci_bridge_d3_possible(struct pci_dev *dev); void pci_bridge_d3_update(struct pci_dev *dev); +struct device *pci_get_host_bridge_device(struct pci_dev *dev); +void pci_put_host_bridge_device(struct device *dev); + static inline void pci_wakeup_event(struct pci_dev *dev) { /* Wait 100 ms before the system can be put into a sleep state. */ diff --git a/include/linux/pci.h b/include/linux/pci.h index e1f784de459f..cd49427e198e 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -644,9 +644,6 @@ static inline struct pci_dev *pci_upstream_bridge(struct pci_dev *dev) return dev->bus->self; } -struct device *pci_get_host_bridge_device(struct pci_dev *dev); -void pci_put_host_bridge_device(struct device *dev); - #ifdef CONFIG_PCI_MSI static inline bool pci_dev_msi_enabled(struct pci_dev *pci_dev) { -- 2.20.1