mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-22 00:40:03 +00:00
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: Colin Ian King <colin.king@canonical.com> Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
962c661f14
commit
40141bb480
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue