All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vladimir Oltean <vladimir.oltean@nxp.com>
To: u-boot@lists.denx.de
Cc: Tom Rini <trini@konsulko.com>, Bin Meng <bmeng.cn@gmail.com>,
	Priyanka Jain <priyanka.jain@nxp.com>,
	Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Subject: [PATCH 09/11] pci: layerscape: ls_pcie_conf_address can be static
Date: Fri, 17 Sep 2021 15:11:28 +0300	[thread overview]
Message-ID: <20210917121130.526216-10-vladimir.oltean@nxp.com> (raw)
In-Reply-To: <20210917121130.526216-1-vladimir.oltean@nxp.com>

To avoid W=1 build warnings, declare this function as static, since it
is not used outside of this translation module.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
---
 drivers/pci/pcie_layerscape_rc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/pci/pcie_layerscape_rc.c b/drivers/pci/pcie_layerscape_rc.c
index bd2c19f7f0c9..f50d6ef65396 100644
--- a/drivers/pci/pcie_layerscape_rc.c
+++ b/drivers/pci/pcie_layerscape_rc.c
@@ -143,8 +143,8 @@ static int ls_pcie_addr_valid(struct ls_pcie_rc *pcie_rc, pci_dev_t bdf)
 	return 0;
 }
 
-int ls_pcie_conf_address(const struct udevice *bus, pci_dev_t bdf,
-			 uint offset, void **paddress)
+static int ls_pcie_conf_address(const struct udevice *bus, pci_dev_t bdf,
+				uint offset, void **paddress)
 {
 	struct ls_pcie_rc *pcie_rc = dev_get_priv(bus);
 	struct ls_pcie *pcie = pcie_rc->pcie;
-- 
2.25.1


  parent reply	other threads:[~2021-09-17 12:13 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-17 12:11 [PATCH 00/11] Drive-by PCI W=1 cleanups Vladimir Oltean
2021-09-17 12:11 ` [PATCH 01/11] pci: provide prototype for pci_skip_dev outside of #if defined(CONFIG_DM_PCI_COMPAT) Vladimir Oltean
2021-09-18  6:54   ` Bin Meng
2021-10-03 23:33   ` Tom Rini
2021-09-17 12:11 ` [PATCH 02/11] pci: include pci_internal.h inside pci_auto.c Vladimir Oltean
2021-09-18  6:55   ` Bin Meng
2021-10-03 23:33   ` Tom Rini
2021-09-17 12:11 ` [PATCH 03/11] pci: pci_bar_show can be static Vladimir Oltean
2021-09-18  6:55   ` Bin Meng
2021-10-03 23:33   ` Tom Rini
2021-09-17 12:11 ` [PATCH 04/11] pci: pci_header_show " Vladimir Oltean
2021-09-18  6:55   ` Bin Meng
2021-10-03 23:33   ` Tom Rini
2021-09-17 12:11 ` [PATCH 05/11] pci: pciinfo_header " Vladimir Oltean
2021-09-18  6:55   ` Bin Meng
2021-10-03 23:33   ` Tom Rini
2021-09-17 12:11 ` [PATCH 06/11] pci: pci_write_config " Vladimir Oltean
2021-09-18  6:55   ` Bin Meng
2021-10-03 23:33   ` Tom Rini
2021-09-17 12:11 ` [PATCH 07/11] pci: pci_read_config " Vladimir Oltean
2021-09-18  6:55   ` Bin Meng
2021-10-03 23:34   ` Tom Rini
2021-09-17 12:11 ` [PATCH 08/11] pci: _dm_pci_phys_to_bus " Vladimir Oltean
2021-09-18  6:55   ` Bin Meng
2021-10-03 23:34   ` Tom Rini
2021-09-17 12:11 ` Vladimir Oltean [this message]
2021-09-18  6:55   ` [PATCH 09/11] pci: layerscape: ls_pcie_conf_address " Bin Meng
2021-10-03 23:34   ` Tom Rini
2021-09-17 12:11 ` [PATCH 10/11] pci: pcie_layerscape_fixup_common: include fdt_support.h for ft_pci_setup Vladimir Oltean
2021-09-18  6:55   ` Bin Meng
2021-10-03 23:34   ` Tom Rini
2021-09-17 12:11 ` [PATCH 11/11] pci: pcie_layerscape_fixup_common: lx2_board_fix_fdt can be static Vladimir Oltean
2021-09-18  6:55   ` Bin Meng
2021-10-03 23:34   ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210917121130.526216-10-vladimir.oltean@nxp.com \
    --to=vladimir.oltean@nxp.com \
    --cc=Zhiqiang.Hou@nxp.com \
    --cc=bmeng.cn@gmail.com \
    --cc=priyanka.jain@nxp.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.