Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10417719ybi; Wed, 24 Jul 2019 22:51:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxjCgNQP2kzNBeUGqkIOG6S8sCHA2/yhLpB7/x6jKcUuDpvp3Mlkk4t7AXVSakEU+l1n4sp X-Received: by 2002:a17:90a:b903:: with SMTP id p3mr89684532pjr.79.1564033902311; Wed, 24 Jul 2019 22:51:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564033902; cv=none; d=google.com; s=arc-20160816; b=j16iBrAkGGsJG8Iqd+fMUPh53KlvN5kRRTJ5CoobWP27eBKkBpJPOxhslJl73fqOUF MV9XMw2ObrxczXgvhjAgaREMmzxVgmiAp4avM2YLX3FADY9smNEDvPxW8dZu6Mlahcsw ztLV5JCtRU1JJuPCP0OpZhjsyb7iv/zsPxRhQzFNX+FOG4cUuXvYD0IRd0rlPReLcB3J tGn0vFf7AYbwETiWF8lHifsMq78wJvGDXsMpNE1HxFovYhTAQsDY35f6AVIlfCzki/dB gzh2WJ5NQ60Gs8Q2Xwix5JPZRZNNni/Qf/O5VcWYs7Nq7eYzVKcbPNBANUZPCRvT9yTm +16w== 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=95RnMuH9NZpUhiSkY13+rMKWH0ZloCzPp9W168L3YRE=; b=Wk+mQIID2zAfNPLyySUeJ7bpjPIAdmiL5ceVDr2b/fZhWMYKLDBNWaZPtAGTxFGhCE g/d7GE16ORCCGcBC9LEqBakQcrb+hrwJeq9wEisnTkClLFidoUoSgaSQsarbkKL1QJ7n rthawBSTRdgBqlCvgjuaTsuD5IjEMVS8mBYK4FzhAlJVnmi6Jt1982EMritJxVrxo2ta ljs+CrAKoxFTPC58ajgW10MeugyOPAr10hFcf8Ggp4O1SuaC6xkWKAJwxXyzSnI18WcZ yQAuWOszLYGoSw7/I2bka5aRSt1bIqOvu1+lhj52FTGAOD/PbfJgvh+VQTgnkn0193GF SRfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=es+L+os4; 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 n6si15749570pgp.424.2019.07.24.22.51.28; Wed, 24 Jul 2019 22:51:42 -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=es+L+os4; 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 S2388726AbfGXXje (ORCPT + 99 others); Wed, 24 Jul 2019 19:39:34 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:35806 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388357AbfGXXj1 (ORCPT ); Wed, 24 Jul 2019 19:39:27 -0400 Received: by mail-io1-f68.google.com with SMTP id m24so93359096ioo.2; Wed, 24 Jul 2019 16:39:26 -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=95RnMuH9NZpUhiSkY13+rMKWH0ZloCzPp9W168L3YRE=; b=es+L+os4CRFmEFLfuoxD6vOAhMY+SoXD2dkVv3t4i4waqyfEEMl+Xc67my6gFWi09K Y2DtfsH4CWWCdySWbvbpDJ9y+njJ6vXKaB1/c9TdXjqCv4yb95dJp98UIqLiVoAmek9H ORnRQBrcPOjMxyxsZOvyXGmR7Fa8JMwv/PScV2XllBFIYbHW8RLVjPEmYagXb1gs+YB2 jp+y1InuQjpuyp22PeA8mTEhWEl+WctgKMX+SUzWU0NbgvIKYTA5i5m4V72ewqLU5Hst FhVt7BJzcTBA0UQcZp92b6dgDYdmOt45v4OZsDkqm17pgfR4cs2cftIsXpweICi44J8i 0S4g== 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=95RnMuH9NZpUhiSkY13+rMKWH0ZloCzPp9W168L3YRE=; b=S8wSBz+s/kGabGLATPyudKdJwV/cgQKpJ6VciOYUiEt5vhnFihbos5MzOVLDJxaPlA elMDR6SbSyejnw7s3ihONSkl8ioFm8P2vql53cuZITdJGFap8zrEU8BWuFYJt4OIWE96 pjwbFzjhjBt6FRE23vnWleg7lSpSRMMzVB5bBMJ1a0t2O9qOEJwoQEH/E/LFSYxxZ3U4 ky1b21wrFAQ789qUYfp+tkUX96b9W26BHtdTdnCV3ZVuYuueEbBjNO4bX1wrcS2vv4DL wyJCeCQ2ZPlffNyscZsEn1uOPflXB4X58Vs6BnlJK0quqCDVWVl4aznHz58DFNF2oLLn /vpQ== X-Gm-Message-State: APjAAAW7uCFhLx865o0Vx8h/Jpsv86sp/qy+gTvaPXxvoaS0syhq0YnK TF0z73zKabQI2Z244p4aNlQ= X-Received: by 2002:a6b:7909:: with SMTP id i9mr47728241iop.8.1564011566663; Wed, 24 Jul 2019 16:39:26 -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.25 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 24 Jul 2019 16:39:26 -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 05/11] PCI: Move pci_hotplug_*_size declarations to drivers/pci/pci.h Date: Wed, 24 Jul 2019 17:38:42 -0600 Message-Id: <20190724233848.73327-6-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_hotplug_*_size declarations are only called within drivers/pci/pci/. Since declarations do not need to be seen by the rest of the kernel, move to drivers/pci/pci.h. Signed-off-by: Kelsey Skunberg --- drivers/pci/pci.h | 3 +++ include/linux/pci.h | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index 0eb0fb7ad353..9391330805e9 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h @@ -211,6 +211,9 @@ extern const struct attribute_group *pcibus_groups[]; extern const struct device_type pci_dev_type; extern const struct attribute_group *pci_bus_groups[]; +extern unsigned long pci_hotplug_io_size; +extern unsigned long pci_hotplug_mem_size; +extern unsigned long pci_hotplug_bus_size; /** * pci_match_one_device - Tell if a PCI device structure has a matching diff --git a/include/linux/pci.h b/include/linux/pci.h index d1944e3e7eb2..9c9554906659 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -2015,10 +2015,6 @@ extern unsigned long pci_cardbus_mem_size; extern u8 pci_dfl_cache_line_size; extern u8 pci_cache_line_size; -extern unsigned long pci_hotplug_io_size; -extern unsigned long pci_hotplug_mem_size; -extern unsigned long pci_hotplug_bus_size; - /* Architecture-specific versions may override these (weak) */ void pcibios_disable_device(struct pci_dev *dev); void pcibios_set_master(struct pci_dev *dev); -- 2.20.1