aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2023-01-20 23:46:05 +0000
committerWarner Losh <imp@FreeBSD.org>2023-01-20 23:46:05 +0000
commitc52c98e69a2e19879c20d3011eb1785de143dd5f (patch)
tree1da36a1ffd86d1719c35ea8c9bc09c8c6e509375
parent1761b09bf42d2842e82c1ac614c23d31c4d4c0dc (diff)
downloadsrc-c52c98e69a2e19879c20d3011eb1785de143dd5f.tar.gz
src-c52c98e69a2e19879c20d3011eb1785de143dd5f.zip
elf_common.h: Add parens to EF_ARM_EABI_VERSION macro
Due to my haste, I missed John's suggestion in the review that I add () here. Belatedly add them. It didn't matter for my test case, but there's some pathological uses where it might matter. Suggested by: jrtc23, jhb Sponsored by: Netflix
-rw-r--r--sys/sys/elf_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/elf_common.h b/sys/sys/elf_common.h
index 87b6d1fbaedd..657846d80111 100644
--- a/sys/sys/elf_common.h
+++ b/sys/sys/elf_common.h
@@ -332,7 +332,7 @@ typedef struct {
#define EF_ARM_EABI_VER3 0x03000000
#define EF_ARM_EABI_VER4 0x04000000
#define EF_ARM_EABI_VER5 0x05000000
-#define EF_ARM_EABI_VERSION(x) (x & EF_ARM_EABIMASK)
+#define EF_ARM_EABI_VERSION(x) ((x) & EF_ARM_EABIMASK)
#define EF_ARM_INTERWORK 0x00000004
#define EF_ARM_APCS_26 0x00000008
#define EF_ARM_APCS_FLOAT 0x00000010