diff mbox series

[v3,12/19] bus/fslmc: make portal func static

Message ID 20190111122305.7133-13-shreyansh.jain@nxp.com
State New
Headers show
Series None | expand

Commit Message

Shreyansh Jain Jan. 11, 2019, 12:24 p.m. UTC
From: Hemant Agrawal <hemant.agrawal@nxp.com>


Change QBMAN portal function to static as it is not exposed outside
this file context.

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>

---
 drivers/bus/fslmc/portal/dpaa2_hw_dpio.c | 2 +-
 drivers/bus/fslmc/portal/dpaa2_hw_dpio.h | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

-- 
2.17.1
diff mbox series

Patch

diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c
index 37723a094..cd28441f3 100644
--- a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c
+++ b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c
@@ -229,7 +229,7 @@  dpaa2_configure_stashing(struct dpaa2_dpio_dev *dpio_dev, int lcoreid)
 	return 0;
 }
 
-struct dpaa2_dpio_dev *dpaa2_get_qbman_swp(int lcoreid)
+static struct dpaa2_dpio_dev *dpaa2_get_qbman_swp(int lcoreid)
 {
 	struct dpaa2_dpio_dev *dpio_dev = NULL;
 	int ret;
diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.h b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.h
index 462501a2e..4354c76de 100644
--- a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.h
+++ b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.h
@@ -37,8 +37,6 @@  extern uint8_t dpaa2_eqcr_size;
 
 extern struct dpaa2_io_portal_t dpaa2_io_portal[RTE_MAX_LCORE];
 
-struct dpaa2_dpio_dev *dpaa2_get_qbman_swp(int cpu_id);
-
 /* Affine a DPIO portal to current processing thread */
 int dpaa2_affine_qbman_swp(void);