From patchwork Wed May 24 09:37:41 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: 685316 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp149971wrt; Wed, 24 May 2023 02:38:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ugPMy4sbz1zHYk9InMrnWj3BYYzN7ATmubZdbjgzlfYJPhY2uMKJEDDimIwiSqW8HK2KK X-Received: by 2002:a05:622a:180f:b0:3f6:bfe9:664a with SMTP id t15-20020a05622a180f00b003f6bfe9664amr4276032qtc.7.1684921137734; Wed, 24 May 2023 02:38:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684921137; cv=none; d=google.com; s=arc-20160816; b=S0I9yZmV55OUkV/dRFITs/4GWOydAR2yJ6bZwq0rskeFKNZ95ux2AV8c0KY4IawSfl 0cgp9Mg+JiziFoj+Q1SwwIqmTtjmOoTPAKuObgEPpYQ13VjkZ5PHM3Bxtv7EM2JiDUXP mKkFtocdXJTKnt2ZS2ShA+niamLO3AkZPwN32hGW7TdlfcKJwMeiYJlxinN6SgnUn9UN +IkHuPUy4J1roxbr0fYb/PS1VDAmsbSemWVogzm/LqIpalICcMqmPRyBp0lEniYR+mc5 0OplI9EnuDg7xZB6/pQfaR6XkvSrjAFrK2Ch+dZ4Ms75QNj0jsnYbGPpYg4ii5qHjU2M OdqA== 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=Y71HOv/BFUZkHdZXVOBhlaxJVZQ7sC8HQC7IQ2KJf9Q=; b=djBd7PX3r8BzL8r6i+TghoaTDLyYOA6jzeWMqmWwlQh8+WoWsnd0QaatJWY5EA83mN gKDD73XVMmwxixtt5RuVKj7xh4N7XTO+EhsYKFZxFuaPKD/XpaqThldaQ656WI/6IwS0 MfSiySqqTQTFumvyiNz6bUrkl+S+6YRGgtg/X192krnNo8+1yYNy7Hwwj3hPZqFvgIei 95PXYWS78PSfvXm8dIZkxGaAf3MWNB0dACE1ug5M0OLkcbmKXABVffe/nLe+VkdYcQ6G bJ6ZLKCqxP1gZrqpLSxZA0A9uCHO46bdoOkQo5kBGheDKVEJxDJwJlRQpZwyj4d2jhJL 71BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YGZTM+c7; 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 y9-20020a05622a164900b003f38a512345si6392419qtj.661.2023.05.24.02.38.57 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 May 2023 02:38:57 -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=YGZTM+c7; 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 1q1kx9-0007OC-Ht; Wed, 24 May 2023 05:38:43 -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 1q1kx8-0007KY-5y for qemu-devel@nongnu.org; Wed, 24 May 2023 05:38:42 -0400 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q1kx6-0006us-90 for qemu-devel@nongnu.org; Wed, 24 May 2023 05:38:41 -0400 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-3f607059b4eso6495055e9.0 for ; Wed, 24 May 2023 02:38:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684921118; x=1687513118; 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=Y71HOv/BFUZkHdZXVOBhlaxJVZQ7sC8HQC7IQ2KJf9Q=; b=YGZTM+c7sLE0JiKyq7AgHGt+phLWINb+zVpdHtMaN+WBJJmBi3qaj91c1HH/Qba+dz pftvqQTTP1321ruQch2JqfUkO0gnDHk/16Lhh4Ljo/ZveaHAqnl6bMfE04TOJZy13+8g cEy2pGTYCjcjJBnWudC6KlprwdBcZRGcO7qocJJWymAA751/o1lIrMC/8O7/jMu+vPQb 9cGfkfJt5S0RtxSmyNCUWdw7aqbGchlsU7XnP47RkIJKq4p5EW7qtasPgAnl3E8cvkm4 LiyeEfG0Xi0QrVw6MvZWTs8wajhJUkVTcHEk8C0tOSZEP2aNW9X341UijcY+xit+p00Z eIvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684921118; x=1687513118; 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=Y71HOv/BFUZkHdZXVOBhlaxJVZQ7sC8HQC7IQ2KJf9Q=; b=Hbg/MHIi1YhMoJ99IqkfNmrazNpCWsLDWyzpisyQvGaXPamdAyM9l5f69GZ+3OH+C0 JnBvaoGyJWEGH7wOd2IBsFiJLGOy+66q7MBU+BN6rLgR8Ed/8QOAz6ijplbA3JAxwkXG sz0gaKGKWxC/yRdgkXwVGO/9jHLAQF6qyotf0jJQhPTpQZzSBt0+CiAH9+lAEFfuO461 +UoHn+cTOlkaaSveNtLPpzu+e0MSpQg3QuNYy8FoLYs8q0kZbRqhcIBjcTfc8yBUsHuk LOphLi53z8NBkTAxPkdwt3AKwgs0CGcB/S2lfnfWYCvD3tYkRSzkA5nDVXOvS3RMw+2c jwaQ== X-Gm-Message-State: AC+VfDw75nfI26CYgW7lEna/FNT7bpFdvNRRF1yEjVFeyNDHBPVy4XEU Cs3aWtsxaxxnjiRnSeEyOim4zX1aYZlAOiLARfu4yw== X-Received: by 2002:a1c:7503:0:b0:3f4:fffc:cd74 with SMTP id o3-20020a1c7503000000b003f4fffccd74mr12493082wmc.16.1684921118195; Wed, 24 May 2023 02:38:38 -0700 (PDT) Received: from localhost.localdomain (fac34-h02-176-184-31-246.dsl.sta.abo.bbox.fr. [176.184.31.246]) by smtp.gmail.com with ESMTPSA id s15-20020a7bc38f000000b003f6028a4c85sm1699924wmj.16.2023.05.24.02.38.35 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 24 May 2023 02:38:37 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Fam Zheng , Thomas Huth , Paolo Bonzini , Eric Farman , Peter Xu , Hanna Reitz , Christian Borntraeger , "Michael S. Tsirkin" , Raphael Norwitz , Ilya Leoshkevich , Richard Henderson , =?utf-8?q?Philippe_Mathie?= =?utf-8?q?u-Daud=C3=A9?= , Eric Auger , "Gonglei (Arei)" , David Hildenbrand , Stefan Hajnoczi , qemu-s390x@nongnu.org, Cornelia Huck , Halil Pasic , qemu-block@nongnu.org, Kevin Wolf Subject: [PATCH v2 07/10] hw/virtio/vhost-vsock: Include missing 'virtio/virtio-bus.h' header Date: Wed, 24 May 2023 11:37:41 +0200 Message-Id: <20230524093744.88442-8-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230524093744.88442-1-philmd@linaro.org> References: <20230524093744.88442-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=philmd@linaro.org; helo=mail-wm1-x330.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, T_SCC_BODY_TEXT_LINE=-0.01 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 Instead of having "virtio/virtio-bus.h" implicitly included, explicitly include it, to avoid when rearranging headers: hw/virtio/vhost-vsock-common.c: In function ‘vhost_vsock_common_start’: hw/virtio/vhost-vsock-common.c:51:5: error: unknown type name ‘VirtioBusClass’; did you mean ‘VirtioDeviceClass’? 51 | VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); | ^~~~~~~~~~~~~~ | VirtioDeviceClass hw/virtio/vhost-vsock-common.c:51:25: error: implicit declaration of function ‘VIRTIO_BUS_GET_CLASS’; did you mean ‘VIRTIO_DEVICE_CLASS’? [-Werror=implicit-function-declaration] 51 | VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); | ^~~~~~~~~~~~~~~~~~~~ | VIRTIO_DEVICE_CLASS Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth Reviewed-by: Alex Bennée Reviewed-by: Stefano Garzarella --- hw/virtio/vhost-vsock-common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/virtio/vhost-vsock-common.c b/hw/virtio/vhost-vsock-common.c index d2b5519d5a..e89af9b329 100644 --- a/hw/virtio/vhost-vsock-common.c +++ b/hw/virtio/vhost-vsock-common.c @@ -11,6 +11,7 @@ #include "qemu/osdep.h" #include "standard-headers/linux/virtio_vsock.h" #include "qapi/error.h" +#include "hw/virtio/virtio-bus.h" #include "hw/virtio/virtio-access.h" #include "qemu/error-report.h" #include "hw/qdev-properties.h"