mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
octeontx2: remove unneeded symbol exports
octeontx2 has a bunch of symbols not used outside the module which defines them. Worse, still the macro which defines otx2_mbox_up_handler_* adds exports for all the functions. Remove all the explicit exports and the auto-export from that macro. otx2_mbox_up_handler_cgx_link_event was exported by the macro and is genuienly called from the VF driver, so add an export. Link: https://lore.kernel.org/arYYTw8l90VNnKal@infradead.org Reviewed-by: Christoph Hellwig <hch@lst.de> Link: https://patch.msgid.link/20260925201042.1174488-1-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
587acb86d6
commit
3e6a0e83c9
|
|
@ -18,4 +18,3 @@ int rvu_mbox_handler_npa_cn20k_aq_enq(struct rvu *rvu,
|
|||
return rvu_npa_aq_enq_inst(rvu, (struct npa_aq_enq_req *)req,
|
||||
(struct npa_aq_enq_rsp *)rsp);
|
||||
}
|
||||
EXPORT_SYMBOL(rvu_mbox_handler_npa_cn20k_aq_enq);
|
||||
|
|
|
|||
|
|
@ -732,7 +732,6 @@ int otx2_txschq_config(struct otx2_nic *pfvf, int lvl, int prio, bool txschq_for
|
|||
|
||||
return otx2_sync_mbox_msg(&pfvf->mbox);
|
||||
}
|
||||
EXPORT_SYMBOL(otx2_txschq_config);
|
||||
|
||||
int otx2_smq_flush(struct otx2_nic *pfvf, int smq)
|
||||
{
|
||||
|
|
@ -756,7 +755,6 @@ int otx2_smq_flush(struct otx2_nic *pfvf, int smq)
|
|||
mutex_unlock(&pfvf->mbox.lock);
|
||||
return rc;
|
||||
}
|
||||
EXPORT_SYMBOL(otx2_smq_flush);
|
||||
|
||||
int otx2_txsch_alloc(struct otx2_nic *pfvf)
|
||||
{
|
||||
|
|
@ -828,7 +826,6 @@ void otx2_txschq_free_one(struct otx2_nic *pfvf, u16 lvl, u16 schq)
|
|||
|
||||
mutex_unlock(&pfvf->mbox.lock);
|
||||
}
|
||||
EXPORT_SYMBOL(otx2_txschq_free_one);
|
||||
|
||||
void otx2_txschq_stop(struct otx2_nic *pfvf)
|
||||
{
|
||||
|
|
@ -1838,7 +1835,6 @@ int otx2_nix_config_bp(struct otx2_nic *pfvf, bool enable)
|
|||
|
||||
return otx2_sync_mbox_msg(&pfvf->mbox);
|
||||
}
|
||||
EXPORT_SYMBOL(otx2_nix_config_bp);
|
||||
|
||||
int otx2_nix_cpt_config_bp(struct otx2_nic *pfvf, bool enable)
|
||||
{
|
||||
|
|
@ -1863,7 +1859,6 @@ int otx2_nix_cpt_config_bp(struct otx2_nic *pfvf, bool enable)
|
|||
|
||||
return otx2_sync_mbox_msg(&pfvf->mbox);
|
||||
}
|
||||
EXPORT_SYMBOL(otx2_nix_cpt_config_bp);
|
||||
|
||||
/* Mbox message handlers */
|
||||
void mbox_handler_cgx_stats(struct otx2_nic *pfvf,
|
||||
|
|
@ -2110,8 +2105,7 @@ otx2_mbox_up_handler_ ## _fn_name(struct otx2_nic *pfvf, \
|
|||
{ \
|
||||
/* Nothing to do here */ \
|
||||
return 0; \
|
||||
} \
|
||||
EXPORT_SYMBOL(otx2_mbox_up_handler_ ## _fn_name);
|
||||
}
|
||||
MBOX_UP_CGX_MESSAGES
|
||||
MBOX_UP_MCS_MESSAGES
|
||||
#undef M
|
||||
|
|
|
|||
|
|
@ -54,7 +54,6 @@ int otx2_pfc_txschq_config(struct otx2_nic *pfvf)
|
|||
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(otx2_pfc_txschq_config);
|
||||
|
||||
static int otx2_pfc_txschq_alloc_one(struct otx2_nic *pfvf, u8 prio)
|
||||
{
|
||||
|
|
@ -123,7 +122,6 @@ int otx2_pfc_txschq_alloc(struct otx2_nic *pfvf)
|
|||
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(otx2_pfc_txschq_alloc);
|
||||
|
||||
static int otx2_pfc_txschq_stop_one(struct otx2_nic *pfvf, u8 prio)
|
||||
{
|
||||
|
|
@ -262,7 +260,6 @@ int otx2_pfc_txschq_update(struct otx2_nic *pfvf)
|
|||
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(otx2_pfc_txschq_update);
|
||||
|
||||
int otx2_pfc_txschq_stop(struct otx2_nic *pfvf)
|
||||
{
|
||||
|
|
@ -285,7 +282,6 @@ int otx2_pfc_txschq_stop(struct otx2_nic *pfvf)
|
|||
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(otx2_pfc_txschq_stop);
|
||||
|
||||
int otx2_config_priority_flow_ctrl(struct otx2_nic *pfvf)
|
||||
{
|
||||
|
|
@ -395,7 +391,6 @@ void otx2_update_bpid_in_rqctx(struct otx2_nic *pfvf, int vlan_prio, int qidx,
|
|||
"Updating BPIDs in CQ and Aura contexts of RQ%d failed with err %d\n",
|
||||
qidx, err);
|
||||
}
|
||||
EXPORT_SYMBOL(otx2_update_bpid_in_rqctx);
|
||||
|
||||
static int otx2_dcbnl_ieee_getpfc(struct net_device *dev, struct ieee_pfc *pfc)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -281,7 +281,6 @@ int otx2_alloc_mcam_entries(struct otx2_nic *pfvf, u16 count)
|
|||
count, allocated);
|
||||
return allocated;
|
||||
}
|
||||
EXPORT_SYMBOL(otx2_alloc_mcam_entries);
|
||||
|
||||
int otx2_mcam_entry_init(struct otx2_nic *pfvf)
|
||||
{
|
||||
|
|
@ -420,7 +419,6 @@ int otx2_mcam_entry_init(struct otx2_nic *pfvf)
|
|||
refcount_set(&flow_cfg->mark_flows, 1);
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(otx2_mcam_entry_init);
|
||||
|
||||
/* TODO : revisit on size */
|
||||
#define OTX2_DMAC_FLTR_BITMAP_SZ (4 * 2048 + 32)
|
||||
|
|
@ -654,7 +652,6 @@ int otx2_get_maxflows(struct otx2_flow_config *flow_cfg)
|
|||
else
|
||||
return flow_cfg->max_flows;
|
||||
}
|
||||
EXPORT_SYMBOL(otx2_get_maxflows);
|
||||
|
||||
int otx2_get_flow(struct otx2_nic *pfvf, struct ethtool_rxnfc *nfc,
|
||||
u32 location)
|
||||
|
|
|
|||
|
|
@ -959,6 +959,7 @@ int otx2_mbox_up_handler_cgx_link_event(struct otx2_nic *pf,
|
|||
otx2_handle_link_event(pf);
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(otx2_mbox_up_handler_cgx_link_event);
|
||||
|
||||
static int otx2_process_mbox_msg_up(struct otx2_nic *pf,
|
||||
struct mbox_msghdr *req)
|
||||
|
|
@ -3102,7 +3103,6 @@ int otx2_realloc_msix_vectors(struct otx2_nic *pf)
|
|||
|
||||
return otx2_register_mbox_intr(pf, false);
|
||||
}
|
||||
EXPORT_SYMBOL(otx2_realloc_msix_vectors);
|
||||
|
||||
static int otx2_sriov_vfcfg_init(struct otx2_nic *pf)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1675,4 +1675,3 @@ void otx2_tc_apply_ingress_police_rules(struct otx2_nic *nic)
|
|||
otx2_tc_config_ingress_rule(nic, node);
|
||||
}
|
||||
}
|
||||
EXPORT_SYMBOL(otx2_tc_apply_ingress_police_rules);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user