Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10417709ybi; Wed, 24 Jul 2019 22:51:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqzg2ffd6cH7VBvMDcmiAzXBD7F8sriOu8wJkIeW6ghygzm3uR+G24vtVxa3jg1WpH1gTGoO X-Received: by 2002:a63:d741:: with SMTP id w1mr10250636pgi.155.1564033901300; Wed, 24 Jul 2019 22:51:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564033901; cv=none; d=google.com; s=arc-20160816; b=FIkXs80LYjwzZlzUrq7Veo1IUyeUKnGUbUBbLajkzf7IVlQeZs7WkPe156+rDdT4Wt jO0NOfHXpa5oVM/lYTyJ+zw9VXwSqXKC2yIXKJrk8W5M1UpDmtqovTb0VoB9iHf81nNz sIW0DbxMZRIFwB8LRQJLrCbfbKJ0BWKdCzQNJBlmD8Ncltp036LSMKA+3guJHaZUAe7A Cl9d6X2NWSCsRZxSoqKorPfU/V7ssw/Yd4zOErCsCqLDq9aGV6QZraxDbUUU4ajdcgqF E75jymqW5SRY7spi1kC1Au2MAJnK8qfAvkpVPykbzJYDBv6xilnmgtWX5U9hgZwOReWX 4b+g== 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=ctOGDmMbV31DRZN6bdS13O+qL4D/YscoUsTj6P9f3ms=; b=J2d55t4hGblIxQbfBiWy+38qiRnjLSgZ1FuGUWPYC4TJYkOmQz6f972m1823hNYs2j T2F9XIGMOlCPydZq4vOCkoEdYGqzgayYg83AoD+ls7Q2xlvMnAeDIkBAiW87PotC2nY2 uLaSEbjgGmRMhRN3FBp3FX2Cg+WGw1yVs1Ddven97NEnVDOkQbImEizEy6A/9UR6RjQS 7YbgdG6m4TymnXtjOyOrJXy4AmbmVToIyKLor1f2XEHkMYNeKYrNUFJ3o+RLT49MKniK ZSa6jGXIB82UYo0FYeV5S3GtT0VnmJhZf02B6Yn557SVoBR7IAjVxV90rsQclzuCuIDt 1QHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Kyh4eV7l; 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 3si15513516plx.344.2019.07.24.22.51.27; Wed, 24 Jul 2019 22:51:41 -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=Kyh4eV7l; 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 S2388810AbfGXXjk (ORCPT + 99 others); Wed, 24 Jul 2019 19:39:40 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:35831 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388717AbfGXXjd (ORCPT ); Wed, 24 Jul 2019 19:39:33 -0400 Received: by mail-io1-f67.google.com with SMTP id m24so93359536ioo.2; Wed, 24 Jul 2019 16:39:33 -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=ctOGDmMbV31DRZN6bdS13O+qL4D/YscoUsTj6P9f3ms=; b=Kyh4eV7lSsnfSvqnjqQGyTdGRXXAmHSHQpGvBW7tZ4hqf+BldRoz7XAOek3DPUjgHf ZZcX9kESdXzTgLLtESb3/Pt8uCfvDo9K0oSQBek2g+nTFKTlJSyQMW6mODCaChplNs5+ TRFgyNebhE4989JJ8ipBoQMddqaeoIPZnB/NugWftJWTL1h3ZSlwn3mtjpoy+4dTHply 9iP6Ez4Ovd4GpLgNmdqn1YL/SqFZm/j4dkikS/ArrhoiJJ/Skv9k3wzAddnhMsVPoWLZ jskMxYitB+tY1vpp8VMUDyp789EKpDv14f+Tpzh654LAmGYFqDDHgNl7JyR6PBr+kMDY 977A== 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=ctOGDmMbV31DRZN6bdS13O+qL4D/YscoUsTj6P9f3ms=; b=kM97mX0KYlozPUasXyKaTzUL88Sb1Y1EyjAD8B9+wcszgeS9OUSLs/LxtaC4X7waG7 Ad6zloKdfw5Euys/HbG+giBXklog8magfUyoXFnV/HjmFU0PHV6c9bMni89iWT3B1sB4 FwCqAkYRMcNVJJqMP8elc7W2YSdl3PFOWhMpnq58KgIvYbO6WJHQSPCu7WhmudFYWrBg omVY7LIzUL4+nDBZRgItno6bVNSlkfxncP4maYxJIZOfswDTvQkC0/pT7zq7uAUmp1Wr Koh0ild2vhnGPO4TmMDLjwCfJ7aMFkTH6eiFErGrDX83Ujb60DzqiWS6NfwXB/18x9HX qwaw== X-Gm-Message-State: APjAAAU2j1vevAKyUyxhxdGKkbspug5FfPv1fa9vk8HsXEabFd+/tsyL K+tImJbIUmMhaV7kegn2h98= X-Received: by 2002:a6b:3883:: with SMTP id f125mr6671895ioa.109.1564011573235; Wed, 24 Jul 2019 16:39:33 -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.31 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 24 Jul 2019 16:39:32 -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 09/11] PCI: Move ECRC declarations to drivers/pci/pci.h Date: Wed, 24 Jul 2019 17:38:46 -0600 Message-Id: <20190724233848.73327-10-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 pcie_set_ecrc_checking() and pcie_ecrc_get_policy() are only called within drivers/pci/. Since declarations do not need to be visible to the rest of the kernel, move to drivers/pci/pci.h. Signed-off-by: Kelsey Skunberg --- drivers/pci/pci.h | 8 ++++++++ include/linux/pci.h | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index 7c0488b64faf..5e5ce04bda59 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h @@ -541,6 +541,14 @@ static inline void pcie_aspm_create_sysfs_dev_files(struct pci_dev *pdev) { } static inline void pcie_aspm_remove_sysfs_dev_files(struct pci_dev *pdev) { } #endif +#ifdef CONFIG_PCIE_ECRC +void pcie_set_ecrc_checking(struct pci_dev *dev); +void pcie_ecrc_get_policy(char *str); +#else +static inline void pcie_set_ecrc_checking(struct pci_dev *dev) { } +static inline void pcie_ecrc_get_policy(char *str) { } +#endif + #ifdef CONFIG_PCIE_PTM void pci_ptm_init(struct pci_dev *dev); #else diff --git a/include/linux/pci.h b/include/linux/pci.h index 5760e19cb625..5dd4abeef8b0 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -1559,14 +1559,6 @@ bool pci_aer_available(void); static inline bool pci_aer_available(void) { return false; } #endif -#ifdef CONFIG_PCIE_ECRC -void pcie_set_ecrc_checking(struct pci_dev *dev); -void pcie_ecrc_get_policy(char *str); -#else -static inline void pcie_set_ecrc_checking(struct pci_dev *dev) { } -static inline void pcie_ecrc_get_policy(char *str) { } -#endif - bool pci_ats_disabled(void); #ifdef CONFIG_PCIE_PTM -- 2.20.1