This constant was previously an unsigned long, but was changed into an int in commit 433c38f40f6a ("arm64: mte: change ASYNC and SYNC TCF settings into bitfields"). This ended up causing spurious unsigned-signed comparison warnings in expressions such as: (x & PR_MTE_TCF_MASK) != PR_MTE_TCF_NONE Therefore, change it back into an unsigned long to silence these warnings.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -235,7 +235,7 @@ struct prctl_mm_map { · 234 unmodified lines | ||
| 235 | 235 | #define PR_GET_TAGGED_ADDR_CTRL 56 |
| 236 | 236 | # define PR_TAGGED_ADDR_ENABLE (1UL << 0) |
| 237 | 237 | /* MTE tag check fault modes */ |
| 238 | −# define PR_MTE_TCF_NONE 0 | |
| 238 | +# define PR_MTE_TCF_NONE 0UL | |
| 239 | 239 | # define PR_MTE_TCF_SYNC (1UL << 1) |
| 240 | 240 | # define PR_MTE_TCF_ASYNC (1UL << 2) |
| 241 | 241 | # define PR_MTE_TCF_MASK (PR_MTE_TCF_SYNC | PR_MTE_TCF_ASYNC) |