qcacmn: Make dp_tx_tso_cmn_desc_pool_*() functions static

The following functions are currently public functions:
dp_tx_tso_cmn_desc_pool_alloc()
dp_tx_tso_cmn_desc_pool_init()
dp_tx_tso_cmn_desc_pool_deinit()
dp_tx_tso_cmn_desc_pool_free()

However these functions are only called from within the file where
they are defined, so make them static.

Change-Id: If57b36398e0cf6a33be2b85bc00d651fe5ed9a71
CRs-Fixed: 3371860
This commit is contained in:
Jeff Johnson
2023-01-03 10:49:47 -08:00
committad av Madan Koyyalamudi
förälder 357a7f62b7
incheckning 5b69a94a15
2 ändrade filer med 15 tillägg och 23 borttagningar

Visa fil

@@ -6464,7 +6464,7 @@ static void dp_tx_delete_static_pools(struct dp_soc *soc, int num_pool)
* @num_pool: number of pools
*
*/
void dp_tx_tso_cmn_desc_pool_deinit(struct dp_soc *soc, uint8_t num_pool)
static void dp_tx_tso_cmn_desc_pool_deinit(struct dp_soc *soc, uint8_t num_pool)
{
dp_tx_tso_desc_pool_deinit(soc, num_pool);
dp_tx_tso_num_seg_pool_deinit(soc, num_pool);
@@ -6476,7 +6476,7 @@ void dp_tx_tso_cmn_desc_pool_deinit(struct dp_soc *soc, uint8_t num_pool)
* @num_pool: number of pools
*
*/
void dp_tx_tso_cmn_desc_pool_free(struct dp_soc *soc, uint8_t num_pool)
static void dp_tx_tso_cmn_desc_pool_free(struct dp_soc *soc, uint8_t num_pool)
{
dp_tx_tso_desc_pool_free(soc, num_pool);
dp_tx_tso_num_seg_pool_free(soc, num_pool);
@@ -6526,17 +6526,19 @@ void dp_soc_tx_desc_sw_pools_deinit(struct dp_soc *soc)
}
/**
* dp_tso_attach() - TSO attach handler
* @txrx_soc: Opaque Dp handle
* dp_tx_tso_cmn_desc_pool_alloc() - TSO cmn desc pool allocator
* @soc: DP soc handle
* @num_pool: Number of pools
* @num_desc: Number of descriptors
*
* Reserve TSO descriptor buffers
*
* Return: QDF_STATUS_E_FAILURE on failure or
* QDF_STATUS_SUCCESS on success
* QDF_STATUS_SUCCESS on success
*/
QDF_STATUS dp_tx_tso_cmn_desc_pool_alloc(struct dp_soc *soc,
uint8_t num_pool,
uint32_t num_desc)
static QDF_STATUS dp_tx_tso_cmn_desc_pool_alloc(struct dp_soc *soc,
uint8_t num_pool,
uint32_t num_desc)
{
if (dp_tx_tso_desc_pool_alloc(soc, num_pool, num_desc)) {
dp_err("TSO Desc Pool alloc %d failed %pK", num_pool, soc);
@@ -6560,12 +6562,12 @@ QDF_STATUS dp_tx_tso_cmn_desc_pool_alloc(struct dp_soc *soc,
* Initialize TSO descriptor pools
*
* Return: QDF_STATUS_E_FAILURE on failure or
* QDF_STATUS_SUCCESS on success
* QDF_STATUS_SUCCESS on success
*/
QDF_STATUS dp_tx_tso_cmn_desc_pool_init(struct dp_soc *soc,
uint8_t num_pool,
uint32_t num_desc)
static QDF_STATUS dp_tx_tso_cmn_desc_pool_init(struct dp_soc *soc,
uint8_t num_pool,
uint32_t num_desc)
{
if (dp_tx_tso_desc_pool_init(soc, num_pool, num_desc)) {
dp_err("TSO Desc Pool alloc %d failed %pK", num_pool, soc);