From patchwork Tue Dec 12 12:33:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 753061 Delivered-To: patch@linaro.org Received: by 2002:a5d:4c83:0:b0:333:3a04:f257 with SMTP id z3csp1875574wrs; Tue, 12 Dec 2023 04:36:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IEwZij7LJtARBYsCI0GQ8XKg1+hWoETwa3Jj0zmhLjs3moizIyixf7zM06dS88AVu5bIh+K X-Received: by 2002:a0c:d60a:0:b0:67a:9b28:118e with SMTP id c10-20020a0cd60a000000b0067a9b28118emr5330734qvj.55.1702384572155; Tue, 12 Dec 2023 04:36:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702384572; cv=none; d=google.com; s=arc-20160816; b=U4aEMq8r8CCXwNHheEb5Xy54PeB5zDmW1M7JyoM8NaAWQzuAleNRbtYy9f6+t73G5J NF6LFmo/gwWDAidFNctiforxnLDG5L1jp/qdcJ8WEx0OwVjUyzDEijzs0HZjvtnBP6CZ LcnM9yLlJ4ku/yqS8yc+yZJkTIzoZCor8rxppacqsSszGzTi30kANNBphGPSJyTfXVNK ocDuq6vOoiAtFZ3wb0ymMRa9MV/0Q3AeHkDjNRXiT4cz/gPL6V0cVS9nNQvqbizTLSfZ NBSQYDcoq+Y8xtwi9L8mJvgyElRCZpXNlFGGJvQWk+/lL7viFJWk8Bl2K8XmbM1/WV5E YMug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bTgCkgY7q586A21zu0JSDs5UTTpVyxNoAlIlHHAmSdk=; fh=vlFEGdij83GYetLrOUaCnR04sbYRvtckD5L7fw5192c=; b=psU9uyk7PG9n3Nwx/vjQre+v8ALTQvp2Y43coXNSQ9a6h3t1HO9HgmUNLtDx2yaAvu xqpDWrN1grI7weimRRmR+oMFuCrDch8d83+cxM5Co1xyCUDuVtZ7qk05tZlCEPCFu2oj 81gE1UqNtySCPilZoOYrDO/dIys8dkWwdPVn5EVz6H0JfTXM2fipF0r+bpYsdvo0P6Zl T61Nf2rjre7p4fYWCIMvqIrE/q79kiyQO+tjs1h+4y1Aw+mp9HenKScPxuc3y+pP0Kel w6j41umhVAebJXkoYEXA1VCnb/RPjNmrO2RElx+XJHS18EcQbZDcwapZHbG7o7rNYL58 Tqzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zwHbRq2a; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id pe19-20020a056214495300b0067a1d0732b5si8876900qvb.190.2023.12.12.04.36.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Dec 2023 04:36:12 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zwHbRq2a; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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) 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-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) 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) From: =?utf-8?q?Philippe_Mathieu-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_Benn=C3=A9e?= , Anton Johansson , Warner Losh , =?utf-8?q?Phil?= =?utf-8?q?ippe_Mathieu-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 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 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 undeclared function 'qatomic_cmpxchg__nocheck'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] r.i = qatomic_cmpxchg__nocheck(ptr_align, c.i, n.i); ^ Signed-off-by: Philippe Mathieu-Daudé --- 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/generic/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 +#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/generic/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 +#include "qemu/atomic.h" + #if defined(CONFIG_ATOMIC128) # define HAVE_ATOMIC128_RO 1 # define HAVE_ATOMIC128_RW 1