summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorMichael Neuling <michaelneuling@tenstorrent.com>2024-12-21 19:08:50 +0300
committerAnup Patel <anup@brainfault.org>2024-12-21 19:08:50 +0300
commitd539d64a23bbd64ba324eed595449bcc9c7be0cb (patch)
treebc44c2e159e3a64bd0b29de45392f0a0f91ab30d /platform
parent91196d76b7919fefa382b65f2416f4327435e3a1 (diff)
downloadopensbi-d539d64a23bbd64ba324eed595449bcc9c7be0cb.tar.xz
include: sbi: Fix compiling with C23 enabled compilers
C23 pre-defines bool so we need to gate our defines. Signed-off-by: Michael Neuling <michaelneuling@tenstorrent.com> Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'platform')
-rw-r--r--platform/generic/andes/andes_sbi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/generic/andes/andes_sbi.c b/platform/generic/andes/andes_sbi.c
index 01a3c1a..c3ea7f8 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,