Message ID | E1r3EEo-00CfC6-Ez@rmk-PC.armlinux.org.uk (mailing list archive) |
---|---|
State | Accepted |
Commit | 96fa96e198f9707285003075fbbce7db6a485112 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | Add linkmode_fill, use linkmode_*() in phylink/sfp code | expand |
On Wed, Nov 15, 2023 at 11:39:18AM +0000, Russell King (Oracle) wrote: > 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> Andrew
diff --git a/include/linux/linkmode.h b/include/linux/linkmode.h index 7303b4bc2ce0..287f590ed56b 100644 --- a/include/linux/linkmode.h +++ b/include/linux/linkmode.h @@ -10,6 +10,11 @@ static inline void linkmode_zero(unsigned long *dst) bitmap_zero(dst, __ETHTOOL_LINK_MODE_MASK_NBITS); } +static inline void linkmode_fill(unsigned long *dst) +{ + bitmap_fill(dst, __ETHTOOL_LINK_MODE_MASK_NBITS); +} + static inline void linkmode_copy(unsigned long *dst, const unsigned long *src) { bitmap_copy(dst, src, __ETHTOOL_LINK_MODE_MASK_NBITS);
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> --- include/linux/linkmode.h | 5 +++++ 1 file changed, 5 insertions(+)