DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: dev@dpdk.org
Cc: Stephen Hemminger <stephen@networkplumber.org>,
	Nithin Dabilpuram <ndabilpuram@marvell.com>,
	Kiran Kumar K <kirankumark@marvell.com>,
	Sunil Kumar Kori <skori@marvell.com>,
	Satha Rao <skoteshwar@marvell.com>,
	Harman Kalra <hkalra@marvell.com>,
	Srikanth Yalavarthi <syalavarthi@marvell.com>
Subject: [PATCH 45/45] common/cnxk: make internal roc functions static
Date: Sun, 29 Nov 2026 12:49:30 -0800	[thread overview]
Message-ID: <20261129205006.1440292-46-stephen@networkplumber.org> (raw)
In-Reply-To: <20261129205006.1440292-1-stephen@networkplumber.org>

23 roc functions are used only in the file that defines them. Make
them static and drop their declarations from the roc headers.

Nine of them are called before their definition, so they get a
forward declaration after the includes.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 drivers/common/cnxk/cnxk_security.c  |  6 +++---
 drivers/common/cnxk/cnxk_security.h  | 11 -----------
 drivers/common/cnxk/roc_bphy_irq.c   |  2 +-
 drivers/common/cnxk/roc_bphy_irq.h   |  2 --
 drivers/common/cnxk/roc_ml.c         | 15 ++++++++++-----
 drivers/common/cnxk/roc_ml.h         |  5 -----
 drivers/common/cnxk/roc_nix.c        |  4 +++-
 drivers/common/cnxk/roc_nix.h        | 13 -------------
 drivers/common/cnxk/roc_nix_fc.c     | 11 +++++++----
 drivers/common/cnxk/roc_nix_inl.c    |  2 +-
 drivers/common/cnxk/roc_nix_inl.h    |  2 --
 drivers/common/cnxk/roc_nix_ops.c    |  2 +-
 drivers/common/cnxk/roc_nix_rss.c    |  2 +-
 drivers/common/cnxk/roc_nix_tm_ops.c |  2 +-
 drivers/common/cnxk/roc_npa.c        |  8 ++++++--
 drivers/common/cnxk/roc_npa.h        |  3 ---
 drivers/common/cnxk/roc_npc.c        |  2 +-
 drivers/common/cnxk/roc_npc.h        |  2 --
 drivers/common/cnxk/roc_ree.c        |  6 ++++--
 drivers/common/cnxk/roc_ree.h        |  4 ----
 drivers/common/cnxk/roc_sso.c        |  2 +-
 drivers/common/cnxk/roc_sso.h        |  1 -
 22 files changed, 40 insertions(+), 67 deletions(-)

diff --git a/drivers/common/cnxk/cnxk_security.c b/drivers/common/cnxk/cnxk_security.c
index 4e160f2e74..54c5afca8b 100644
--- a/drivers/common/cnxk/cnxk_security.c
+++ b/drivers/common/cnxk/cnxk_security.c
@@ -596,7 +596,7 @@ cnxk_ot_ipsec_outb_sa_fill(struct roc_ot_ipsec_outb_sa *sa,
 	return 0;
 }
 
-uint8_t
+static uint8_t
 cnxk_ipsec_ivlen_get(enum rte_crypto_cipher_algorithm c_algo,
 		     enum rte_crypto_auth_algorithm a_algo,
 		     enum rte_crypto_aead_algorithm aead_algo)
@@ -632,7 +632,7 @@ cnxk_ipsec_ivlen_get(enum rte_crypto_cipher_algorithm c_algo,
 	return ivlen;
 }
 
-uint8_t
+static uint8_t
 cnxk_ipsec_icvlen_get(enum rte_crypto_cipher_algorithm c_algo,
 		      enum rte_crypto_auth_algorithm a_algo,
 		      enum rte_crypto_aead_algorithm aead_algo)
@@ -678,7 +678,7 @@ cnxk_ipsec_icvlen_get(enum rte_crypto_cipher_algorithm c_algo,
 	return icv;
 }
 
