[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/2] hw/virtio: add boilerplate for vhost-user-gpio device
From: |
Alex Bennée |
Subject: |
Re: [PATCH 1/2] hw/virtio: add boilerplate for vhost-user-gpio device |
Date: |
Fri, 14 Jan 2022 14:06:31 +0000 |
User-agent: |
mu4e 1.7.5; emacs 28.0.91 |
Viresh Kumar <viresh.kumar@linaro.org> writes:
> This creates the QEMU side of the vhost-user-gpio device which connects
> to the remote daemon. It is based of vhost-user-i2c code.
>
> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
<snip>
> +++ b/include/hw/virtio/vhost-user-gpio.h
> @@ -0,0 +1,35 @@
> +/*
> + * Vhost-user GPIO virtio device
> + *
> + * Copyright (c) 2021 Viresh Kumar <viresh.kumar@linaro.org>
> + *
> + * SPDX-License-Identifier: GPL-2.0-or-later
> + */
> +
> +#ifndef _QEMU_VHOST_USER_GPIO_H
> +#define _QEMU_VHOST_USER_GPIO_H
> +
> +#include "hw/virtio/virtio.h"
> +#include "hw/virtio/vhost.h"
> +#include "hw/virtio/vhost-user.h"
> +#include "standard-headers/linux/virtio_gpio.h"
Hmm this fails:
In file included from ../../hw/virtio/vhost-user-gpio.c:13:
/home/alex/lsrc/qemu.git/include/hw/virtio/vhost-user-gpio.h:15:10: fatal
error: standard-headers/linux/virtio_gpio.h: No such file or directory
15 | #include "standard-headers/linux/virtio_gpio.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
The usual solution is to create a patch that imports the headers using:
./scripts/update-linux-headers.sh
either from the current mainline (or your own tree if the feature is in
flight) and mark the patch clearly as not for merging.
--
Alex Bennée