From d539d64a23bbd64ba324eed595449bcc9c7be0cb Mon Sep 17 00:00:00 2001 From: Michael Neuling Date: Sat, 21 Dec 2024 21:38:50 +0530 Subject: include: sbi: Fix compiling with C23 enabled compilers C23 pre-defines bool so we need to gate our defines. Signed-off-by: Michael Neuling Reviewed-by: Anup Patel --- platform/generic/andes/andes_sbi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform') diff --git a/platform/generic/andes/andes_sbi.c b/platform/generic/andes/andes_sbi.c index 01a3c1ac..c3ea7f87 100644 --- a/platform/generic/andes/andes_sbi.c +++ b/platform/generic/andes/andes_sbi.c @@ -33,7 +33,7 @@ static bool andes_iocp_disabled(void) static bool andes_apply_iocp_sw_workaround(void) { - return andes_cache_controllable() & andes_iocp_disabled(); + return andes_cache_controllable() && andes_iocp_disabled(); } int andes_sbi_vendor_ext_provider(long funcid, -- cgit v1.3.1