From nobody Wed Nov 19 20:14:43 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1702384572; cv=none; d=zohomail.com; s=zohoarc; b=gmna5l+ZzuUzEY/V5m89T14CZuGJD627DGDwlm9yWFsC0/S+CpeUwrADwc8UKw8ptRHNZMcdTLakxnLTgxnneuKPcoOhTxw17ssSYPFkVxvR11oAESXqmL5LcONNlt2HiDuR5vFmRhyA/KRWCZGjCJA2DuODEK5IfrVVo7Hm++s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1702384572; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=bTgCkgY7q586A21zu0JSDs5UTTpVyxNoAlIlHHAmSdk=; b=Woy0myVd92heZcyXz0ddwygZaccY1ihYpKUcKIpLYWEBvpg+J5/u3cWbkpx/Zelem6LoNQ6MLGhhJSsQBUSd6hSCA1K/UOG85D8o+OgYj5sU6mzekldSiUhKDx3BmtVR3afYwkaOJ5A9J0qNHXHTZ+BfEt2/TaVIHHHAz08R4XI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1702384572526897.0852522037644; Tue, 12 Dec 2023 04:36:12 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rD1yp-0008J9-1o; Tue, 12 Dec 2023 07:35:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rD1yk-0008GI-2k for qemu-devel@nongnu.org; Tue, 12 Dec 2023 07:35:15 -0500 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rD1yh-0006q7-3A for qemu-devel@nongnu.org; Tue, 12 Dec 2023 07:35:13 -0500 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a22eba5a290so61159566b.3 for ; Tue, 12 Dec 2023 04:35:09 -0800 (PST) Received: from m1x-phil.lan ([176.176.175.193]) by smtp.gmail.com with ESMTPSA id wb8-20020a170907d50800b00a1cb351dd4fsm6233385ejc.9.2023.12.12.04.35.06 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 12 Dec 2023 04:35:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702384508; x=1702989308; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bTgCkgY7q586A21zu0JSDs5UTTpVyxNoAlIlHHAmSdk=; b=zwHbRq2awpGt5JlyY4dKfQyVMATxJjwGo5yHedO62OqPLt1NnnPFBpuY3utoy8ts7m FoL1xP+8BS2vEd2RxtLiGLaYbfK0I4meFcOY7wy8L5CTyxXEa54wnn62SujcXNthYIz7 XYaaq9GLC//gVVzAA9SCfdXfUACS/vOiFXjdOLW3qzMzJM7hQr673DP1dgsB2jevmsl1 Qb0sYw11KV8XVOwMuQ/5mEaxtProPlnZEMC50+GwfpYJV+b84UMqQ/yzEbEgQ0mxWlOe iMyLiz9t9MjiwRmIf+FjsOSm3W+qbpmuqKnXFLzYrAW88t2S/mKN7eSc3Rh7qZavKk6u mARQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702384508; x=1702989308; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bTgCkgY7q586A21zu0JSDs5UTTpVyxNoAlIlHHAmSdk=; b=Bw3hXN5lgHBrhXW3PCBq48CQZOApZ1+59F7Y0+UFvIbrQCBQy5vJzNUk2QJqEGNYVN vhpXd7eM3dkoPmYDzmy1zDDqkLpbnxadQTl8t1Iv8CCGnWyohZceAiRlN9D6sVuwW0u/ viX8kNrsR99Aa6hhf/nkoimoS6yDzypQv0x3NN6p+xf+iK5zCJE9K5z+TJ2iX7MwXUQQ nOTAf4p8O1AevXhiyac4oXU0OTGvewxfhEX+8/8B+WmCwKnfI/0Iev8ks3lGvJPIV6Bi ucylhOm+ma+O/SkLQRQPobbRz2+AU6kWy0MbPUzcsw9W9MwDzUENDFvLekwparhyiUm9 Z5aQ== X-Gm-Message-State: AOJu0Yw15ucyIvNz6fYwqakQlA6x27Qm9Y09+x6q2O/6ciYOCl9kvhTn 3lnr22cDXzgyV5LrbydK1kgIFHXfmyMQBr2+MKmUog== X-Google-Smtp-Source: AGHT+IEt16zUWRyTHtNuGb/0o+4ATMzXgBovHPXmuXe8Ekl+s1pTnuW+RElZyl/OHB8C6idjWqn2/A== X-Received: by 2002:a17:906:51ca:b0:a19:a19b:55db with SMTP id v10-20020a17090651ca00b00a19a19b55dbmr2697065ejk.107.1702384508710; Tue, 12 Dec 2023 04:35:08 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Claudio Fontana , qemu-ppc@nongnu.org, qemu-s390x@nongnu.org, Richard Henderson , qemu-riscv@nongnu.org, Brian Cain , Thomas Huth , Paolo Bonzini , qemu-arm@nongnu.org, Manos Pitsidianakis , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Anton Johansson , Warner Losh , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v2 09/23] host/atomic128: Include missing 'qemu/atomic.h' header Date: Tue, 12 Dec 2023 13:33:45 +0100 Message-ID: <20231212123401.37493-10-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231212123401.37493-1-philmd@linaro.org> References: <20231212123401.37493-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::62f; envelope-from=philmd@linaro.org; helo=mail-ej1-x62f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1702384574344100003 qatomic_cmpxchg__nocheck(), qatomic_read__nocheck(), qatomic_set__nocheck() are defined in "qemu/atomic.h". Include it in order to avoid: In file included from include/exec/helper-proto.h:10: In file included from include/exec/helper-proto-common.h:10: In file included from include/qemu/atomic128.h:61: In file included from host/include/aarch64/host/atomic128-cas.h:16: host/include/generic/host/atomic128-cas.h:23:11: error: call to undeclare= d function 'qatomic_cmpxchg__nocheck'; ISO C99 and later do not support imp= licit function declarations [-Wimplicit-function-declaration] r.i =3D qatomic_cmpxchg__nocheck(ptr_align, c.i, n.i); ^ Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- host/include/generic/host/atomic128-cas.h | 2 ++ host/include/generic/host/atomic128-ldst.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/host/include/generic/host/atomic128-cas.h b/host/include/gener= ic/host/atomic128-cas.h index 6b40cc2271..4824f14659 100644 --- a/host/include/generic/host/atomic128-cas.h +++ b/host/include/generic/host/atomic128-cas.h @@ -11,6 +11,8 @@ #ifndef HOST_ATOMIC128_CAS_H #define HOST_ATOMIC128_CAS_H =20 +#include "qemu/atomic.h" + #if defined(CONFIG_ATOMIC128) static inline Int128 ATTRIBUTE_ATOMIC128_OPT atomic16_cmpxchg(Int128 *ptr, Int128 cmp, Int128 new) diff --git a/host/include/generic/host/atomic128-ldst.h b/host/include/gene= ric/host/atomic128-ldst.h index 691e6a8531..12e4aca2da 100644 --- a/host/include/generic/host/atomic128-ldst.h +++ b/host/include/generic/host/atomic128-ldst.h @@ -11,6 +11,8 @@ #ifndef HOST_ATOMIC128_LDST_H #define HOST_ATOMIC128_LDST_H =20 +#include "qemu/atomic.h" + #if defined(CONFIG_ATOMIC128) # define HAVE_ATOMIC128_RO 1 # define HAVE_ATOMIC128_RW 1 --=20 2.41.0