From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: qemu-devel@nongnu.org
Cc: "Richard Henderson" <richard.henderson@linaro.org>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>
Subject: [PATCH 3/3] qemu/atomic128: Include missing 'qemu/atomic.h' header
Date: Thu, 12 Dec 2024 15:10:18 +0100 [thread overview]
Message-ID: <20241212141018.59428-4-philmd@linaro.org> (raw)
In-Reply-To: <20241212141018.59428-1-philmd@linaro.org>
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é <philmd@linaro.org>
---
include/qemu/atomic128.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/qemu/atomic128.h b/include/qemu/atomic128.h
index 448fb644799..31e5c48d8fa 100644
--- a/include/qemu/atomic128.h
+++ b/include/qemu/atomic128.h
@@ -13,6 +13,7 @@
#ifndef QEMU_ATOMIC128_H
#define QEMU_ATOMIC128_H
+#include "qemu/atomic.h"
#include "qemu/int128.h"
/*
--
2.45.2
next prev parent reply other threads:[~2024-12-12 14:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-12 14:10 [PATCH 0/3] qemu/atomic: Header cleanups Philippe Mathieu-Daudé
2024-12-12 14:10 ` [PATCH 1/3] qemu/atomic: Rename atomic128-cas.h headers using .h.inc suffix Philippe Mathieu-Daudé
2024-12-12 15:02 ` Richard Henderson
2024-12-12 15:09 ` Philippe Mathieu-Daudé
2024-12-12 15:11 ` Richard Henderson
2024-12-12 15:17 ` Philippe Mathieu-Daudé
2024-12-12 15:20 ` Richard Henderson
2024-12-12 14:10 ` [PATCH 2/3] qemu/atomic: Rename atomic128-ldst.h " Philippe Mathieu-Daudé
2024-12-12 14:10 ` Philippe Mathieu-Daudé [this message]
2024-12-12 15:03 ` [PATCH 3/3] qemu/atomic128: Include missing 'qemu/atomic.h' header Richard Henderson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241212141018.59428-4-philmd@linaro.org \
--to=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.