All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH, BUILD-FIX] linux-user: Conditionalize TUNSETVNETLE
@ 2021-01-04 23:44 Richard Henderson
  2021-01-05  8:35 ` Philippe Mathieu-Daudé
  2021-01-05  9:59 ` Laurent Vivier
  0 siblings, 2 replies; 3+ messages in thread
From: Richard Henderson @ 2021-01-04 23:44 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell, Laurent Vivier, Shu-Chun Weng, Josh Kunz

This fixes the build for older ppc64 kernel headers.

Fixes: 6addf06a3c4
Cc: Josh Kunz <jkz@google.com>
Cc: Shu-Chun Weng <scw@google.com>
Cc: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
 linux-user/ioctls.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h
index 661b5daa9f..7193c3b226 100644
--- a/linux-user/ioctls.h
+++ b/linux-user/ioctls.h
@@ -748,8 +748,10 @@
   IOCTL(TUNSETQUEUE,     IOC_W, MK_PTR(MK_STRUCT(STRUCT_short_ifreq)))
   IOCTL(TUNSETIFINDEX ,  IOC_W, MK_PTR(TYPE_INT))
   /* TUNGETFILTER is not supported: see TUNATTACHFILTER. */
+#ifdef TUNSETVNETLE
   IOCTL(TUNSETVNETLE,    IOC_W, MK_PTR(TYPE_INT))
   IOCTL(TUNGETVNETLE,    IOC_R, MK_PTR(TYPE_INT))
+#endif
 #ifdef TUNSETVNETBE
   IOCTL(TUNSETVNETBE,    IOC_W, MK_PTR(TYPE_INT))
   IOCTL(TUNGETVNETBE,    IOC_R, MK_PTR(TYPE_INT))
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH, BUILD-FIX] linux-user: Conditionalize TUNSETVNETLE
  2021-01-04 23:44 [PATCH, BUILD-FIX] linux-user: Conditionalize TUNSETVNETLE Richard Henderson
@ 2021-01-05  8:35 ` Philippe Mathieu-Daudé
  2021-01-05  9:59 ` Laurent Vivier
  1 sibling, 0 replies; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-01-05  8:35 UTC (permalink / raw)
  To: Richard Henderson, qemu-devel
  Cc: peter.maydell, Josh Kunz, Laurent Vivier, Shu-Chun Weng

On 1/5/21 12:44 AM, Richard Henderson wrote:
> This fixes the build for older ppc64 kernel headers.
> 
> Fixes: 6addf06a3c4
> Cc: Josh Kunz <jkz@google.com>
> Cc: Shu-Chun Weng <scw@google.com>
> Cc: Laurent Vivier <laurent@vivier.eu>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
>  linux-user/ioctls.h | 2 ++
>  1 file changed, 2 insertions(+)

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH, BUILD-FIX] linux-user: Conditionalize TUNSETVNETLE
  2021-01-04 23:44 [PATCH, BUILD-FIX] linux-user: Conditionalize TUNSETVNETLE Richard Henderson
  2021-01-05  8:35 ` Philippe Mathieu-Daudé
@ 2021-01-05  9:59 ` Laurent Vivier
  1 sibling, 0 replies; 3+ messages in thread
From: Laurent Vivier @ 2021-01-05  9:59 UTC (permalink / raw)
  To: Richard Henderson, qemu-devel; +Cc: peter.maydell, Shu-Chun Weng, Josh Kunz

Le 05/01/2021 à 00:44, Richard Henderson a écrit :
> This fixes the build for older ppc64 kernel headers.
> 
> Fixes: 6addf06a3c4
> Cc: Josh Kunz <jkz@google.com>
> Cc: Shu-Chun Weng <scw@google.com>
> Cc: Laurent Vivier <laurent@vivier.eu>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
>  linux-user/ioctls.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h
> index 661b5daa9f..7193c3b226 100644
> --- a/linux-user/ioctls.h
> +++ b/linux-user/ioctls.h
> @@ -748,8 +748,10 @@
>    IOCTL(TUNSETQUEUE,     IOC_W, MK_PTR(MK_STRUCT(STRUCT_short_ifreq)))
>    IOCTL(TUNSETIFINDEX ,  IOC_W, MK_PTR(TYPE_INT))
>    /* TUNGETFILTER is not supported: see TUNATTACHFILTER. */
> +#ifdef TUNSETVNETLE
>    IOCTL(TUNSETVNETLE,    IOC_W, MK_PTR(TYPE_INT))
>    IOCTL(TUNGETVNETLE,    IOC_R, MK_PTR(TYPE_INT))
> +#endif
>  #ifdef TUNSETVNETBE
>    IOCTL(TUNSETVNETBE,    IOC_W, MK_PTR(TYPE_INT))
>    IOCTL(TUNGETVNETBE,    IOC_R, MK_PTR(TYPE_INT))
> 

Reviewed-by: Laurent Vivier <laurent@vivier.eu>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-01-05 10:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-04 23:44 [PATCH, BUILD-FIX] linux-user: Conditionalize TUNSETVNETLE Richard Henderson
2021-01-05  8:35 ` Philippe Mathieu-Daudé
2021-01-05  9:59 ` Laurent Vivier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.