Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jul 2024 12:38:28 GMT
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 29f8816b668b - stable/13 - arm64/rockchip: Fix the build with GCC
Message-ID:  <202407151238.46FCcS8p061547@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by andrew:

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

commit 29f8816b668bfe7765b819eea32a97091d41b5f8
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:34:29 +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 765e03666eeb..4796743bea6e 100644
--- a/sys/arm64/rockchip/rk_gpio.c
+++ b/sys/arm64/rockchip/rk_gpio.c
@@ -71,7 +71,7 @@
 #define	RK_GPIO_DEFAULT_CAPS	(GPIO_PIN_INPUT | GPIO_PIN_OUTPUT |	\
     GPIO_PIN_PULLUP | GPIO_PIN_PULLDOWN)
 
-#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 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202407151238.46FCcS8p061547>