Skip to contentSkip to conversation

ethtool: mark mask values as ULL values

PATCH Applied Jacob Keller 2 participants 2 messages Nov 29, 2016 – Nov 30, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ethtool: mark mask values as ULL values

If compiling with signed checks enabled, there will be warnings generated by the ETHTOOL_RX_FLOW_SPEC_RING(_VF) masks. These are currently marked as signed constants, which will generate warnings when masking with unsigned values. Avoid this by marking them explicitly as unsigned values.

---
 include/uapi/linux/ethtool.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/uapi/linux/ethtool.h +2 -2
index ed650eef9e54..a716112b2b01 100644
@@ -891,8 +891,8 @@ struct ethtool_rx_flow_spec {
  * space for this at this time. If a future patch consumes the next
  * byte it should be aware of this possiblity.
  */
-#define ETHTOOL_RX_FLOW_SPEC_RING	0x00000000FFFFFFFFLL
-#define ETHTOOL_RX_FLOW_SPEC_RING_VF	0x000000FF00000000LL
+#define ETHTOOL_RX_FLOW_SPEC_RING	0x00000000FFFFFFFFULL
+#define ETHTOOL_RX_FLOW_SPEC_RING_VF	0x000000FF00000000ULL
 #define ETHTOOL_RX_FLOW_SPEC_RING_VF_OFF 32
 static inline __u64 ethtool_get_flow_spec_ring(__u64 ring_cookie)
 {
Signature · 1 line
2.11.0.rc2.152.g4d04e67
maintainer Applied
#1 lore raw

From: Jacob Keller <[email protected]>
Date: Tue, 29 Nov 2016 15:08:47 -0800

Quoted 7 lines

If compiling with signed checks enabled, there will be warnings generated by the ETHTOOL_RX_FLOW_SPEC_RING(_VF) masks. These are currently marked as signed constants, which will generate warnings when masking with unsigned values. Avoid this by marking them explicitly as unsigned values.

Applied, thanks.