Skip to content

Commit 96fa96e

Browse files
Russell King (Oracle)davem330
authored andcommitted
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>
1 parent 9a1f02f commit 96fa96e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/linux/linkmode.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ static inline void linkmode_zero(unsigned long *dst)
1010
bitmap_zero(dst, __ETHTOOL_LINK_MODE_MASK_NBITS);
1111
}
1212

13+
static inline void linkmode_fill(unsigned long *dst)
14+
{
15+
bitmap_fill(dst, __ETHTOOL_LINK_MODE_MASK_NBITS);
16+
}
17+
1318
static inline void linkmode_copy(unsigned long *dst, const unsigned long *src)
1419
{
1520
bitmap_copy(dst, src, __ETHTOOL_LINK_MODE_MASK_NBITS);

0 commit comments

Comments
 (0)