From nobody Sun Apr 28 21:58:19 2024 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=1669816656; cv=none; d=zohomail.com; s=zohoarc; b=L5lzphVlJrMyY+h1po0nz+ltpZPd6BtDfisWZ+qBOvdoU2tRHupwJ4EbruRrcftCBZMgb4BNGh0Ev+dUncB/LWGmFDL2ilOKg+LtNRq8ZdHEmLVfVy1MVXNEURiKq1Ott+6HkBO9LC7SDM46A0Vxlu+5tYq3FGGbuJyDT2OYz54= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1669816656; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=aBdBv82UGKe7lpbkxdfAYLFcJnkb42yafjZ/CJWDlQw=; b=Fwa61c0JyLpaSokjotWLcPRZBOv+6yQSe9FfAdmHwwnlNO5HKN6V2biUbhC/XVHwq4buIYYsh7r0vdXGLgIyHAA7wXDBd14ANuQAdY33pj68FZqZe9MTVujaW1JJEuTlmUwikg1aO47kJRDVIHWTLdWC5zqOGaEErwOW2KI94C4= 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 1669816656848479.8387817521382; Wed, 30 Nov 2022 05:57:36 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p0NaC-0001u1-7J; Wed, 30 Nov 2022 08:57:04 -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 1p0Na8-0001r2-J7 for qemu-devel@nongnu.org; Wed, 30 Nov 2022 08:57:01 -0500 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p0Na1-0004Qk-G8 for qemu-devel@nongnu.org; Wed, 30 Nov 2022 08:56:58 -0500 Received: by mail-wm1-x331.google.com with SMTP id h4-20020a1c2104000000b003d0760654d3so47459wmh.4 for ; Wed, 30 Nov 2022 05:56:53 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id y13-20020a5d614d000000b00241727795c4sm1968825wrt.63.2022.11.30.05.56.47 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 30 Nov 2022 05:56:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=aBdBv82UGKe7lpbkxdfAYLFcJnkb42yafjZ/CJWDlQw=; b=DnWVCEd36Pwgn0clhpGFlxpVZvUJ3kiDclFVU6NWzUtB8T4IUg3cy9g0rh3PdCTY+g 0mLMxQeAJzry8qNDjDek8yW/ou233XtHF2U+udpsj9hwPAU+juBnA9Qr/51GpG6vm1nB c3A37oKpQ0CDRIpr0sDMaGAl/+EX+EfqkZFcz/rzhaxxDPuFC8N0LjxGbSPYdM9sYq9o /36NZ13uh09ybVEBicC3ThQOo2SXVwTqCPXBKrgQtwVadPM2Yq9HgLxeCaMyoknuwMb4 xKPVW2+J6IU8z4vHbZgKmf6qlWrkbSw1vJxqm94SjUzLyC0N8S5r6cMO45Ld7nh48aVn IKtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=aBdBv82UGKe7lpbkxdfAYLFcJnkb42yafjZ/CJWDlQw=; b=sAlJAJ/GYpai6BTfJFhL8vFjSXjHAlKdE/Kg4X5CU7XOxmpjbrf+Wtc3T+6BEue9AN rcLWJGPqWVU4MGDmfdPhqSIG1u7v1KO0nIIMp60ZGDlxAnlkabEoNNDhu93SOQETQJI+ Th1UxgZdFsaIJVfQQtRZWwUIClIrxK0A66CSDOBedhDuozuhzejb9GgTMsZywnB1QZUz pv+XTDzKB21VgjStfiQ1dQZkUNhh74gfbV3Sw5zjEWwNTftT+MNs3KLefP2z72sHvpWd qdmIDxv8wR9iX6rERGBUidFaHpXZmdBgBfLpjp14t3gECMvVBjafEZcNS78BOSMQYQfY 2bEw== X-Gm-Message-State: ANoB5plbvr4uCXbIDTAvBPW2zDLMebiaaO39iG+HAle77tNKAMVI+nrp NTDm7hjrviNgkCVY1CExp57mT4j5Al5cQNOl X-Google-Smtp-Source: AA0mqf40UMU88qOq0t541RY2jEenif7y5Oqd+sn0e3ovPhTQg+MsBB03rd3ubHmy4zsgWeJgPiD8Tw== X-Received: by 2002:a05:600c:5254:b0:3d0:75d5:c64b with SMTP id fc20-20020a05600c525400b003d075d5c64bmr1549819wmb.12.1669816608332; Wed, 30 Nov 2022 05:56:48 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Eduardo Habkost , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Thomas Huth , Yanan Wang , Paolo Bonzini , Marcel Apfelbaum Subject: [PATCH-for-8.0 1/2] typedefs: Forward-declare AccelState Date: Wed, 30 Nov 2022 14:56:40 +0100 Message-Id: <20221130135641.85328-2-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221130135641.85328-1-philmd@linaro.org> References: <20221130135641.85328-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::331; envelope-from=philmd@linaro.org; helo=mail-wm1-x331.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 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: 1669816658744100001 Forward-declare AccelState in "qemu/typedefs.h" so structures using a reference of it (like MachineState in "hw/boards.h") don't have to include "qemu/accel.h". Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Fabiano Rosas Reviewed-by: Richard Henderson --- include/qemu/accel.h | 4 ++-- include/qemu/typedefs.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/qemu/accel.h b/include/qemu/accel.h index ce4747634a..e84db2e3e5 100644 --- a/include/qemu/accel.h +++ b/include/qemu/accel.h @@ -26,10 +26,10 @@ #include "qom/object.h" #include "exec/hwaddr.h" =20 -typedef struct AccelState { +struct AccelState { /*< private >*/ Object parent_obj; -} AccelState; +}; =20 typedef struct AccelClass { /*< private >*/ diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h index 688408e048..073abab998 100644 --- a/include/qemu/typedefs.h +++ b/include/qemu/typedefs.h @@ -21,6 +21,7 @@ * Incomplete struct types * Please keep this list in case-insensitive alphabetical order. */ +typedef struct AccelState AccelState; typedef struct AdapterInfo AdapterInfo; typedef struct AddressSpace AddressSpace; typedef struct AioContext AioContext; --=20 2.38.1 From nobody Sun Apr 28 21:58:19 2024 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=1669816657; cv=none; d=zohomail.com; s=zohoarc; b=bsEXgD4mmTxgS1yrfC+TuQEcz8KjNBmoDt5tKD6EgMWV9UXHF9Ga+F6YJC4kPWStvXVh2dkycGGIIQOgk2I0akS+/SqJPYZVBKQvAi0khT36fC/k0ZlmX4uF15ycvboBspGF/8dJiuJbdT1awBXkHGSQ28PL8ixrq0TYXuVPUFo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1669816657; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=k4Dma3IuLzhJAgv9Db5pItElfrffkxrejAOnuwFruKw=; b=Hp6AjGdPe025HmiluSxPktKiZXYP4dFbGYutW05WoKuqU7xFRTp87X155cWYZR09fnW1shrmlR+/sS8nlE0bMP4BKoxCtvxrdVaaMB8kYAOlinjVMBlgoeSFjr/M3ItW9z9ASvgW0rMq1Mkvt0dQotoqbUe1jbq/69iTmrC42EE= 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 1669816657681657.441372447243; Wed, 30 Nov 2022 05:57:37 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p0NaD-0001uf-Oh; Wed, 30 Nov 2022 08:57:05 -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 1p0NaC-0001u3-CM for qemu-devel@nongnu.org; Wed, 30 Nov 2022 08:57:04 -0500 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p0Na6-0004S2-EO for qemu-devel@nongnu.org; Wed, 30 Nov 2022 08:57:02 -0500 Received: by mail-wm1-x329.google.com with SMTP id h4-20020a1c2104000000b003d0760654d3so47623wmh.4 for ; Wed, 30 Nov 2022 05:56:56 -0800 (PST) Received: from localhost.localdomain ([81.0.6.76]) by smtp.gmail.com with ESMTPSA id iv16-20020a05600c549000b003cf87623c16sm6396204wmb.4.2022.11.30.05.56.54 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 30 Nov 2022 05:56:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=k4Dma3IuLzhJAgv9Db5pItElfrffkxrejAOnuwFruKw=; b=r0gV8yMBWmSokUsyf1zL/4TCnTIOruhYS25aOx+DaGu5NwODAVIdHCGPhn5iiVPNe4 fu6Hhh0oHITfGxnure6D01AGIzaWcyvL4hgJ5JqvffcfYhJPfUhQCNsHqMhS4yTC7eCY idJnHkZeNxS2uCNAk0+vTLrowDceXmue2kYbuMBH/KkPTAf3sHm2NATvWCeD5rMPicH8 9MuxUzKS3iiEiZ1sA3yNVur4/MyUV5myxWzb9C5eRlZi53Y/D0EwtbrKC4wbdA191yra 15CoxLD+aMg8saptHnXSBcJFaIb/ODxKFkMZPxrnx9LUbfwnLsC30XpxgdApwWB/6mnj Oywg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=k4Dma3IuLzhJAgv9Db5pItElfrffkxrejAOnuwFruKw=; b=oicZkmHL+2JNPP6mEioAzjRiN9u07QrIIID9TPoPmBzWismOpKC5Pus/NdAvBP7Oh+ T88CV1sN94B643q3WC8kYgWVLUqB8VFxTQqEF0kGOd6KQzVS4pO/pqxaCDSWhylbzleg KYlRpxercwXF6RizOjHn4aVqZmMl1Trz/nLmuyEgSNnjcSR0EWSgMsS3gNeHJrGN3gIk dXowKqixwiWSe1UunRa1i7UvVmKwhbd4nrePZJ8RowNjXYO6I0xTtQIJTVDdYmIhYhGP 14XlQxqeTK5NBGXScG1nQwoqoK5uihdIlF7AhAtIQ/JGCGLUBE6HtXYZY9LsVzvLX1SH WWhQ== X-Gm-Message-State: ANoB5pm5IVsaDJ3Of/qKy99EJ3oJIgF8tU092lBdFy5b27hp1XUAJmyd smeacwQdG3aVEtVmLvoTJAUMVbKTiRj1r5Q/ X-Google-Smtp-Source: AA0mqf6sMp2zdu8x9t4wN/54a5U+joxvTTU71xdrimmSVp00XRo7tRY/wnJTJDfqJMjZusHXfhqYxg== X-Received: by 2002:a05:600c:a56:b0:3cf:77a6:2c2e with SMTP id c22-20020a05600c0a5600b003cf77a62c2emr30471502wmq.179.1669816615816; Wed, 30 Nov 2022 05:56:55 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Eduardo Habkost , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Thomas Huth , Yanan Wang , Paolo Bonzini , Marcel Apfelbaum Subject: [PATCH-for-8.0 2/2] hw: Reduce "qemu/accel.h" inclusion Date: Wed, 30 Nov 2022 14:56:41 +0100 Message-Id: <20221130135641.85328-3-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221130135641.85328-1-philmd@linaro.org> References: <20221130135641.85328-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::329; envelope-from=philmd@linaro.org; helo=mail-wm1-x329.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 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: 1669816658793100002 Move "qemu/accel.h" include from the heavily included "hw/boards.h" to hw/core/machine.c, the single file using the AccelState definition. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Fabiano Rosas Reviewed-by: Wilfred Mallawa --- hw/core/machine.c | 1 + include/hw/boards.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/core/machine.c b/hw/core/machine.c index 8d34caa31d..42fc6f1e84 100644 --- a/hw/core/machine.c +++ b/hw/core/machine.c @@ -12,6 +12,7 @@ =20 #include "qemu/osdep.h" #include "qemu/option.h" +#include "qemu/accel.h" #include "qapi/qmp/qerror.h" #include "sysemu/replay.h" #include "qemu/units.h" diff --git a/include/hw/boards.h b/include/hw/boards.h index 90f1dd3aeb..f00f74c5f4 100644 --- a/include/hw/boards.h +++ b/include/hw/boards.h @@ -6,7 +6,6 @@ #include "exec/memory.h" #include "sysemu/hostmem.h" #include "sysemu/blockdev.h" -#include "qemu/accel.h" #include "qapi/qapi-types-machine.h" #include "qemu/module.h" #include "qom/object.h" --=20 2.38.1