git: 0fdc0f361482 - stable/14 - arm64/rockchip: Fix the build with GCC

From: Andrew Turner <andrew_at_FreeBSD.org>
Date: Mon, 15 Jul 2024 12:38:26 UTC
The branch stable/14 has been updated by andrew:

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

commit 0fdc0f361482267646f033a9daa6fd564be3a209
Author:     Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2024-05-22 08:19:19 +0000
Commit:     Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2024-07-15 12:27:30 +0000

    arm64/rockchip: Fix the build with GCC
    
    We were missing brackets in GPIO_FLAGS_PINCTRL. Without them GCC
    complains a use is ambiguous. Fix by adding the needed brackets.
    
    Reviewed by:    manu, brooks, imp, jhb, emaste
    Sponsored by:   Arm Ltd
    Differential Revision:  https://reviews.freebsd.org/D45264
    
    (cherry picked from commit 4f012d7a7a473d2486f01ce355fd2c79c3d43db6)
---
 sys/arm64/rockchip/rk_gpio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/arm64/rockchip/rk_gpio.c b/sys/arm64/rockchip/rk_gpio.c
index c0d35fae3b7b..b1175963a5e4 100644
--- a/sys/arm64/rockchip/rk_gpio.c
+++ b/sys/arm64/rockchip/rk_gpio.c
@@ -77,7 +77,7 @@ enum gpio_regs {
     GPIO_INTR_EDGE_RISING | GPIO_INTR_EDGE_FALLING | \
     GPIO_INTR_LEVEL_HIGH | GPIO_INTR_LEVEL_LOW)
 
-#define	GPIO_FLAGS_PINCTRL	GPIO_PIN_PULLUP | GPIO_PIN_PULLDOWN
+#define	GPIO_FLAGS_PINCTRL	(GPIO_PIN_PULLUP | GPIO_PIN_PULLDOWN)
 #define	RK_GPIO_MAX_PINS	32
 
 struct pin_cached {