Received: by 10.223.185.111 with SMTP id b44csp651692wrg; Fri, 9 Mar 2018 11:02:31 -0800 (PST) X-Google-Smtp-Source: AG47ELuvzWXwUqKTG864pxK8r7Rj/p4yKEDb+5IcNVy38jAagIk91opMTV0ayjY1EIf7/GyVeuzP X-Received: by 10.101.77.201 with SMTP id q9mr24887193pgt.395.1520622151283; Fri, 09 Mar 2018 11:02:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520622151; cv=none; d=google.com; s=arc-20160816; b=aasmmvuMNmNDPIKhEYIo4XLp1Rg6fJrJL/zqEJGpeZ1EkduyCQiqWB0fy6TwoqV6rT T+ewueuUeEh5mCfo3QQdREpaMtMsiqFjgSqp0d9cuocjEkXqDQbWL0LVlzJ/cxMzYfAH V7BEhbj4hU3nmlAcbhVExOpdYFcz9e20bl/Fi9JcO9aIH3Aa3K2gJ7cXQusUQc4zQJr/ CtWwVUyx0P2ztQncllrgf8KAiyXKgHIJX4zutlDT7V40xsJcX01qxhZqZ4YwY0AFvHaI p53hrLQFF9ZRnIM+q1rVIqP8cQLC4ghOXhKXUf5+u13UFjou/hvWnaxnhfJXWfWVelPf BhMQ== 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 :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject:dmarc-filter:arc-authentication-results; bh=thch4FANCq+1Mk1gdb05DMm5QxrpCu4de2BDuYMnNJ0=; b=NEM4Pxbs2NWSKGQ6TjfexaKE7ELtG+Q6grdmk77txvJQbWHcAZtepIkybs7eE7NHKg O6eGvFxtqQCsR/FJrDrQg4zI+eFZei8ALFQjFBoo03c6mO3QJrlu36cy+ym0V6ytaMNI tXyg0vvIxYNfy6UfHuSnbxTtjB4MXLtcXjsxSagNHe0JUS//iB60T6xZn4O3zc+pFPoX NIM93ZVDD7vFRymUDHq64i8PycheXZE5Yp4f1NggYzOhR1wfcA8TdY6q4rJuBUge8bzy ndCk+5yZY9IjHaPFpyq85EYj1XkhK2BCcAtWjdLRtN9+G750WnaRqHHYx6bIJmI13HA6 DERA== 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 x1-v6si1281274plb.248.2018.03.09.11.02.16; Fri, 09 Mar 2018 11:02:31 -0800 (PST) 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 S932859AbeCITA6 (ORCPT + 99 others); Fri, 9 Mar 2018 14:00:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:41100 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932074AbeCITAz (ORCPT ); Fri, 9 Mar 2018 14:00:55 -0500 Received: from localhost (unknown [104.132.51.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AC8AD2178E; Fri, 9 Mar 2018 19:00:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AC8AD2178E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=helgaas@kernel.org Subject: [PATCH v2 12/13] PCI/portdrv: Encapsulate pcie_ports_auto inside the port driver From: Bjorn Helgaas To: linux-pci@vger.kernel.org Cc: linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , linux-pm@vger.kernel.org, Keith Busch , Sinan Kaya , Lukas Wunner , Frederick Lawler Date: Fri, 09 Mar 2018 13:00:54 -0600 Message-ID: <152062205448.77693.17566179285103522183.stgit@bhelgaas-glaptop.roam.corp.google.com> In-Reply-To: <152062141493.77693.9630397416694091342.stgit@bhelgaas-glaptop.roam.corp.google.com> References: <152062141493.77693.9630397416694091342.stgit@bhelgaas-glaptop.roam.corp.google.com> User-Agent: StGit/0.18 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bjorn Helgaas "pcie_ports_auto" is only used inside the PCIe port driver itself, so move it from include/linux/pci.h to portdrv.h so it's not visible to the whole kernel. Signed-off-by: Bjorn Helgaas --- drivers/pci/pcie/portdrv.h | 2 ++ include/linux/pci.h | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/pcie/portdrv.h b/drivers/pci/pcie/portdrv.h index 86368f9341d7..62e28b5afa51 100644 --- a/drivers/pci/pcie/portdrv.h +++ b/drivers/pci/pcie/portdrv.h @@ -12,6 +12,8 @@ #include +extern bool pcie_ports_auto; + /* Service Type */ #define PCIE_PORT_SERVICE_PME_SHIFT 0 /* Power Management Event */ #define PCIE_PORT_SERVICE_PME (1 << PCIE_PORT_SERVICE_PME_SHIFT) diff --git a/include/linux/pci.h b/include/linux/pci.h index 40aec7a6fdd9..2c0e5d929fd2 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -1449,10 +1449,8 @@ static inline int pci_irqd_intx_xlate(struct irq_domain *d, #ifdef CONFIG_PCIEPORTBUS extern bool pcie_ports_disabled; -extern bool pcie_ports_auto; #else #define pcie_ports_disabled true -#define pcie_ports_auto false #endif #ifdef CONFIG_PCIEASPM