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: 781861 Delivered-To: patch@linaro.org Received: by 2002:ab3:7144:0:b0:258:92fe:957c with SMTP id e4csp1780693ltf; Fri, 22 Mar 2024 09:26:17 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUwgh6jqyAP2nA10zs3YRWgXF3qTU9VZ2Fh6r/YPFgEOkT30HTJYK0YH3NVeW5QQ4xdrbfJjhSwHb6j1dE3cKr/ X-Google-Smtp-Source: AGHT+IEdrD6q0lPoYHFtzHKrOmDomeYNGSt2ctO6M2A76aeuxGrScNeG5mLc+KaN3o9i2UPekEuR X-Received: by 2002:a81:4e17:0:b0:60a:660f:aa61 with SMTP id c23-20020a814e17000000b0060a660faa61mr136846ywb.2.1711124776962; Fri, 22 Mar 2024 09:26:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1711124776; cv=none; d=google.com; s=arc-20160816; b=cft2RUcnvLnL1AxWKBUPBQYdxdB7zcxBJ6pnC3QgKRpQy98gAcdrT7XvbQIJN6MVWh Mo/At7xP9qlfiwh1EtWpYWGPPQC9h7DMLHmVa5vZZLxGUe0zD10mS1txwvXMw2E9VhWm j0F0D8LKSgRP8kkAcMDzu1sQbpEfOro8XmKAhh47hoS3quDAkyEo5/Yiqe0ZbPUcDqC4 kFae62wCXT1PganVU3wOPtxcSLSVPd4MgSfTwTW9TdnFdMN3+7W8XQWyRtcUsw5t1SuQ 81nLIYlI6/12Kz4s9VNIHyTTYIvAYL0bRGJC7Fj1v0ICwV02kcp7iSiXBM03B6ZeHXeD ePTg== 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=P0be/J1+Pcb62z/yBW5hmBPz9B6hQYE9TN6r4a1eKxM=; fh=tNUbLMo8XxbrSRu04M/MyGaOw+AwAGGb2NkiDNKarrM=; b=tuwQzklNgHgpA79wY0XW8KbDC9lwE7MTq94uNcPeSo4M41cd7CFD8VmJWv9HO39BaG CcK5m+eyhaXsTev7DYDwqvDYRZIa/3XgP5BapfIY/8u7S6kVkTLLrb9aRibfXJ4l0hF/ jni6Ka1JEMjcwCMR0YGYdAanm0FqK4u1+RW8Q0ikWy1t1TWYTxqush5Ey50LlUYY1jdL TZUypuvmEOl/+hTRq40dibk+I8abBSbWsXVD4Yz0bYRMJH0PoTveq/ooYfOGCBazErVa MKtyPa/rqKTCLJPFT8OKfhNACXSVyGO2DpwjAah3jsS5XXV3lWoya0GG1lJLFi4ZG/Bc lfPg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wfEBoTtq; 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 u14-20020a05620a022e00b00789dcc4dceesi2290626qkm.732.2024.03.22.09.25.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 22 Mar 2024 09:26:16 -0700 (PDT) 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=wfEBoTtq; 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 1rnhhc-0001Wv-Ep; 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 1rnhhb-0001We-Da for qemu-devel@nongnu.org; Fri, 22 Mar 2024 12:25:07 -0400 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 1rnhhZ-0002y2-Av for qemu-devel@nongnu.org; Fri, 22 Mar 2024 12:25:07 -0400 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-4146562a839so16151295e9.1 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=hXD4LDoiz8IhHDFMilbklEtOQ6ZtEGV5inlyAMq1i39ZwxrNnJCnsgiJK8hts9I0Kf z6jHlw2/pPPPnUhph8uOiNSqGGD5Qlv+O97JoQLzZnK5lmL0ZBAhOfB/NnDEuc/ogQ+b 1tzBfv7Q5XbGZIUsGibXlywnziuJoIaIvHkKsgVu5Y/QYNam0ITFAJLLQ3thWMWaH4qm tLFDQ5JwtK5i60Sk2kvSOzdJLUvCVJauMGXP5g+Mb5/IQgMOkhGKWaF1h8yO2aPS3akG 2ZV50Fih6SdZ/y2WnLL6EbjMm/UPuMTJPKLJG8LWflN4nfOoXyOMrundYar3oyFpYXbD ECnQ== X-Gm-Message-State: AOJu0Yw69Kl+xUzZ2c9N24Mqh8ETjDlCviHvJAdV/jtx6jyLeJ6fRN6x 7pq3w38b0WtiQ5/pnlQhLePGPSo9i4D7XWZKKZDgP9oJFWrFMqGr/8caLI+u/Rt0kxCoBxXYV1D x 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::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=unavailable 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 "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"