From patchwork Thu Jan 11 16:24:42 2024 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: 761861 Delivered-To: patch@linaro.org Received: by 2002:a5d:6e02:0:b0:337:62d3:c6d5 with SMTP id h2csp2484523wrz; Thu, 11 Jan 2024 08:25:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IEx0GvvD6yU6lKIr+yTm3HNOrmvlg3R05cTJIPIR8TlKa8wT5rKkJzSPizL5tWr2JQV/FLi X-Received: by 2002:a05:622a:45:b0:429:9a9b:1c41 with SMTP id y5-20020a05622a004500b004299a9b1c41mr872399qtw.94.1704990320870; Thu, 11 Jan 2024 08:25:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704990320; cv=none; d=google.com; s=arc-20160816; b=OMhpWlmNx0GLIAQWebjhz1dtSV3uFgxkSa9Zpi5CFT3iLdqYuPz+gujOP6LCWDFpIe zvsRcdwqg5VICBcK2gnEoNj2oaaQXgqG+g29J60FEY73fyh9yCowjxdtUxM9PRr4hWtV XsQpGXwtOUADQa0eD+ygY1ean02nzbFDEsM2efmlF8W7h7o2QjvpPeLNz69ftYbOD+D0 kwIwdZMzoosQKtsu6YB+2I9vjdswZJqFJEDRknKBWaUU56i+0pbRCJ4HmH/492uVr+Pd Oq/lIxSfymcTR8+Qy1Q4PpZ11LnQub/7nZ2fTx81++xV2+kQclRovaI0qfoWRsG0suVS GqZQ== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=iBi25ZUfbpHVLkBsSCP+3iFKheXkRA4Fy++onwN3ifw=; fh=fz3DJMUXEzejNv0JWYQ+xa02BmrDN+/I7HIv5ot61VY=; b=VVBfl8LQ5CeDNyqgtGLmmKqP2C7vULCwjOkHKF13Nw32yuX/ilBSlBKQkEAHvMNuNI pyvgnUr5zh/dcpV+WWE879pHuoGQ7JpUV8BpoaJzTrDcYjJE9f+u80Fo6BIj0CQBd7fl qHMWtFxrYtnebfejq9zEqM25r1pDFQ7TlahMr6xqHOQRDO0DA4OkqBxyKps8ea+hfFjx m08J8fjkVTMjBNKgoQEg/P+z/agoxDxKovM2GbmVouC/EXoKtLEzKNjbxrlIH+YT5L4c 7ELQjyNMTE5VbKF8rCLmkXjKGRqQ/Drh5dlHdLapiy8AqU+m0g10hdq+jmNF76NY7QdE YO1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vzHgg568; 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 f15-20020ac87f0f000000b00429af028843si1217235qtk.158.2024.01.11.08.25.20 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Jan 2024 08:25:20 -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=vzHgg568; 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 1rNxrO-0004Nq-3f; Thu, 11 Jan 2024 11:24:50 -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 1rNxrM-0004NT-L1 for qemu-devel@nongnu.org; Thu, 11 Jan 2024 11:24:48 -0500 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rNxrK-00018y-Tv for qemu-devel@nongnu.org; Thu, 11 Jan 2024 11:24:48 -0500 Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-50e766937ddso6432118e87.3 for ; Thu, 11 Jan 2024 08:24:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704990284; x=1705595084; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=iBi25ZUfbpHVLkBsSCP+3iFKheXkRA4Fy++onwN3ifw=; b=vzHgg568jXPN7bqv4EarFoXedwStlZc7oNsmv3AU8Ny4MZDdnLS4z2oMLsP9xQGT5I TlezR3S/vrik3jJaDFwSJe/jgWnZgy+7bEBPOcRr4r+2g1brWfRFIRIZ2tr6ECg1MOA2 BxWYIjmpsXFXSa0EskwdGLoO9CNu6F/VXZPfnlWGgQlyrP9/H9sCzh1mq2rcMMlMQQwN yrgTIt+CZqeR5nsBYOKQOHN9rZtPc4spaqCZaa81InrmE/TyZDl9TrHw5j2LHbHnScQu 2v6qEf/px7H8x+ay4UEKH5dNqZLXWk59l6LgS9mCjBEhlLyyfHX1sjjr1prbt3EDHzWf DmnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704990284; x=1705595084; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iBi25ZUfbpHVLkBsSCP+3iFKheXkRA4Fy++onwN3ifw=; b=wH3kvp1/k/QQVqkcNd3u/pxH1Dhr0qlGw6TVtgz0MH4kNxIJztV36eYVRa9K5CPa/q bZIrrCeii9NKduoGZGnIaqe85yfagMgT1Uyyx2vHR6HUsYZwbyHYbsFUtzj6BuM4be2e AQpOaAHDJ9/er9P3FOBYsJc78OU8b3zIoG9jAEjGsemWwS6usY1/vQJ3KXOlSchYqNKQ KFWXjJPq8IbdlSRd93GuMmdublPcPWRjKLKN1lNamtybb/GaU3YATbBoT4ADeqlxeerx Cd4lBgueizFO4BPwHd97g95VuSQJrlOvF7Ae5OAQCMhysq9xaD8y/kv0ZCeHPvUFHBWa EP9A== X-Gm-Message-State: AOJu0YwuTv/cpctIrFlob/dzfLJGIE+eRn/R/jeR7+bmjMgWZX+Q8roD 3Z1g0KSW4b2zRH7ZgboTAD3qQuTGoLa26kaWx2JKZTFy75hMtA== X-Received: by 2002:a05:6512:3ca4:b0:50e:3812:c075 with SMTP id h36-20020a0565123ca400b0050e3812c075mr862736lfv.117.1704990284664; Thu, 11 Jan 2024 08:24:44 -0800 (PST) Received: from m1x-phil.lan ([176.187.202.145]) by smtp.gmail.com with ESMTPSA id l13-20020a1709065a8d00b00a298c766585sm756127ejq.57.2024.01.11.08.24.43 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 11 Jan 2024 08:24:44 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= Subject: [PATCH] accel/tcg: Include missing headers to 'tb-jmp-cache.h' Date: Thu, 11 Jan 2024 17:24:42 +0100 Message-ID: <20240111162442.43755-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::12a; envelope-from=philmd@linaro.org; helo=mail-lf1-x12a.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 Due to missing headers, when including "tb-jmp-cache.h" we might get: accel/tcg/tb-jmp-cache.h:21:21: error: field ‘rcu’ has incomplete type 21 | struct rcu_head rcu; | ^~~ accel/tcg/tb-jmp-cache.h:24:9: error: unknown type name ‘vaddr’ 24 | vaddr pc; | ^~~~~ Add the missing "qemu/rcu.h" and "exec/cpu-common.h" headers. Signed-off-by: Philippe Mathieu-Daudé Acked-by: Richard Henderson --- accel/tcg/tb-jmp-cache.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/accel/tcg/tb-jmp-cache.h b/accel/tcg/tb-jmp-cache.h index bb424c8a05..b13a02e45d 100644 --- a/accel/tcg/tb-jmp-cache.h +++ b/accel/tcg/tb-jmp-cache.h @@ -9,6 +9,9 @@ #ifndef ACCEL_TCG_TB_JMP_CACHE_H #define ACCEL_TCG_TB_JMP_CACHE_H +#include "qemu/rcu.h" +#include "exec/cpu-common.h" + #define TB_JMP_CACHE_BITS 12 #define TB_JMP_CACHE_SIZE (1 << TB_JMP_CACHE_BITS)