From patchwork Fri Mar 22 16:24:59 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: 1915007 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=wfEBoTtq; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=patchwork.ozlabs.org) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4V1SP31PQQz1yXt for ; Sat, 23 Mar 2024 03:25:42 +1100 (AEDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rnhhc-0001X7-LW; Fri, 22 Mar 2024 12:25:08 -0400 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 1rnhha-0001WG-HB for qemu-ppc@nongnu.org; Fri, 22 Mar 2024 12:25:07 -0400 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rnhhY-0002xp-U3 for qemu-ppc@nongnu.org; Fri, 22 Mar 2024 12:25:06 -0400 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-4147e3e4d3cso3263685e9.2 for ; Fri, 22 Mar 2024 09:25:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711124703; x=1711729503; 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=P0be/J1+Pcb62z/yBW5hmBPz9B6hQYE9TN6r4a1eKxM=; b=wfEBoTtqojb895U9gCNKToHQ2scz61GiQHNZWlFDL5ykq5VpZFN3XU3NXxgPieqnwr FL/yebopAPa6xskfuh7rVktkWSsgrO4TgzqPdFWPIco3YoDNS0S2skPyWHG9sa2ZUtqs yyzEXdPqvNA8/puKufYl2r52jHDmh73xSCpb8ysBZhEbowID3EJONTBjt1s0Tsb65nzx mYMQP1HMIIfQ/NXnJXQOFMhETm9BaMKFZrMjIVMmirWFik02+ySQcTdtxLRZsRSPljd1 Y04skbLuoPk1SWawTg8op04+EdNdofsDRcnwJ4vvBvbCtnyERYTQdCsYE931iq1xXnc/ ZA+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711124703; x=1711729503; 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=P0be/J1+Pcb62z/yBW5hmBPz9B6hQYE9TN6r4a1eKxM=; b=rRrARJcRccL3EoCxG7oDicJu1Qr9cV7xkNnRyil094AjvG1H/XWSZKVVrsNAkCeITO fbgWgmLvechvk60IC5ZPNfUqgqs+rsovzwD+esB+DTvIrSBN7nLb5P0ll7IVqg6bsCmY 3sTbXIKUs+mt6YpUbnk/gAnQklNfLpGhbdG1pJyT9Z1T4qPilDBMkK43fOvLrQBUNl6G L6GSOklkePfKCSzNMPZrGLJ45SVpiW8OVoUjs9Hsye3jQcjEf9WxyTEcnt6rlHFGdj8z JrjQTPhe5EFulkMsGFxf00DDf2ZBffCUq1a5hc5GDrfK58vfjVmFaqWGwJXMYiNXSQQl /5NQ== X-Gm-Message-State: AOJu0YyTTvOVhR+marcDZ50+xClNQ63/C4qcl2XEbwgbYMsGA1STp5+M TECChyeU98G+Th+a/4doikUcB84aC5KQ0/ur4kDQoo+G95L3P8HnChYmaY+uJWk= X-Google-Smtp-Source: AGHT+IE1LYCwHCqxGnbNjiVHl47MwRpZZdzE3yrh18yx0pE9TNANVaep+nZiktx2vFtNHxWbmBx8BQ== X-Received: by 2002:a7b:c853:0:b0:414:63c6:8689 with SMTP id c19-20020a7bc853000000b0041463c68689mr1799090wml.20.1711124702903; Fri, 22 Mar 2024 09:25:02 -0700 (PDT) Received: from m1x-phil.lan ([176.176.178.251]) by smtp.gmail.com with ESMTPSA id z18-20020a5d4d12000000b0033ec8f3ca9bsm2390606wrt.49.2024.03.22.09.25.01 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 22 Mar 2024 09:25:02 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, Harsh Prateek Bora , Nicholas Piggin , Daniel Henrique Barboza , David Gibson , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= Subject: [PATCH] hw/ppc/spapr: Include missing 'sysemu/tcg.h' header Date: Fri, 22 Mar 2024 17:24:59 +0100 Message-ID: <20240322162459.7173-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::335; envelope-from=philmd@linaro.org; helo=mail-wm1-x335.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-ppc@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-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-ppc-bounces+incoming=patchwork.ozlabs.org@nongnu.org "sysemu/tcg.h" declares tcg_enabled(), and is implicitly included. Include it explicitly to avoid the following error when refactoring headers: hw/ppc/spapr.c:2612:9: error: call to undeclared function 'tcg_enabled'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (tcg_enabled()) { ^ Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Harsh Prateek Bora --- hw/ppc/spapr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index c417f9dd52..e9bc97fee0 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -35,6 +35,7 @@ #include "sysemu/sysemu.h" #include "sysemu/hostmem.h" #include "sysemu/numa.h" +#include "sysemu/tcg.h" #include "sysemu/qtest.h" #include "sysemu/reset.h" #include "sysemu/runstate.h"