From: Russell King (Oracle) Date: Wed, 15 Nov 2023 11:39:18 +0000 (+0000) Subject: net: linkmode: add linkmode_fill() helper X-Git-Tag: v6.8-rc1~131^2~323^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=96fa96e198f9707285003075fbbce7db6a485112;p=thirdparty%2Flinux.git 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) Reviewed-by: Andrew Lunn Signed-off-by: David S. Miller --- diff --git a/include/linux/linkmode.h b/include/linux/linkmode.h index 7303b4bc2ce01..287f590ed56be 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);