Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A596BC4338F for ; Mon, 26 Jul 2021 13:36:32 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2E78F60C51 for ; Mon, 26 Jul 2021 13:36:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2E78F60C51 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B78448334A; Mon, 26 Jul 2021 15:36:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="SX2ZPWnr"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 56A8283329; Mon, 26 Jul 2021 15:35:54 +0200 (CEST) Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id AC63E83332 for ; Mon, 26 Jul 2021 15:35:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-oi1-x22b.google.com with SMTP id u10so10878397oiw.4 for ; Mon, 26 Jul 2021 06:35:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NkyLrcAqsSRwI5PWbElDwEkOr3SKDSaeCzZnI4dQ0IM=; b=SX2ZPWnrDxSZooXYVWDZrzmTQ4kbdzKs4q3ZIxkNvmMHig4K9JfqnvTKRpSYkA/C6h /zoBC61zubSl3DJyjRFeKecMuC+ZfTdqykU+z6ke9ngQ2P4Od4WLjixw932LRE9KWaIh FpnivbDntNsvk4j94pEneyZboX6e2RSP2wqgU= 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=NkyLrcAqsSRwI5PWbElDwEkOr3SKDSaeCzZnI4dQ0IM=; b=HKNvT17eeid0JD6DTfVg0k79/vG/ecev8e8ueLa3hjGKF13y4cEWKOpHzGJaMAgZwD EoXEwLcvbh0Gk7I0HtIDS8MSAe1ckzIHwlehBMa4VskvnTxYXQWBe3femIV4QNHBsJOd pyW/N+K7VGfS2octJbpQIBaGU00C4b5iFEZI73Kv1t8ZOLpCITiDQyqrgkVRjvpXvu5e ATxYIAGNhJUpcNNEaTAEvC6RnjYSYXWDKARSNUU0PETPsgWHgDognNClMo4w1w7DUR/O UcUbkKoJdECZP4Nsv2fwyNCa9rUrlP1upckCSMJjrT9H/SRB0XrdPvbjLm/hLR7zPzsB 0Sfg== X-Gm-Message-State: AOAM530gG/qOcpdU6xu+Aw6M2CEkrg4s1F3K0CK1MU2f5fCsPjll5VEc wFMENwkZ9TY+Fzm2QAqhjYCyJkyFj68lXTC4 X-Google-Smtp-Source: ABdhPJzBFl9uJ8RBs/kh1lJmZnvSfC6xJ1O59Ee8119HOv/shAg2FBgn35RXymWYTsS4zuApvMDu/Q== X-Received: by 2002:a05:6808:1524:: with SMTP id u36mr16928303oiw.35.1627306500987; Mon, 26 Jul 2021 06:35:00 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id t141sm6591527oot.40.2021.07.26.06.35.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jul 2021 06:35:00 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass Subject: [PATCH 05/33] pci: Remove guard around compatibility functions Date: Mon, 26 Jul 2021 07:34:11 -0600 Message-Id: <20210726133440.634682-6-sjg@chromium.org> X-Mailer: git-send-email 2.32.0.432.gabb21c7263-goog In-Reply-To: <20210726133440.634682-1-sjg@chromium.org> References: <20210726133440.634682-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean This prevents use of IS_ENABLED() in other files. Functions should be visible in headers even if they are not available at link time. Fix it. Signed-off-by: Simon Glass --- include/pci.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/pci.h b/include/pci.h index e07d6c31bc1..ca086420ff2 100644 --- a/include/pci.h +++ b/include/pci.h @@ -789,7 +789,6 @@ extern void pci_mpc85xx_init (struct pci_controller *hose); extern void imx_pcie_remove(void); #endif -#if !defined(CONFIG_DM_PCI) || defined(CONFIG_DM_PCI_COMPAT) /** * pci_write_bar32() - Write the address of a BAR including control bits * @@ -797,6 +796,8 @@ extern void imx_pcie_remove(void); * with devices which require hard-coded addresses, not part of the normal * PCI enumeration process. * + * This is only available if CONFIG_DM_PCI_COMPAT is enabled + * * @hose: PCI hose to use * @dev: PCI device to update * @barnum: BAR number (0-5) @@ -808,6 +809,8 @@ void pci_write_bar32(struct pci_controller *hose, pci_dev_t dev, int barnum, /** * pci_read_bar32() - read the address of a bar * + * This is only available if CONFIG_DM_PCI_COMPAT is enabled + * * @hose: PCI hose to use * @dev: PCI device to inspect * @barnum: BAR number (0-5) @@ -818,6 +821,8 @@ u32 pci_read_bar32(struct pci_controller *hose, pci_dev_t dev, int barnum); /** * pci_hose_find_devices() - Find devices by vendor/device ID * + * This is only available if CONFIG_DM_PCI_COMPAT is enabled + * * @hose: PCI hose to search * @busnum: Bus number to search * @ids: PCI vendor/device IDs to look for, terminated by 0, 0 record @@ -828,7 +833,6 @@ u32 pci_read_bar32(struct pci_controller *hose, pci_dev_t dev, int barnum); */ pci_dev_t pci_hose_find_devices(struct pci_controller *hose, int busnum, struct pci_device_id *ids, int *indexp); -#endif /* !CONFIG_DM_PCI || CONFIG_DM_PCI_COMPAT */ /* Access sizes for PCI reads and writes */ enum pci_size_t { -- 2.32.0.432.gabb21c7263-goog