From patchwork Wed Apr 5 16:04:49 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: 670323 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp364153wrt; Wed, 5 Apr 2023 09:07:09 -0700 (PDT) X-Google-Smtp-Source: AKy350ZsMB0W7XssWRVCauamI5nbG6jk1jzR/sR4hxeGIm84INOL0SwUzorde5XfknWGfzR+36aU X-Received: by 2002:ac8:4e88:0:b0:3b9:bf83:d5de with SMTP id 8-20020ac84e88000000b003b9bf83d5demr5692263qtp.26.1680710829717; Wed, 05 Apr 2023 09:07:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680710829; cv=none; d=google.com; s=arc-20160816; b=TKTWlhMjK7sOGo/2KXqCDbVWrcgJ8hXFwaj9GVUwHQ7U4shsAnDxF4CcSxNFYQ6HvX dICHnV2xIbDwqXVZ+qOT4NM7rk2AYZsr5VFp6H1GkOB+25lNcqRmOGs+QTar8LtiyDG9 cdCK7EtoyKtv2iSTXYtjYPgZQ+1PbYdbol46MlCt/JaB94Kvx2LhuvQvh4BOnaHj/E+p sqyLqqfngvcC2W+N38/nnDMOuem8Je33k6asxmcep4InyZjUCb2OTey6h+zQqrzSly+p kNWS9c6nsFHPwJB3Dok3cg/srf4csjnl5IFB3qrRunFbJM4GjHu9FJAXIkJ46tvLv+rw Rr5Q== 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=z2hst+C2Hubq09FNgBe92GHruUqjFSuaPIAbKjAIoI8=; b=PLAlZKZyMcX4G8mCRJ4meJRr8D919HTLoQo/oGnqNBlbHVfNjsgImXXI5cka8iYDct W8sKVK5yMBhx3InT7H8bfuvyETo8aC1pOA1l4wdxiZqMSWleACx6tX+KdBhx4htZco0Y jD+m64F/t21n3HU6+AcPrVrQAKrBg9wThcR//9wag9Acwsi8yYFaBPhrstkW85CLcaCC mNGbgLB8H6MCKRH6WC+wNQl/cAgpuPwWzkr4xJTfICGIHDxLEaS4d286G6/1ukyxYDHS GtuaWdDUerFEdYjmGE7pZ6+dXS4LbVLhLKtuBWTrq8zIwvBcxnPG++DyyyOFqaG5rsTL yUcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hnCYq5Dz; 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 bl11-20020a05620a1a8b00b0074860f49e1fsi10599165qkb.685.2023.04.05.09.07.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Apr 2023 09:07:09 -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=hnCYq5Dz; 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 1pk5dn-0006F8-Vd; Wed, 05 Apr 2023 12:05:44 -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 1pk5db-00063q-5r for qemu-devel@nongnu.org; Wed, 05 Apr 2023 12:05:32 -0400 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 1pk5dX-0007lc-SW for qemu-devel@nongnu.org; Wed, 05 Apr 2023 12:05:30 -0400 Received: by mail-wm1-x329.google.com with SMTP id he13so1573634wmb.2 for ; Wed, 05 Apr 2023 09:05:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680710727; 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=z2hst+C2Hubq09FNgBe92GHruUqjFSuaPIAbKjAIoI8=; b=hnCYq5Dzl/7iLI0rQYbkc9CUi17FFpKYPMxOnHcemCexKvxTdFYuaru2TQEImK5o9e jTn4K6Pp9zXxdmmJsMb8gD9S2GQ92Q72Ifh8L6RxwgBOR83AYlvxa/V/6Fh3hPXQBoiV z9gKOGSH8bAn5zRrapQGO1yAInmO8o8qVZTpVMRyYOG1CV9m59KTFXQeJKBj8sjGVuru vuCXHX5KYhKDn13HSZVsP5Lq2Qz50f1zC2IoyROHSYrzPF6xJDEsucHmTbgNlZ1jt64p EjINJfxYuBjgAhCrq5BfDf3e2GoiGGEqH9e7WYG8IshZ6uH7iubAr54kkd/PnEXO2Hgf kVGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680710727; 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=z2hst+C2Hubq09FNgBe92GHruUqjFSuaPIAbKjAIoI8=; b=Q29OO8tCXMtmqog7IN0eE/V5HU0HCFJ5T5rxTkZobQcI9sMKqS+09qf3p9wvrZCuNs 1D+jZ4K5AX3CwzLWplf7Cr5afsmN5xu6OsldwA2XRZ3TjyibZVet9osCnVHUCsDyLgM6 tguF9oysjBlKQ3A8t7Ii2U8FTc73npVx4U+40053JeOpW7xD3ariE0BVVxIV9SCtoMJT YxQK5Jw4y5qwiH8f0Uxy/B2ri7OFbgR2pzq9Zp1ZHZLsIROAO3edCOjW55ZXr4L3VcSO r6tL7MkAnLinKnX3/t0ErAZmMU0JTBiL25/NiA7p3VLl2+2XQDHy+Vx6lyjFIbxQIHMj HoUw== X-Gm-Message-State: AAQBX9dfB/0BQuDH4ERMZdecZihcFGsvermoY/6ETmIb4aYR7zKrDoV5 +PwYKCM/IPjninSb0LV/mQEcQCPXXdSdgXQHldY= X-Received: by 2002:a05:600c:253:b0:3eb:3f2d:f237 with SMTP id 19-20020a05600c025300b003eb3f2df237mr5280415wmj.6.1680710726924; Wed, 05 Apr 2023 09:05:26 -0700 (PDT) Received: from localhost.localdomain (4ab54-h01-176-184-52-81.dsl.sta.abo.bbox.fr. [176.184.52.81]) by smtp.gmail.com with ESMTPSA id y9-20020a1c4b09000000b003edf2dc7ca3sm2586415wma.34.2023.04.05.09.05.25 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 05 Apr 2023 09:05:26 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-s390x@nongnu.org, qemu-riscv@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-arm@nongnu.org, kvm@vger.kernel.org, qemu-ppc@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , Radoslaw Biernacki , Peter Maydell , Leif Lindholm Subject: [PATCH 05/10] hw/arm/sbsa-ref: Include missing 'sysemu/kvm.h' header Date: Wed, 5 Apr 2023 18:04:49 +0200 Message-Id: <20230405160454.97436-6-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230405160454.97436-1-philmd@linaro.org> References: <20230405160454.97436-1-philmd@linaro.org> MIME-Version: 1.0 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=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/kvm.h" is indirectly pulled in. Explicit its inclusion to avoid when refactoring include/: hw/arm/sbsa-ref.c:693:9: error: implicit declaration of function 'kvm_enabled' is invalid in C99 [-Werror,-Wimplicit-function-declaration] if (kvm_enabled()) { ^ Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Leif Lindholm Reviewed-by: Richard Henderson --- hw/arm/sbsa-ref.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/arm/sbsa-ref.c b/hw/arm/sbsa-ref.c index 0b93558dde..7df4d7b712 100644 --- a/hw/arm/sbsa-ref.c +++ b/hw/arm/sbsa-ref.c @@ -26,6 +26,7 @@ #include "sysemu/numa.h" #include "sysemu/runstate.h" #include "sysemu/sysemu.h" +#include "sysemu/kvm.h" #include "exec/hwaddr.h" #include "kvm_arm.h" #include "hw/arm/boot.h"