History

net: phy: improve definition of __ETHTOOL_LINK_MODE_MASK_NBITS

The way to define __ETHTOOL_LINK_MODE_MASK_NBITS seems to be overly complicated, go with a standard approach instead. Whilst we're at it, move the comment to the right place. v2: - rebased

Heiner Kallweit committed 7 years ago

Commit e728fdf1 parent fad42712 files · +9 −12Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/ethtool.h+0−4
@@ -98,10 +98,6 @@ static inline u32 ethtool_rxfh_indir_default(u32 index, u32 n_rx_rings) · 97 unmodified lines
98 return index % n_rx_rings;98 return index % n_rx_rings;
99}99}
100 100
101/* number of link mode bits/ulongs handled internally by kernel */
102#define __ETHTOOL_LINK_MODE_MASK_NBITS \
103 (__ETHTOOL_LINK_MODE_LAST + 1)
104
105/* declare a link mode bitmap */101/* declare a link mode bitmap */
106#define __ETHTOOL_DECLARE_LINK_MODE_MASK(name) \102#define __ETHTOOL_DECLARE_LINK_MODE_MASK(name) \
107 DECLARE_BITMAP(name, __ETHTOOL_LINK_MODE_MASK_NBITS)103 DECLARE_BITMAP(name, __ETHTOOL_LINK_MODE_MASK_NBITS)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t