Shifting signed 32-bit value by 31 bits is undefined. Changing most significant bit to unsigned. Changes included in v2: - use subsystem specific subject lines - CC required mailing lists
Showing the changes to include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -123,7 +123,7 @@ struct tpacket_auxdata { · 122 unmodified lines | ||
| 123 | 123 | /* Rx and Tx ring - header status */ |
| 124 | 124 | #define TP_STATUS_TS_SOFTWARE (1 << 29) |
| 125 | 125 | #define TP_STATUS_TS_SYS_HARDWARE (1 << 30) /* deprecated, never set */ |
| 126 | −#define TP_STATUS_TS_RAW_HARDWARE (1 << 31) | |
| 126 | +#define TP_STATUS_TS_RAW_HARDWARE (1U << 31) | |
| 127 | 127 | |
| 128 | 128 | /* Rx ring - feature request bits */ |
| 129 | 129 | #define TP_FT_REQ_FILL_RXHASH 0x1 |