diff options
| author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2025-09-08 17:12:46 -0300 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2025-09-08 17:12:46 -0300 |
| commit | c1ead4b4dfe0f643cfc66571ca7d2fa332eddd35 (patch) | |
| tree | a22ad44bdcc8ea38401cc129e75f15fb4c533317 /include/linux/phy.h | |
| parent | 75a7b9d29215c5aa813b9620f3c56817918f9f8c (diff) | |
| parent | f777d1112ee597d7f7dd3ca232220873a34ad0c8 (diff) | |
Merge remote-tracking branch 'torvalds/master' into perf-tools-next
To pick the fixes sent by Namhyung for tools/perf for v6.17-rc5 and get
closer to the other tools code that is used by tools/perf.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'include/linux/phy.h')
| -rw-r--r-- | include/linux/phy.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index 4c2b8b6e7187..bb45787d8684 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -169,6 +169,11 @@ static inline bool phy_interface_empty(const unsigned long *intf) return bitmap_empty(intf, PHY_INTERFACE_MODE_MAX); } +static inline unsigned int phy_interface_weight(const unsigned long *intf) +{ + return bitmap_weight(intf, PHY_INTERFACE_MODE_MAX); +} + static inline void phy_interface_and(unsigned long *dst, const unsigned long *a, const unsigned long *b) { |
