Skip to content

Commit 67ba743

Browse files
philmdrth7680
authored andcommitted
qemu/atomic128: Include missing 'qemu/atomic.h' header
qatomic_cmpxchg__nocheck() is declared in "qemu/atomic.h". Include it in order to avoid when refactoring unrelated headers: In file included from ../../accel/tcg/tcg-runtime-gvec.c:22: In file included from include/exec/helper-proto-common.h:10: In file included from include/qemu/atomic128.h:61: host/include/generic/host/atomic128-cas.h.inc:23:11: error: call to undeclared function 'qatomic_cmpxchg__nocheck'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 23 | r.i = qatomic_cmpxchg__nocheck(ptr_align, c.i, n.i); | ^ 1 error generated. Signed-off-by: Philippe Mathieu-Daudé <[email protected]> Reviewed-by: Richard Henderson <[email protected]> Signed-off-by: Richard Henderson <[email protected]> Message-ID: <[email protected]>
1 parent 883cc6c commit 67ba743

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/qemu/atomic128.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#ifndef QEMU_ATOMIC128_H
1414
#define QEMU_ATOMIC128_H
1515

16+
#include "qemu/atomic.h"
1617
#include "qemu/int128.h"
1718

1819
/*

0 commit comments

Comments
 (0)