History

arm64: mte: change PR_MTE_TCF_NONE back into an unsigned long

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.

Peter Collingbourne committed 5 years ago

Commit aedad3e1 parent 34688c72 files · +2 −2Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/prctl.h+1−1
@@ -235,7 +235,7 @@ struct prctl_mm_map { · 234 unmodified lines
235235 #define PR_GET_TAGGED_ADDR_CTRL 56
236236 # define PR_TAGGED_ADDR_ENABLE (1UL << 0)
237237 /* MTE tag check fault modes */
238−# define PR_MTE_TCF_NONE 0
238+# define PR_MTE_TCF_NONE 0UL
239239 # define PR_MTE_TCF_SYNC (1UL << 1)
240240 # define PR_MTE_TCF_ASYNC (1UL << 2)
241241 # define PR_MTE_TCF_MASK (PR_MTE_TCF_SYNC | PR_MTE_TCF_ASYNC)