From c52c98e69a2e19879c20d3011eb1785de143dd5f Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 20 Jan 2023 16:46:05 -0700 Subject: [PATCH] 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 --- sys/sys/elf_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/sys/elf_common.h b/sys/sys/elf_common.h index 87b6d1fbaed..657846d8011 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