Re: [PATCH] net: bcmgenet: remove unused function in bcmgenet.c

From: David Miller
Date: Mon Sep 26 2016 - 02:25:03 EST


From: Baoyou Xie <baoyou.xie@xxxxxxxxxx>
Date: Sun, 25 Sep 2016 14:23:15 +0800

> We get 1 warning when building kernel with W=1:
> drivers/net/ethernet/broadcom/genet/bcmgenet.c:2763:5: warning: no previous prototype for 'bcmgenet_hfb_add_filter' [-Wmissing-prototypes]
>
> In fact, this function is implemented in
> drivers/net/ethernet/broadcom/genet/bcmgenet.c, but be called
> by no one, thus can be removed.
>
> So this patch removes the unused functions.
>
> Signed-off-by: Baoyou Xie <baoyou.xie@xxxxxxxxxx>

Applied.