Skip to content

Commit 40141bb

Browse files
Colin Ian Kingdavem330
authored andcommitted
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 <[email protected]> Reviewed-by: Grygorii Strashko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 962c661 commit 40141bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/ti/davinci_cpdma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ static void cpdma_desc_pool_destroy(struct cpdma_ctlr *ctlr)
205205
* devices (e.g. cpsw switches) use plain old memory. Descriptor pools
206206
* abstract out these details
207207
*/
208-
int cpdma_desc_pool_create(struct cpdma_ctlr *ctlr)
208+
static int cpdma_desc_pool_create(struct cpdma_ctlr *ctlr)
209209
{
210210
struct cpdma_params *cpdma_params = &ctlr->params;
211211
struct cpdma_desc_pool *pool;

0 commit comments

Comments
 (0)