Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: linkmode: add linkmode_fill() helper

Add a linkmode_fill() helper, which will allow us to convert phylink's
open coded bitmap_fill() operations.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Russell King (Oracle) and committed by
David S. Miller
96fa96e1 9a1f02f3

+5
+5
include/linux/linkmode.h
··· 10 10 bitmap_zero(dst, __ETHTOOL_LINK_MODE_MASK_NBITS); 11 11 } 12 12 13 + static inline void linkmode_fill(unsigned long *dst) 14 + { 15 + bitmap_fill(dst, __ETHTOOL_LINK_MODE_MASK_NBITS); 16 + } 17 + 13 18 static inline void linkmode_copy(unsigned long *dst, const unsigned long *src) 14 19 { 15 20 bitmap_copy(dst, src, __ETHTOOL_LINK_MODE_MASK_NBITS);