The branch main has been updated by imp:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=c52c98e69a2e19879c20d3011eb1785de143dd5f

commit c52c98e69a2e19879c20d3011eb1785de143dd5f
Author:     Warner Losh <i...@freebsd.org>
AuthorDate: 2023-01-20 23:46:05 +0000
Commit:     Warner Losh <i...@freebsd.org>
CommitDate: 2023-01-20 23:46:05 +0000

    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 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

Reply via email to