From patchwork Fri Mar 7 15:15:43 2025 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: 871213 Delivered-To: patch@linaro.org Received: by 2002:a5d:64c8:0:b0:38f:210b:807b with SMTP id f8csp814666wri; Fri, 7 Mar 2025 07:19:43 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXPAUSJBPVhB3UP8XNypY+/8q3qKbjO10WSwrE8VbDuryZTH7wSPk9pqjEv4vm1RauaUte6jw==@linaro.org X-Google-Smtp-Source: AGHT+IGIutWNELYEp8Cn3heksJzdThyJ+6+/qJf5ZMlvVxq4abpFxjwERDEh8WVoU119j05m1dgL X-Received: by 2002:a05:6214:2425:b0:6e4:9b59:d9ce with SMTP id 6a1803df08f44-6e9005ad731mr46062766d6.5.1741360783306; Fri, 07 Mar 2025 07:19:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1741360783; cv=none; d=google.com; s=arc-20240605; b=RyVIxQm6z5wRYsgPcFKN0ooFZpArPSq+Jin1SmSihB1U1FTN09J71U50KgVvaN+SjZ P4sbelMPignBNnbePs5HPE0UnOmg4lA+E5cZLdB7HlrhE97RWRNETKvybh9yPb2oYOSg 8drjftpzMxKYns2zN1llC9CB3Mj7dXwqRF722q77UQNjJE0AvIWzwrN/0QpmONU+zTA7 0OfywGkCZjmQygyd6sPV3xDMCuGYbtC3dIEun6bfXcIqk/yuJGWmZ064mtISaGA7qUQz VXmdnkowbEmAU7dCKKJSOJc4g9vU3Xssbg2cWRQTz2We68rd8WGoibN76vhmPElPGHIQ 9PFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=X2M0a517d1Rlrjf61qw++CyqLYHK0smyqzlvRXusipU=; fh=FXtWUx7amUH5pCqcNLOkhTwo5r7IFsByJZRWfWxnad8=; b=AsHHSVKWyl7gtSGa27azhGvte/mULFfDMKJjRkw6eX4+NuV0TFiuz+UcI9gAHnvlh8 VYy244xg/tj0Yacih08yn3t36qlV5ugLTalAFKYD4eMuUI4qsBEohc5WtVD+ZFkzCRVT zSA2sdqQFfS7Suyf/13rVqasr2qeXRR2pgtE2JboI6oRgYYW8gsqzYgQlMbWY1ODPszA vqcXFTKp0n9veDFA5uc3tHRxyN7j4X1fwhI4xPARxnKYLnOcCOvbFeE8hvNggBZbTn8P LNIUD0JgFpVoTe0c1ECLhJEW0Tp0JjjFBlPH+CtskjLiA5AwBkOTKFR/5JfM7f6q4BfG Qj1w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ntMcKTzO; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6e8f7172678si34542026d6.269.2025.03.07.07.19.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 07 Mar 2025 07:19:43 -0800 (PST) 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=ntMcKTzO; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tqZU9-000838-Fr; Fri, 07 Mar 2025 10:19:37 -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 1tqZR7-0005t6-5O for qemu-devel@nongnu.org; Fri, 07 Mar 2025 10:16:43 -0500 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tqZR3-0004J7-0Q for qemu-devel@nongnu.org; Fri, 07 Mar 2025 10:16:27 -0500 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-390ec449556so2401433f8f.1 for ; Fri, 07 Mar 2025 07:16:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741360581; x=1741965381; darn=nongnu.org; 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=X2M0a517d1Rlrjf61qw++CyqLYHK0smyqzlvRXusipU=; b=ntMcKTzOF+7AN04NBz90bvNZZqfi5AobvL9Ctf+9qlmW2vH6tWZkaxyKnxY7dICY6h vcxayw+4uj4KiM8DBYxmKthMsL6gMdgjJfvn5J4Vb5MOPede9SVlFdqviuyZK/9K8A6j rykEkc1ZHxuDsEO0IhjLzPHNQtDNiPKqRuHV5GveHtYYTd/nAmawgMEVqcw1UKuv0pbh UY4L/FKiGphwhyiXufBlGUXUXUFiriuTe/sg2VEWto3tzn7+kPBPcsXItMS1i3CaBQnJ Fl36o82MtM64axER7odQjBQOh2pDC8JAHwLlEqpBVcS16UJ4933ttKBePg1P2LdDAwLD 3EwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741360581; x=1741965381; 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=X2M0a517d1Rlrjf61qw++CyqLYHK0smyqzlvRXusipU=; b=dfZdjiQx6H5i5PAkUpp3ZRNWFcKV43kcZ7rCYGkrKZJXBPgkJcjNC8ZElFWC5kLBG2 lhEp5wfxvv8Qd79Qu9aGIBCPPjcoAQ8VNY894ojrChh7OJrUaQe+XuDylSW+xWhGlOwg j3R23hxsae5XarUcjuHRzW3pdKxIUrPZlDs5RGGIDr61T7B8DGk0nVaIOA+ELkNX+ZTC bZtyHMNuwmEzIIZxtXC3ytK2m9x1qRROf6y1pcA/lJShR4bSazpoIr9xlVgH2HTDfL9n ija2KSRU8r0pDC2ngt3SPgnkzufrEx5DtG6uI8tK/6/aCl1oLoAR3QXb0ptqyXU86juN NpsQ== X-Gm-Message-State: AOJu0Yx8H9HhAsTL0zsHoC7zNh5/em/XfVvSr/0sDMZJUu3NkskfUMth y9eLDSIjPx9+ywp7Jotk8jE/gU5Ozmf8Hv2Kk4LST9oudsoFdR2QhQ8qawdkj2+pcCM7wvpd3R8 lD10= X-Gm-Gg: ASbGncuDaSko5hyF4sCIM+13GjGEZ8T9lpVKNaoRs2z2hDbi8r2xKLmM+3MQCvRsRDb 9gpGUBiYCNEjPlp1UYPyCrTODwwXlPtl2f+EACwnCByqpN/MnAqpsu1Yc3ZAKcMlxs7l9TRTmZQ IYbgD+wvXZBUJtg9E0HjMYsiA/zdCUXwPbIzjpMBf39R6n4WernED2RM9BjI0d7oNXLIbCQEgo4 mD4hUh1+1QLQS9DdzxrOz1gn22nwZeuQZRksXuCQF6uiz2lhgh4SUUiLP/RQIOtShKRHxxQilZX +36Lq9I/BSVIutH29b8NAK2pd039ouJhue3BbRzuVsL+/fx8kTTBqd8/FDX51uqk1mU+EX/pFc2 oE94g5JeKCi+k0PaznX8= X-Received: by 2002:a05:6000:2108:b0:391:22e2:cd25 with SMTP id ffacd0b85a97d-39132d7290amr3197152f8f.31.1741360580240; Fri, 07 Mar 2025 07:16:20 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3912c1037b4sm5651435f8f.92.2025.03.07.07.16.19 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 07 Mar 2025 07:16:19 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , Ani Sinha , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Marcel Apfelbaum , Pierrick Bouvier , Paolo Bonzini , "Michael S. Tsirkin" , Richard Henderson , David Hildenbrand , Igor Mammedov , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 7/7] hw/virtio: Compile virtio-mem.c once Date: Fri, 7 Mar 2025 16:15:43 +0100 Message-ID: <20250307151543.8156-8-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250307151543.8156-1-philmd@linaro.org> References: <20250307151543.8156-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=philmd@linaro.org; helo=mail-wr1-x429.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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Remove unused "exec/ram_addr.h" header. This file doesn't use any target specific definitions anymore, compile it once by moving it to system_virtio_ss[]. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: David Hildenbrand --- hw/virtio/virtio-mem.c | 1 - hw/virtio/meson.build | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/virtio/virtio-mem.c b/hw/virtio/virtio-mem.c index ea7229ce28c..a5d732ac6d9 100644 --- a/hw/virtio/virtio-mem.c +++ b/hw/virtio/virtio-mem.c @@ -25,7 +25,6 @@ #include "hw/virtio/virtio-mem.h" #include "qapi/error.h" #include "qapi/visitor.h" -#include "exec/ram_addr.h" #include "migration/misc.h" #include "hw/boards.h" #include "hw/qdev-properties.h" diff --git a/hw/virtio/meson.build b/hw/virtio/meson.build index a5f9f7999dd..7c3513315cb 100644 --- a/hw/virtio/meson.build +++ b/hw/virtio/meson.build @@ -55,7 +55,7 @@ specific_virtio_ss.add(when: 'CONFIG_VHOST_VSOCK', if_true: files('vhost-vsock.c specific_virtio_ss.add(when: 'CONFIG_VHOST_USER_VSOCK', if_true: files('vhost-user-vsock.c')) specific_virtio_ss.add(when: 'CONFIG_VIRTIO_RNG', if_true: files('virtio-rng.c')) specific_virtio_ss.add(when: 'CONFIG_VIRTIO_NSM', if_true: [files('virtio-nsm.c', 'cbor-helpers.c'), libcbor]) -specific_virtio_ss.add(when: 'CONFIG_VIRTIO_MEM', if_true: files('virtio-mem.c')) +system_virtio_ss.add(when: 'CONFIG_VIRTIO_MEM', if_true: files('virtio-mem.c')) specific_virtio_ss.add(when: 'CONFIG_VHOST_USER_SCMI', if_true: files('vhost-user-scmi.c')) specific_virtio_ss.add(when: ['CONFIG_VIRTIO_PCI', 'CONFIG_VHOST_USER_SCMI'], if_true: files('vhost-user-scmi-pci.c'))