From nobody Fri Dec 19 04:32:33 2025 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=1622737034; cv=none; d=zohomail.com; s=zohoarc; b=biIVs/QYm0zPL+RgJGvwYTxTmWTl2VFNlbZbnwbRbzi0frDXy0U/BfXv3Rfu2ZxktjcAp9IVVYXgr/kBZZvipqdFwDurqEr1KzhqbqXQLKoBP6dkbQH7niK9Ca6BfOinLhkCda7azpegezhpOMXDwrtvXG6S5zNJzGLqkvTiEIY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1622737034; h=Content-Transfer-Encoding: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=TysIKDrUi/AEFUKTDKtgxqlH2Ug1XczQwdL8ralDjLo=; b=j9SmQvpDvrHva9TtDpRQl1K26iRe1J0NOpLJhr1i1XQon07MgAib3kSkibick/n3TQANAm1V5+gyDLmp+Ky5xf11UEs81XYbKP4oSuBIT9ZdRbrQfzGNb7mug2FBIVAisopyi2E9VBGoym+ZzXUsicW9LwY3gWhTVFo/GGDZI4o= 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) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1622737034142923.441409141687; Thu, 3 Jun 2021 09:17:14 -0700 (PDT) Received: from localhost ([::1]:48024 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loq1w-00050R-Vx for importer@patchew.org; Thu, 03 Jun 2021 12:17:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35964) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lopl2-0001aA-7T for qemu-devel@nongnu.org; Thu, 03 Jun 2021 11:59:44 -0400 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:39708) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lopkz-0007EZ-5o for qemu-devel@nongnu.org; Thu, 03 Jun 2021 11:59:43 -0400 Received: by mail-wr1-x434.google.com with SMTP id l2so6391646wrw.6 for ; Thu, 03 Jun 2021 08:59:40 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id m7sm3856470wrv.35.2021.06.03.08.59.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Jun 2021 08:59:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=TysIKDrUi/AEFUKTDKtgxqlH2Ug1XczQwdL8ralDjLo=; b=RKNokuZ5Zku/gdK4hPmziUp6vqi+glwRx2f3pvAImtgVh2Ht9ykOb3NzrNTkXGUc5P kiDqI/NieVpGGisaBK36BzvZxgNgcL/X9eBuJo7A/KY6TZ+cRvahXNDt0m5ftDbZoNB8 0MUVrT1u3HycAQmY5c1IveUutwAdTm1dvbQHgOazUUqfrBO0IFCx5rq1LSBvDOIwnCHh K5dBaNxxMcGHLBR3gnBPJ/B8nL9jjxfegrnV93WbHghL4jUa/EYlC5bJV9CO8TAlEcU8 HqQCCKJNreXLtsbTVHtKJzpwmmBmbd/F1yKKMBAQyQNkFZ2TbN1WTUzKbL9rixQ1Xq15 3rgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TysIKDrUi/AEFUKTDKtgxqlH2Ug1XczQwdL8ralDjLo=; b=J3/H/lmFPYDhB8DxRyhF9BqCcPyJ+VikYVyE3uaVi1WtLI+TeWc35r1PNk6zmGms8W lZ1d3qYXQX/6K0r8zMekOGXwpVf0+J8cHg6WygNURfdi06YZhgQ3fbhkUKTFQVC5eaSi jLh56vjYZ4UDZlWcpyINYEduGd9Z+eAXYrc1t652z7AvKN7Zxo7YpJ1fPcx/5PzW2wRE gLiR+o3h8+IfDI8GrDyXJEJiirnIj/W4pWUlk1m7zI2tOgNshjRIhYKd+gxPp4LjS+Gd p5Xgfdju9BYkFXs2P3NgvOYklA3KnRL5WdzNdAeZiswVR27ukyJ5CPA2b+9JwjQumwf+ DL6A== X-Gm-Message-State: AOAM5306LBAut+Bq7YgpsIatJoTePbmP5l5l8+Heuw02bTWLD5Lp87KX nHwcg0jpcqF4E4xtaIi6qC+9Kad8D6pWkxaC X-Google-Smtp-Source: ABdhPJyCRfb3xNuoez14ikCFHjafJ5iPl0neWtJTn41hnNtCa3klpl8mNwdgj/90/A8bJs126dKeaA== X-Received: by 2002:a5d:6546:: with SMTP id z6mr684252wrv.100.1622735979832; Thu, 03 Jun 2021 08:59:39 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 32/45] hvf: Make hvf_set_phys_mem() static Date: Thu, 3 Jun 2021 16:58:51 +0100 Message-Id: <20210603155904.26021-33-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210603155904.26021-1-peter.maydell@linaro.org> References: <20210603155904.26021-1-peter.maydell@linaro.org> MIME-Version: 1.0 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::434; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x434.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.23 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" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" From: Alexander Graf The hvf_set_phys_mem() function is only called within the same file. Make it static. Signed-off-by: Alexander Graf Reviewed-by: Sergio Lopez Message-id: 20210519202253.76782-6-agraf@csgraf.de Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- include/sysemu/hvf_int.h | 1 - accel/hvf/hvf-accel-ops.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/sysemu/hvf_int.h b/include/sysemu/hvf_int.h index ef84a24dd96..d15fa3302a9 100644 --- a/include/sysemu/hvf_int.h +++ b/include/sysemu/hvf_int.h @@ -43,7 +43,6 @@ struct HVFState { }; extern HVFState *hvf_state; =20 -void hvf_set_phys_mem(MemoryRegionSection *, bool); void assert_hvf_ok(hv_return_t ret); hvf_slot *hvf_find_overlap_slot(uint64_t, uint64_t); int hvf_put_registers(CPUState *); diff --git a/accel/hvf/hvf-accel-ops.c b/accel/hvf/hvf-accel-ops.c index c2136dfbb8c..5bec7b4d6dc 100644 --- a/accel/hvf/hvf-accel-ops.c +++ b/accel/hvf/hvf-accel-ops.c @@ -114,7 +114,7 @@ static int do_hvf_set_memory(hvf_slot *slot, hv_memory_= flags_t flags) return 0; } =20 -void hvf_set_phys_mem(MemoryRegionSection *section, bool add) +static void hvf_set_phys_mem(MemoryRegionSection *section, bool add) { hvf_slot *mem; MemoryRegion *area =3D section->mr; --=20 2.20.1