Using bit 4 divides the space of available bits strangely. Use bit 31 instead so that we have a better chance of keeping flag and mode bits separate in the long run.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -8,7 +8,7 @@ · 7 unmodified lines | |||
| 8 | #define SS_DISABLE 2 | 8 | #define SS_DISABLE 2 |
| 9 | 9 | ||
| 10 | /* bit-flags */ | 10 | /* bit-flags */ |
| 11 | #define SS_AUTODISARM (1 << 4) /* disable sas during sighandling */ | 11 | #define SS_AUTODISARM (1U << 31) /* disable sas during sighandling */ |
| 12 | /* mask for all SS_xxx flags */ | 12 | /* mask for all SS_xxx flags */ |
| 13 | #define SS_FLAG_BITS SS_AUTODISARM | 13 | #define SS_FLAG_BITS SS_AUTODISARM |
| 14 | 14 | ||