-uint8_t
+static uint8_t
 cnxk_ipsec_outb_roundup_byte(enum rte_crypto_cipher_algorithm c_algo,
 			     enum rte_crypto_aead_algorithm aead_algo)
 {
diff --git a/drivers/common/cnxk/cnxk_security.h b/drivers/common/cnxk/cnxk_security.h
index d44cd19e75..f1625bd94c 100644
--- a/drivers/common/cnxk/cnxk_security.h
+++ b/drivers/common/cnxk/cnxk_security.h
@@ -26,17 +26,6 @@ int __roc_api
 cnxk_ipsec_outb_rlens_get(struct cnxk_ipsec_outb_rlens *rlens,
 			  struct rte_security_ipsec_xform *ipsec_xfrm,
 			  struct rte_crypto_sym_xform *crypto_xfrm);
-uint8_t
-cnxk_ipsec_ivlen_get(enum rte_crypto_cipher_algorithm c_algo,
-		     enum rte_crypto_auth_algorithm a_algo,
-		     enum rte_crypto_aead_algorithm aead_algo);
-uint8_t
-cnxk_ipsec_icvlen_get(enum rte_crypto_cipher_algorithm c_algo,
-		      enum rte_crypto_auth_algorithm a_algo,
-		      enum rte_crypto_aead_algorithm aead_algo);
-
-uint8_t cnxk_ipsec_outb_roundup_byte(enum rte_crypto_cipher_algorithm c_algo,
-				     enum rte_crypto_aead_algorithm aead_algo);
 
 /* [CN10K] */
 int __roc_api cnxk_ot_ipsec_inb_sa_fill(struct roc_ot_ipsec_inb_sa *sa,
diff --git a/drivers/common/cnxk/roc_bphy_irq.c b/drivers/common/cnxk/roc_bphy_irq.c
index 7b39b61537..771e576ce2 100644
--- a/drivers/common/cnxk/roc_bphy_irq.c
+++ b/drivers/common/cnxk/roc_bphy_irq.c
@@ -274,7 +274,7 @@ roc_bphy_irq_handler_set(struct roc_bphy_irq_chip *chip, int cpu, int irq_num,
 	return retval;
 }
 
-bool
+static bool
 roc_bphy_intr_available(struct roc_bphy_irq_chip *irq_chip, int irq_num)
 {
 	if (irq_num < 0 || (uint64_t)irq_num >= irq_chip->max_irq)
diff --git a/drivers/common/cnxk/roc_bphy_irq.h b/drivers/common/cnxk/roc_bphy_irq.h
index 6b18c01299..9d0247d3ca 100644
--- a/drivers/common/cnxk/roc_bphy_irq.h
+++ b/drivers/common/cnxk/roc_bphy_irq.h
@@ -33,8 +33,6 @@ struct roc_bphy_intr {
 __roc_api struct roc_bphy_irq_chip *roc_bphy_intr_init(void);
 __roc_api void roc_bphy_intr_fini(struct roc_bphy_irq_chip *irq_chip);
 __roc_api void roc_bphy_intr_handler(unsigned int irq_num);
-bool roc_bphy_intr_available(struct roc_bphy_irq_chip *irq_chip,
-				       int irq_num);
 __roc_api int roc_bphy_intr_clear(struct roc_bphy_irq_chip *chip, int irq_num);
 __roc_api uint64_t roc_bphy_intr_max_get(struct roc_bphy_irq_chip *irq_chip);
 __roc_api int roc_bphy_intr_register(struct roc_bphy_irq_chip *irq_chip,
diff --git a/drivers/common/cnxk/roc_ml.c b/drivers/common/cnxk/roc_ml.c
index 6f9869125a..9e0bedde95 100644
--- a/drivers/common/cnxk/roc_ml.c
+++ b/drivers/common/cnxk/roc_ml.c
@@ -5,6 +5,11 @@
 #include "roc_api.h"
 #include "roc_priv.h"
 
+static void roc_ml_clk_force_on(struct roc_ml *roc_ml);
+static void roc_ml_clk_force_off(struct roc_ml *roc_ml);
+static void roc_ml_dma_stall_on(struct roc_ml *roc_ml);
+static void roc_ml_dma_stall_off(struct roc_ml *roc_ml);
+
 #define TIME_SEC_IN_MS 1000
 
 static int
@@ -94,7 +99,7 @@ roc_ml_addr_mlip2ap(struct roc_ml *roc_ml, void *addr)
 	return PLT_PTR_ADD(addr, ml_mlr_base - ML_AXI_START_ADDR);
 }
 
-bool
+static bool
 roc_ml_scratch_is_valid_bit_set(struct roc_ml *roc_ml)
 {
 	union ml_scratch_fw_ctrl_s reg_fw_ctrl;
@@ -225,7 +230,7 @@ roc_ml_jcmdq_enqueue_sl(struct roc_ml *roc_ml, struct ml_job_cmd_s *job_cmd)
 	return ret;
 }
 
-void
+static void
 roc_ml_clk_force_on(struct roc_ml *roc_ml)
 {
 	uint64_t reg_val = 0;
@@ -235,7 +240,7 @@ roc_ml_clk_force_on(struct roc_ml *roc_ml)
 	roc_ml_reg_write64(roc_ml, reg_val, ML_CFG);
 }
 
-void
+static void
 roc_ml_clk_force_off(struct roc_ml *roc_ml)
 {
 	uint64_t reg_val = 0;
@@ -247,7 +252,7 @@ roc_ml_clk_force_off(struct roc_ml *roc_ml)
 	roc_ml_reg_write64(roc_ml, reg_val, ML_CFG);
 }
 
-void
+static void
 roc_ml_dma_stall_on(struct roc_ml *roc_ml)
 {
 	uint64_t reg_val = 0;
@@ -257,7 +262,7 @@ roc_ml_dma_stall_on(struct roc_ml *roc_ml)
 	roc_ml_reg_write64(roc_ml, reg_val, ML_JOB_MGR_CTRL);
 }
 
-void
+static void
 roc_ml_dma_stall_off(struct roc_ml *roc_ml)
 {
 	uint64_t reg_val = 0;
diff --git a/drivers/common/cnxk/roc_ml.h b/drivers/common/cnxk/roc_ml.h
index 43cb7e9c3a..892396e11d 100644
--- a/drivers/common/cnxk/roc_ml.h
+++ b/drivers/common/cnxk/roc_ml.h
@@ -121,7 +121,6 @@ void *__roc_api roc_ml_addr_ap2mlip(struct roc_ml *roc_ml, void *addr);
 void *__roc_api roc_ml_addr_mlip2ap(struct roc_ml *roc_ml, void *addr);
 
 /* Scratch and JCMDQ functions */
-bool roc_ml_scratch_is_valid_bit_set(struct roc_ml *roc_ml);
 bool __roc_api roc_ml_scratch_is_done_bit_set(struct roc_ml *roc_ml);
 bool __roc_api roc_ml_scratch_enqueue(struct roc_ml *roc_ml, void *work_ptr);
 bool __roc_api roc_ml_scratch_dequeue(struct roc_ml *roc_ml, void *work_ptr);
@@ -130,10 +129,6 @@ bool __roc_api roc_ml_jcmdq_enqueue_lf(struct roc_ml *roc_ml, struct ml_job_cmd_
 bool __roc_api roc_ml_jcmdq_enqueue_sl(struct roc_ml *roc_ml, struct ml_job_cmd_s *job_cmd);
 
 /* Device management functions */
-void roc_ml_clk_force_on(struct roc_ml *roc_ml);
-void roc_ml_clk_force_off(struct roc_ml *roc_ml);
-void roc_ml_dma_stall_on(struct roc_ml *roc_ml);
-void roc_ml_dma_stall_off(struct roc_ml *roc_ml);
 bool __roc_api roc_ml_mlip_is_enabled(struct roc_ml *roc_ml);
 int __roc_api roc_ml_mlip_reset(struct roc_ml *roc_ml, bool force);
 
diff --git a/drivers/common/cnxk/roc_nix.c b/drivers/common/cnxk/roc_nix.c
index ce957d061f..9cb112a6d0 100644
--- a/drivers/common/cnxk/roc_nix.c
+++ b/drivers/common/cnxk/roc_nix.c
@@ -6,6 +6,8 @@
 #include "roc_nix_flow_vec.h"
 #include "roc_priv.h"
 
+static int roc_nix_af_rx_flow_vec_ctrl_set(struct roc_nix *roc_nix);
+
 bool
 roc_nix_is_lbk(struct roc_nix *roc_nix)
 {
@@ -619,7 +621,7 @@ nix_af_rx_flow_vec_ctrl_set(struct mbox *mbox)
 	return rc;
 }
 
-int
+static int
 roc_nix_af_rx_flow_vec_ctrl_set(struct roc_nix *roc_nix)
 {
 	struct nix *nix = roc_nix_to_nix_priv(roc_nix);
diff --git a/drivers/common/cnxk/roc_nix.h b/drivers/common/cnxk/roc_nix.h
index f3729f5e77..bcec15dd82 100644
--- a/drivers/common/cnxk/roc_nix.h
+++ b/drivers/common/cnxk/roc_nix.h
@@ -853,7 +853,6 @@ int __roc_api roc_nix_tm_hierarchy_disable(struct roc_nix *roc_nix);
 int __roc_api roc_nix_tm_hierarchy_enable(struct roc_nix *roc_nix,
 					  enum roc_nix_tm_tree tree,
 					  bool xmit_enable);
-int roc_nix_tm_hierarchy_xmit_enable(struct roc_nix *roc_nix, enum roc_nix_tm_tree tree);
 
 
 /*
@@ -963,8 +962,6 @@ int __roc_api roc_nix_switch_hdr_set(struct roc_nix *roc_nix, uint64_t switch_he
 int __roc_api roc_nix_lso_fmt_setup(struct roc_nix *roc_nix);
 int __roc_api roc_nix_lso_fmt_get(struct roc_nix *roc_nix, uint8_t udp_tun[ROC_NIX_LSO_TUN_MAX],
 				  uint8_t tun[ROC_NIX_LSO_TUN_MAX]);
-int roc_nix_lso_alt_flags_profile_setup(struct roc_nix *roc_nix,
-					nix_lso_alt_flg_format_t *fmt);
 
 int __roc_api roc_nix_eeprom_info_get(struct roc_nix *roc_nix,
 				      struct roc_nix_eeprom_info *info);
@@ -987,12 +984,6 @@ void roc_nix_fc_npa_bp_cfg(struct roc_nix *roc_nix, uint64_t pool_id, uint8_t en
 			   uint8_t force, uint8_t tc, uint64_t drop_percent);
 int roc_nix_bpids_alloc(struct roc_nix *roc_nix, uint8_t type,
 			uint8_t bp_cnt, uint16_t *bpids);
-int roc_nix_rx_chan_cfg_get(struct roc_nix *roc_nix, uint16_t chan,
-			    bool is_cpt, uint64_t *cfg);
-int roc_nix_rx_chan_cfg_set(struct roc_nix *roc_nix, uint16_t chan,
-			    bool is_cpt, uint64_t val);
-int roc_nix_chan_bpid_set(struct roc_nix *roc_nix, uint16_t chan,
-			  uint64_t bpid, int ena, bool cpt_chan);
 
 /* NPC */
 int __roc_api roc_nix_npc_promisc_ena_dis(struct roc_nix *roc_nix, int enable);
@@ -1006,11 +997,7 @@ int __roc_api roc_nix_npc_rx_ena_dis(struct roc_nix *roc_nix, bool enable);
 int __roc_api roc_nix_npc_mcast_config(struct roc_nix *roc_nix,
 				       bool mcast_enable, bool prom_enable);
 
-int roc_nix_af_rx_flow_vec_ctrl_set(struct roc_nix *roc_nix);
-
 /* RSS */
-void roc_nix_rss_key_default_fill(struct roc_nix *roc_nix,
-				  uint8_t key[ROC_NIX_RSS_KEY_LEN]);
 void __roc_api roc_nix_rss_key_set(struct roc_nix *roc_nix,
 				   const uint8_t key[ROC_NIX_RSS_KEY_LEN]);
 void __roc_api roc_nix_rss_key_get(struct roc_nix *roc_nix,
diff --git a/drivers/common/cnxk/roc_nix_fc.c b/drivers/common/cnxk/roc_nix_fc.c
index 8c78ff9733..f8efcc2639 100644
--- a/drivers/common/cnxk/roc_nix_fc.c
+++ b/drivers/common/cnxk/roc_nix_fc.c
@@ -5,6 +5,9 @@
 #include "roc_api.h"
 #include "roc_priv.h"
 
+static int roc_nix_chan_bpid_set(struct roc_nix *roc_nix, uint16_t chan, uint64_t bpid,
+				 int ena, bool cpt_chan);
+
 static int
 nix_fc_rxchan_bpid_set(struct roc_nix *roc_nix, bool enable)
 {
@@ -617,7 +620,7 @@ roc_nix_bpids_alloc(struct roc_nix *roc_nix, uint8_t type, uint8_t bp_cnt, uint1
 	return nix_bpids_alloc(&nix->dev, type, bp_cnt, bpids);
 }
 
-int
+static int
 roc_nix_rx_chan_cfg_get(struct roc_nix *roc_nix, uint16_t chan, bool is_cpt, uint64_t *cfg)
 {
 	struct nix *nix = roc_nix_to_nix_priv(roc_nix);
@@ -643,7 +646,7 @@ roc_nix_rx_chan_cfg_get(struct roc_nix *roc_nix, uint16_t chan, bool is_cpt, uin
 	return rc;
 }
 
-int
+static int
 roc_nix_rx_chan_cfg_set(struct roc_nix *roc_nix, uint16_t chan, bool is_cpt, uint64_t val)
 {
 	struct nix *nix = roc_nix_to_nix_priv(roc_nix);
@@ -674,10 +677,10 @@ roc_nix_rx_chan_cfg_set(struct roc_nix *roc_nix, uint16_t chan, bool is_cpt, uin
 #define NIX_BPID2_OFF 32
 #define NIX_BPID3_OFF 44
 
-int
+static int
 roc_nix_chan_bpid_set(struct roc_nix *roc_nix, uint16_t chan, uint64_t bpid, int ena, bool cpt_chan)
 {
-	uint64_t cfg;
+	uint64_t cfg = 0;
 	int rc;
 
 	if (!roc_feature_nix_has_rxchan_multi_bpid())
diff --git a/drivers/common/cnxk/roc_nix_inl.c b/drivers/common/cnxk/roc_nix_inl.c
index 53d749080c..6e4d661997 100644
--- a/drivers/common/cnxk/roc_nix_inl.c
+++ b/drivers/common/cnxk/roc_nix_inl.c
@@ -1197,7 +1197,7 @@ roc_nix_inl_inb_spi_range(struct roc_nix *roc_nix, bool inb_inl_dev,
 	return mask;
 }
 
-uint32_t
+static uint32_t
 roc_nix_inl_inb_sa_sz(struct roc_nix *roc_nix, bool inl_dev_sa)
 {
 	struct idev_cfg *idev = idev_get_cfg();
diff --git a/drivers/common/cnxk/roc_nix_inl.h b/drivers/common/cnxk/roc_nix_inl.h
index b9aee487c9..90b86bb172 100644
--- a/drivers/common/cnxk/roc_nix_inl.h
+++ b/drivers/common/cnxk/roc_nix_inl.h
@@ -173,8 +173,6 @@ bool __roc_api roc_nix_inl_inb_rx_inject_enable(struct roc_nix *roc_nix, bool in
 uint32_t __roc_api roc_nix_inl_inb_spi_range(struct roc_nix *roc_nix,
 					     bool inl_dev_sa, uint32_t *min,
 					     uint32_t *max);
-uint32_t roc_nix_inl_inb_sa_sz(struct roc_nix *roc_nix,
-			       bool inl_dev_sa);
 uintptr_t __roc_api roc_nix_inl_inb_sa_get(struct roc_nix *roc_nix,
 					   bool inl_dev_sa, uint32_t spi);
 void __roc_api roc_nix_inb_mode_set(struct roc_nix *roc_nix, bool use_inl_dev);
diff --git a/drivers/common/cnxk/roc_nix_ops.c b/drivers/common/cnxk/roc_nix_ops.c
index 9ec7c09084..e7211d7288 100644
--- a/drivers/common/cnxk/roc_nix_ops.c
+++ b/drivers/common/cnxk/roc_nix_ops.c
@@ -161,7 +161,7 @@ nix_lso_tun_tcp(struct nix_lso_format_cfg *req, bool outer_v4, bool inner_v4)
 	field++;
 }
 
-int
+static int
 roc_nix_lso_alt_flags_profile_setup(struct roc_nix *roc_nix, nix_lso_alt_flg_format_t *fmt)
 {
 	struct nix *nix = roc_nix_to_nix_priv(roc_nix);
diff --git a/drivers/common/cnxk/roc_nix_rss.c b/drivers/common/cnxk/roc_nix_rss.c
index ac5df654ff..3b7a8d42da 100644
--- a/drivers/common/cnxk/roc_nix_rss.c
+++ b/drivers/common/cnxk/roc_nix_rss.c
@@ -5,7 +5,7 @@
 #include "roc_api.h"
 #include "roc_priv.h"
 
-void
+static void
 roc_nix_rss_key_default_fill(struct roc_nix *roc_nix,
 			     uint8_t key[ROC_NIX_RSS_KEY_LEN])
 {
diff --git a/drivers/common/cnxk/roc_nix_tm_ops.c b/drivers/common/cnxk/roc_nix_tm_ops.c
index 406234b5c7..128a5c7f15 100644
--- a/drivers/common/cnxk/roc_nix_tm_ops.c
+++ b/drivers/common/cnxk/roc_nix_tm_ops.c
@@ -434,7 +434,7 @@ roc_nix_tm_hierarchy_disable(struct roc_nix *roc_nix)
 	return rc;
 }
 
-int
+static int
 roc_nix_tm_hierarchy_xmit_enable(struct roc_nix *roc_nix, enum roc_nix_tm_tree tree)
 {
 	struct nix *nix = roc_nix_to_nix_priv(roc_nix);
diff --git a/drivers/common/cnxk/roc_npa.c b/drivers/common/cnxk/roc_npa.c
index 107fce8b61..de63d8ef06 100644
--- a/drivers/common/cnxk/roc_npa.c
+++ b/drivers/common/cnxk/roc_npa.c
@@ -5,6 +5,10 @@
 #include "roc_api.h"
 #include "roc_priv.h"
 
+static void roc_npa_dev_unlock(void);
+
+static void roc_npa_dev_lock(void);
+
 static roc_npa_lf_init_cb_t lf_init_cb;
 
 int
@@ -1733,7 +1737,7 @@ roc_npa_dev_fini(struct roc_npa *roc_npa)
 	return dev_fini(&npa->dev, npa->pci_dev);
 }
 
-void
+static void
 roc_npa_dev_lock(void)
 {
 	struct idev_cfg *idev = idev_get_cfg();
@@ -1742,7 +1746,7 @@ roc_npa_dev_lock(void)
 		plt_spinlock_lock(&idev->npa_dev_lock);
 }
 
-void
+static void
 roc_npa_dev_unlock(void)
 {
 	struct idev_cfg *idev = idev_get_cfg();
diff --git a/drivers/common/cnxk/roc_npa.h b/drivers/common/cnxk/roc_npa.h
index c715348e65..2fa828c803 100644
--- a/drivers/common/cnxk/roc_npa.h
+++ b/drivers/common/cnxk/roc_npa.h
@@ -900,7 +900,4 @@ int roc_npa_ctx_dump(void);
 int roc_npa_aura_drop_set(uint64_t aura_handle, uint64_t limit,
 			  bool ena);
 
-void roc_npa_dev_lock(void);
-void roc_npa_dev_unlock(void);
-
 #endif /* _ROC_NPA_H_ */
diff --git a/drivers/common/cnxk/roc_npc.c b/drivers/common/cnxk/roc_npc.c
index aecea84ee1..de73e0b47b 100644
--- a/drivers/common/cnxk/roc_npc.c
+++ b/drivers/common/cnxk/roc_npc.c
@@ -1577,7 +1577,7 @@ npc_inline_dev_ipsec_action_free(struct npc *npc, struct roc_npc_flow *flow)
 	return 1;
 }
 
-void
+static void
 roc_npc_sdp_channel_get(struct roc_npc *roc_npc, uint16_t *chan_base, uint16_t *chan_mask)
 {
 	struct roc_nix *roc_nix = roc_npc->roc_nix;
diff --git a/drivers/common/cnxk/roc_npc.h b/drivers/common/cnxk/roc_npc.h
index 8481cca824..1f602d458a 100644
--- a/drivers/common/cnxk/roc_npc.h
+++ b/drivers/common/cnxk/roc_npc.h
@@ -497,8 +497,6 @@ int __roc_api roc_npc_mcam_merge_base_steering_rule(struct roc_npc *roc_npc,
 int __roc_api roc_npc_mcam_default_rule_action_get(struct roc_npc *roc_npc, uint64_t *action);
 int __roc_api roc_npc_mcam_move(struct roc_npc *roc_npc, uint16_t old_ent, uint16_t new_ent);
 void *__roc_api roc_npc_aged_flow_ctx_get(struct roc_npc *roc_npc, uint32_t mcam_id);
-void roc_npc_sdp_channel_get(struct roc_npc *roc_npc, uint16_t *chan_base,
-			     uint16_t *chan_mask);
 int __roc_api roc_npc_mcam_get_stats(struct roc_npc *roc_npc, struct roc_npc_flow *flow,
 				     uint64_t *count);
 int __roc_api roc_npc_skip_size_pkind_get(struct roc_npc *roc_npc);
diff --git a/drivers/common/cnxk/roc_ree.c b/drivers/common/cnxk/roc_ree.c
index 447b52d0fa..19799118ec 100644
--- a/drivers/common/cnxk/roc_ree.c
+++ b/drivers/common/cnxk/roc_ree.c
@@ -5,6 +5,8 @@
 #include "roc_api.h"
 #include "roc_priv.h"
 
+static int roc_ree_af_reg_read(struct roc_ree_vf *vf, uint64_t reg, uint64_t *val);
+
 #define REE0_PF 19
 #define REE1_PF 20
 
@@ -135,7 +137,7 @@ ree_send_mbox_msg(struct roc_ree_vf *vf)
 	return 0;
 }
 
-int
+static int
 roc_ree_config_lf(struct roc_ree_vf *vf, uint8_t lf, uint8_t pri, uint32_t size)
 {
 	struct ree_lf_req_msg *req;
@@ -162,7 +164,7 @@ roc_ree_config_lf(struct roc_ree_vf *vf, uint8_t lf, uint8_t pri, uint32_t size)
 	return 0;
 }
 
-int
+static int
 roc_ree_af_reg_read(struct roc_ree_vf *vf, uint64_t reg, uint64_t *val)
 {
 	struct ree_rd_wr_reg_msg *msg;
diff --git a/drivers/common/cnxk/roc_ree.h b/drivers/common/cnxk/roc_ree.h
index 5afe7da8b4..98c85463c7 100644
--- a/drivers/common/cnxk/roc_ree.h
+++ b/drivers/common/cnxk/roc_ree.h
@@ -111,10 +111,6 @@ int __roc_api roc_ree_dev_fini(struct roc_ree_vf *vf);
 int __roc_api roc_ree_queues_attach(struct roc_ree_vf *vf, uint8_t nb_queues);
 int __roc_api roc_ree_queues_detach(struct roc_ree_vf *vf);
 int __roc_api roc_ree_msix_offsets_get(struct roc_ree_vf *vf);
-int roc_ree_config_lf(struct roc_ree_vf *vf, uint8_t lf, uint8_t pri,
-		      uint32_t size);
-int roc_ree_af_reg_read(struct roc_ree_vf *vf, uint64_t reg,
-			uint64_t *val);
 int __roc_api roc_ree_rule_db_get(struct roc_ree_vf *vf, char *rule_db,
 				  uint32_t rule_db_len, char *rule_dbi,
 				  uint32_t rule_dbi_len);
diff --git a/drivers/common/cnxk/roc_sso.c b/drivers/common/cnxk/roc_sso.c
index 98accfc399..2ec76a7585 100644
--- a/drivers/common/cnxk/roc_sso.c
+++ b/drivers/common/cnxk/roc_sso.c
@@ -638,7 +638,7 @@ roc_sso_hwgrp_agq_free(struct roc_sso *roc_sso, uint16_t hwgrp, uint32_t agq_id)
 	sso_agq_op_wait(roc_sso, hwgrp);
 }
 
-void
+static void
 roc_sso_hwgrp_agq_release(struct roc_sso *roc_sso, uint16_t hwgrp)
 {
 	struct sso *sso = roc_sso_to_sso_priv(roc_sso);
diff --git a/drivers/common/cnxk/roc_sso.h b/drivers/common/cnxk/roc_sso.h
index da16cc1efb..df7c441228 100644
--- a/drivers/common/cnxk/roc_sso.h
+++ b/drivers/common/cnxk/roc_sso.h
@@ -110,7 +110,6 @@ void __roc_api roc_sso_hws_gwc_invalidate(struct roc_sso *roc_sso, uint8_t *hws,
 int __roc_api roc_sso_hwgrp_agq_alloc(struct roc_sso *roc_sso, uint16_t hwgrp,
 				      struct roc_sso_agq_data *data, uint32_t *agq_id);
 void __roc_api roc_sso_hwgrp_agq_free(struct roc_sso *roc_sso, uint16_t hwgrp, uint32_t agq_id);
-void roc_sso_hwgrp_agq_release(struct roc_sso *roc_sso, uint16_t hwgrp);
 
 /* Utility function */
 uint16_t __roc_api roc_sso_pf_func_get(void);
-- 
2.53.0


  parent reply	other threads:[~2026-11-29 20:55 UTC|newest]

Thread overview: 90+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-29 20:48 [PATCH 00/45] remove unused internal symbols and dead code Stephen Hemminger
2026-11-29 20:48 ` [PATCH 01/45] bus/vmbus: do not export unused internal symbol Stephen Hemminger
2026-11-29 20:48 ` [PATCH 02/45] bus/dpaa: remove exports for nonexistent symbols Stephen Hemminger
2026-11-29 20:48 ` [PATCH 03/45] ethdev: do not export internal dummy ops Stephen Hemminger
2026-11-29 20:48 ` [PATCH 04/45] hash: do not export internal toeplitz helper Stephen Hemminger
2026-11-29 20:48 ` [PATCH 05/45] cryptodev: do not export internal device name helper Stephen Hemminger
2026-11-29 20:48 ` [PATCH 06/45] mldev: do not export internal PMD device helpers Stephen Hemminger
2026-11-29 20:48 ` [PATCH 07/45] gpudev: do not export unused internal functions Stephen Hemminger
2026-11-29 20:48 ` [PATCH 08/45] eal/linux: do not export internal VFIO helpers Stephen Hemminger
2026-11-29 20:48 ` [PATCH 09/45] eal/linux: remove unused VFIO device number helper Stephen Hemminger
2026-11-29 20:48 ` [PATCH 10/45] eal: make per-thread epoll instance getter static Stephen Hemminger
2026-11-29 20:48 ` [PATCH 11/45] bus: do not export unused driver unregister functions Stephen Hemminger
2026-11-29 20:48 ` [PATCH 12/45] bus/fslmc: do not export internal symbols used only in the bus Stephen Hemminger
2026-11-29 20:48 ` [PATCH 13/45] bus/dpaa: " Stephen Hemminger
2026-11-29 20:48 ` [PATCH 14/45] common/dpaax: do not export IOVA table dump helper Stephen Hemminger
2026-11-29 20:49 ` [PATCH 15/45] net/nfb: do not export MDIO speed capability helper Stephen Hemminger
2026-11-30  9:56   ` Martin Spinler
2026-11-29 20:49 ` [PATCH 16/45] common/sxe2: do not export internal ioctl channel helpers Stephen Hemminger
2026-11-29 20:49 ` [PATCH 17/45] common/mlx5: do not export internal symbols used only in common code Stephen Hemminger
2026-11-30 10:50   ` Dariusz Sosnowski
2026-11-29 20:49 ` [PATCH 18/45] net/idpf: do not export internal symbols used only in the driver Stephen Hemminger
2026-11-29 20:49 ` [PATCH 19/45] net/iavf: do not export VF reset function Stephen Hemminger
2026-11-29 20:49 ` [PATCH 20/45] eal: do not export unused Windows interrupt handle accessors Stephen Hemminger
2026-11-29 20:49 ` [PATCH 21/45] common/cnxk: do not export internal symbols used only in roc Stephen Hemminger
2026-11-29 20:49 ` [PATCH 22/45] common/sfc_efx: do not export internal symbols unused outside base Stephen Hemminger
2026-11-29 20:49 ` [PATCH 23/45] crypto/cnxk: do not export internal Rx inject helpers Stephen Hemminger
2026-11-29 20:49 ` [PATCH 24/45] net/cnxk: do not export inline inbound mode setter Stephen Hemminger
2026-11-29 20:49 ` [PATCH 25/45] common/sfc_efx: remove unused libefx functions Stephen Hemminger
2026-11-29 20:49 ` [PATCH 26/45] common/cnxk: remove unused roc functions Stephen Hemminger
2026-11-29 20:49 ` [PATCH 27/45] common/mlx5: remove unused internal functions Stephen Hemminger
2026-11-30 10:51   ` Dariusz Sosnowski
2026-11-29 20:49 ` [PATCH 28/45] bus/fslmc: remove unused VFIO helpers Stephen Hemminger
2026-11-29 20:49 ` [PATCH 29/45] bus/dpaa: remove unused FMan and netcfg helpers Stephen Hemminger
2026-11-29 20:49 ` [PATCH 30/45] common/dpaax: remove unused IOVA table dump Stephen Hemminger
2026-11-29 20:49 ` [PATCH 31/45] net/idpf: remove unused queue enable helper Stephen Hemminger
2026-11-29 20:49 ` [PATCH 32/45] gpudev: remove unused attach function Stephen Hemminger
2026-11-29 20:49 ` [PATCH 33/45] cryptodev: remove unused device name helper Stephen Hemminger
2026-11-29 20:49 ` [PATCH 34/45] common/cnxk: remove unused MCS port recovery Stephen Hemminger
2026-11-29 20:49 ` [PATCH 35/45] bus/dpaa: remove unused QMan and BMan functions Stephen Hemminger
2026-11-29 20:49 ` [PATCH 36/45] bus/fslmc: remove unused MC object functions Stephen Hemminger
2026-11-29 20:49 ` [PATCH 37/45] eal: remove unused Windows interrupt handle accessors Stephen Hemminger
2026-11-29 20:49 ` [PATCH 38/45] common/sfc_efx: make efx_family static Stephen Hemminger
2026-11-29 20:49 ` [PATCH 39/45] gpudev: make event notify helper static Stephen Hemminger
2026-11-29 20:49 ` [PATCH 40/45] mldev: make device lookup " Stephen Hemminger
2026-11-29 20:49 ` [PATCH 41/45] bus/fslmc: make internal helpers static Stephen Hemminger
2026-11-29 20:49 ` [PATCH 42/45] net/cnxk: make inline inbound mode setter static Stephen Hemminger
2026-11-29 20:49 ` [PATCH 43/45] common/sxe2: make memory event callback static Stephen Hemminger
2026-11-29 20:49 ` [PATCH 44/45] net/idpf: make internal burst functions static Stephen Hemminger
2026-11-29 20:49 ` Stephen Hemminger [this message]
2026-11-30 21:49 ` [PATCH v2 00/38] enable unreachable code detection Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 01/38] net/mlx4: fix unreachable code warnings Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 02/38] net/mlx5: " Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 03/38] examples/ipsec-secgw: remove dead code Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 04/38] eventdev: fix vector adapter instance allocation Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 05/38] test/eal: skip filesystem test on FreeBSD Stephen Hemminger
2026-12-01  8:58     ` Bruce Richardson
2026-11-30 21:49   ` [PATCH v2 06/38] eal: silence unreachable code in version string Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 07/38] net/dpaa2: remove debug abort in flow destroy Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 08/38] app/testpmd: fix unreachable VF traffic error message Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 09/38] examples/eventdev_pipeline: remove dead continue Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 10/38] examples/skeleton: handle SIGINT and SIGTERM Stephen Hemminger
2026-12-01  8:59     ` Bruce Richardson
2026-11-30 21:49   ` [PATCH v2 11/38] examples/rxtx_callbacks: " Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 12/38] examples/service_cores: " Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 13/38] examples/timer: " Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 14/38] examples/multi_process: handle SIGINT and SIGTERM in client Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 15/38] examples/server_node_efd: handle SIGINT and SIGTERM in node Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 16/38] examples/pipeline: handle SIGINT and SIGTERM Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 17/38] ethdev: fix unreachable warnings from switch declarations Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 18/38] config: add per-directory option for -Wunreachable-code Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 19/38] bus/dpaa: exempt this driver from unreachable code detection Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 20/38] net/qede: disable unreachable code checks Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 21/38] net/txgbe: " Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 22/38] net/ixgbe: disable unreachable code check Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 23/38] net/ngbe: " Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 24/38] net/octeontx: replace unreachable code Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 25/38] common/sfc_efx: disable unreachable code check for base code Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 26/38] net/dpaa2: check port state before changing TM hierarchy Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 27/38] net/e1000: disable unreachable code check for base code Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 28/38] net/ice: " Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 29/38] raw/ifpga: " Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 30/38] net/bnxt: disable unreachable code check Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 31/38] net/ntnic: " Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 32/38] lib: mark never returning thread functions Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 33/38] lib: remove unreachable statements Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 34/38] app: " Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 35/38] examples: " Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 36/38] drivers: " Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 37/38] efd: mark configuration dependent vector selection Stephen Hemminger
2026-11-30 21:49   ` [PATCH v2 38/38] config: enable unreachable code detection Stephen Hemminger

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=20261129205006.1440292-46-stephen@networkplumber.org \
    --to=stephen@networkplumber.org \
    --cc=dev@dpdk.org \
    --cc=hkalra@marvell.com \
    --cc=kirankumark@marvell.com \
    --cc=ndabilpuram@marvell.com \
    --cc=skori@marvell.com \
    --cc=skoteshwar@marvell.com \
    --cc=syalavarthi@marvell.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox