Received: by 10.192.165.148 with SMTP id m20csp4979278imm; Tue, 24 Apr 2018 11:32:53 -0700 (PDT) X-Google-Smtp-Source: AIpwx48v5nFmBrT6FRuZtUKDV/WSlj6T1SBYmNqtPyOdZBj9EmgS0bw5L6gSpLFy6XYnK+TJtFpn X-Received: by 2002:a17:902:2bc5:: with SMTP id l63-v6mr7860585plb.299.1524594773836; Tue, 24 Apr 2018 11:32:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524594773; cv=none; d=google.com; s=arc-20160816; b=R/t4pX6N8iD4uXrP2k2bNIZpIpYSdMdDFQIw1TqrEjI7/nvpZ1GdQ0isNZDniC7cZD t1Y789BEW0HUQo7Nx7vylktbyrqXn7RmIQEGkbC9ljeTftC5SOjadwmeusH8DLSgvcWl S8wGq5DTkH7u0w1/zX7RcdafxOlu04VyxmKD48hgHlNzEaTFy7EGpll/4qQLc/jFz1NE HMHZwEk/yrSsSqyMNBV8AP1T9yf0BRBkCyeZUvwJ/pjPYFiqtAOHH4gQSW7lU3zWxg8m hOXFE1l9KTmfrLuMyipmOKX67jfvOj9oynpn0Afhgeb+hVeqRuXRi6E5KhxNEQZx5PLu 062g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:to:from :arc-authentication-results; bh=B6PWl2xG09GL5qKpgH4sNQ/S7QE2Nwmx+ZZYu80Xt7g=; b=HruZulx5BpmDpCmWET7CL9mfaq26BnV7HRpZGqWds2KJzhinw2GuSgt4CCnmlsCsCT dS2JEu6nZhnlR8JevgvIJ78HlkCwLhehAG0cWfi1stzSoJuAVqMva2ab9/VC/zUKufpE /X3oZ8eacpMNVDZfhyNT9LEuulP4r2yvfj6oaAczTjOxqn7ECQtFKsAwcHvpqHZcqKrn 6vzIO/cnnr5+IDS/cUx5FJSeR2XkuIFxw0sXCNX8ULjAXU8nE1Nnx1jt9w5M8p+4IsaL zWi6F4FIWrjLirc0apNidzvQCgIdz0kAWzhzSo6p6emM7iXiuD00fVryrnYc73D4CsA0 Lj3A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w15-v6si14756265plq.183.2018.04.24.11.32.38; Tue, 24 Apr 2018 11:32:53 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751434AbeDXPkV (ORCPT + 99 others); Tue, 24 Apr 2018 11:40:21 -0400 Received: from thoth.sbs.de ([192.35.17.2]:34216 "EHLO thoth.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750935AbeDXPkS (ORCPT ); Tue, 24 Apr 2018 11:40:18 -0400 Received: from mail2.siemens.de (mail2.siemens.de [139.25.208.11]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id w3OFDiDW013231 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 24 Apr 2018 17:13:44 +0200 Received: from md1f2u6c.ad001.siemens.net (md1q0hnc.ad001.siemens.net [139.25.68.37] (may be forged)) by mail2.siemens.de (8.15.2/8.15.2) with ESMTP id w3OFDhej031216; Tue, 24 Apr 2018 17:13:44 +0200 From: Jan Kiszka To: Bjorn Helgaas , Linux Kernel Mailing List , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/6] PCI: Make pci_get_new_domain_nr static Date: Tue, 24 Apr 2018 17:13:37 +0200 Message-Id: X-Mailer: git-send-email 2.13.6 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jan Kiszka The only user of that function is of_pci_bus_find_domain_nr. Pure cleanup. Signed-off-by: Jan Kiszka --- drivers/pci/pci.c | 6 ++---- include/linux/pci.h | 3 --- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index e597655a5643..695c2bb4e853 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -5702,15 +5702,14 @@ static void pci_no_domains(void) #endif } -#ifdef CONFIG_PCI_DOMAINS +#ifdef CONFIG_PCI_DOMAINS_GENERIC static atomic_t __domain_nr = ATOMIC_INIT(-1); -int pci_get_new_domain_nr(void) +static int pci_get_new_domain_nr(void) { return atomic_inc_return(&__domain_nr); } -#ifdef CONFIG_PCI_DOMAINS_GENERIC static int of_pci_bus_find_domain_nr(struct device *parent) { static int use_dt_domains = -1; @@ -5765,7 +5764,6 @@ int pci_bus_find_domain_nr(struct pci_bus *bus, struct device *parent) acpi_pci_bus_find_domain_nr(bus); } #endif -#endif /** * pci_ext_cfg_avail - can we access extended PCI config space? diff --git a/include/linux/pci.h b/include/linux/pci.h index 73178a2fcee0..963232a6cd2e 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -1510,12 +1510,10 @@ void pci_cfg_access_unlock(struct pci_dev *dev); */ #ifdef CONFIG_PCI_DOMAINS extern int pci_domains_supported; -int pci_get_new_domain_nr(void); #else enum { pci_domains_supported = 0 }; static inline int pci_domain_nr(struct pci_bus *bus) { return 0; } static inline int pci_proc_domain(struct pci_bus *bus) { return 0; } -static inline int pci_get_new_domain_nr(void) { return -ENOSYS; } #endif /* CONFIG_PCI_DOMAINS */ /* @@ -1670,7 +1668,6 @@ static inline struct pci_dev *pci_get_domain_bus_and_slot(int domain, static inline int pci_domain_nr(struct pci_bus *bus) { return 0; } static inline struct pci_dev *pci_dev_get(struct pci_dev *dev) { return NULL; } -static inline int pci_get_new_domain_nr(void) { return -ENOSYS; } #define dev_is_pci(d) (false) #define dev_is_pf(d) (false) -- 2.13.6