Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40141bb4 authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller
Browse files

net: ethernet: ti: davinci_cpdma: make function cpdma_desc_pool_create static



The function cpdma_desc_pool_create is local to the source and does not
need to be in global scope, so make it static.

Cleans up sparse warning:
warning: symbol 'cpdma_desc_pool_create' was not declared. Should it
be static?

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Reviewed-by: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 962c661f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -205,7 +205,7 @@ static void cpdma_desc_pool_destroy(struct cpdma_ctlr *ctlr)
 * devices (e.g. cpsw switches) use plain old memory.  Descriptor pools
 * abstract out these details
 */
int cpdma_desc_pool_create(struct cpdma_ctlr *ctlr)
static int cpdma_desc_pool_create(struct cpdma_ctlr *ctlr)
{
	struct cpdma_params *cpdma_params = &ctlr->params;
	struct cpdma_desc_pool *pool;