From nobody Fri Jan 20 23:49:57 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NzGSj3f9Sz2swP7; Fri, 20 Jan 2023 23:49:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NzGSj38H2z3vBL; Fri, 20 Jan 2023 23:49:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674258597; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=d/3KiZGf/mHLOky/RjALo4Jw7/WbtoXh6xEj8shEiys=; b=QXZjTIVsXS9ubSBsoiPOGL8R+kYQ9+/jM2NaPpHH3FwGDalr5vlBp5yke4H4jQzGoqBfd3 of+W2p8Yo25pNUUtKNxj1WyiIYbklfl7DSHT+yLZPtSc+Rh6WyGhhdLtooNM4KhmeEEHwu o8OgFO9KDrh6mgM4zaA0f5jYfcCd/mEqlQXwlm33FW7Zupi3RGHKdEbySpIeTOjJ97E+kC M9hYXBOo/QBZl4l7/r1SvxCkOT0NQkWfJ3oQk9sLNlarwBDYx74CIRvBAUhVOiEj1juxGZ 1dem4T5HzVp5UAPPauCViEBna8dcf/qEzwVeYBy7UJrcYv6AI1QgUBQK2lS4LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674258597; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=d/3KiZGf/mHLOky/RjALo4Jw7/WbtoXh6xEj8shEiys=; b=UTNZPQdrRyaC3KtXEPgctNoj0+dbO1Otlaeu5IsODDioA3E+y0ujc4euFEGd1rZ8pdJHmg WkPxaRN4KtqVdPQ8B1+NGFaQZASP/A9dNPBbNtKK5N/e/jFe7Uj1e7kFFUOASHz2dvjqTt IxWUUN8j9R8TrEfMxu5aDUGn/iJdPdOQSN9ReiDUJfbcqN3Go0dFZ6xvnn3zQSUbDH+2ek tlOd1aFu36teqerSv9+9kHRhHNs3/IL0mr4IXbhrIOFxjbs4daZbGkhgKnWSixDFCii/CM IG//aVJHSSD0vj1rGKWKQJHYY4SWjefJ7XkNbI6o4B7mYKi7HtxmbyxiKXIXXA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674258597; a=rsa-sha256; cv=none; b=RozBh/6+fMGOjYo18GHHSUvq0WQYdgShuP9bEzXEVlgdNCf51USThksU7Gw0CjpWbM+dEu wzCFoEpcaUxQgCewKkOtYH3X0z+eJuooc90reZKfmXDwid+bYUPc6nPcnJh2/+PSmPeirl YKFA5a0BLKArFXzK/74qS8303b2C61hOk9jijKkOOYSeBWhNDvj1tTPPfFjHUCeLiLBXUY gqvu1ntPfpf5nBjasVb3Myu1sbg/TqQWdOWmVL/D/kv0SNA8/P1DqMxEmLLqA81tWBBnWX TFhGO+w3OZCZrgRYd1DWsjln5VBWqd2rGJOG3yb3M2k7aU/RlQ979c+11a1O4w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NzGSj2FgzzpLS; Fri, 20 Jan 2023 23:49:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30KNnvpf088230; Fri, 20 Jan 2023 23:49:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30KNnvPw088229; Fri, 20 Jan 2023 23:49:57 GMT (envelope-from git) Date: Fri, 20 Jan 2023 23:49:57 GMT Message-Id: <202301202349.30KNnvPw088229@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: c52c98e69a2e - main - elf_common.h: Add parens to EF_ARM_EABI_VERSION macro List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c52c98e69a2e19879c20d3011eb1785de143dd5f Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=c52c98e69a2e19879c20d3011eb1785de143dd5f commit c52c98e69a2e19879c20d3011eb1785de143dd5f Author: Warner Losh AuthorDate: 2023-01-20 23:46:05 +0000 Commit: Warner Losh 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