From: Joe Perches Date: Wed, 20 May 2015 01:37:55 +0000 (-0700) Subject: spider_net: Use DECLARE_BITMAP X-Git-Tag: v4.2~362^2~248 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e26cc7ff77ac9726c05e9595998121a7e17d32ee;p=platform%2Fkernel%2Flinux-amlogic.git spider_net: Use DECLARE_BITMAP Use the generic mechanism to declare a bitmap instead of unsigned long. Signed-off-by: Joe Perches Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/toshiba/spider_net.c b/drivers/net/ethernet/toshiba/spider_net.c index 8e9371a..3c54a2c 100644 --- a/drivers/net/ethernet/toshiba/spider_net.c +++ b/drivers/net/ethernet/toshiba/spider_net.c @@ -604,8 +604,7 @@ spider_net_set_multi(struct net_device *netdev) int i; u32 reg; struct spider_net_card *card = netdev_priv(netdev); - unsigned long bitmask[SPIDER_NET_MULTICAST_HASHES / BITS_PER_LONG] = - {0, }; + DECLARE_BITMAP(bitmask, SPIDER_NET_MULTICAST_HASHES) = {}; spider_net_set_promisc(card);