public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH] virtio: Remove duplicate VIRTQUEUE_MAX_SIZE definition
@ 2026-02-04 12:08 Laurent Vivier
  2026-02-04 12:20 ` David Gibson
  0 siblings, 1 reply; 2+ messages in thread
From: Laurent Vivier @ 2026-02-04 12:08 UTC (permalink / raw)
  To: passt-dev; +Cc: Laurent Vivier

VIRTQUEUE_MAX_SIZE is already defined in virtio.h, which virtio.c
includes. Remove the redundant local definition.

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
---
 virtio.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/virtio.c b/virtio.c
index 447137ee83dd..7e31e799f881 100644
--- a/virtio.c
+++ b/virtio.c
@@ -83,8 +83,6 @@
 #include "virtio.h"
 #include "vhost_user.h"
 
-#define VIRTQUEUE_MAX_SIZE 1024
-
 /**
  * vu_gpa_to_va() - Translate guest physical address to our virtual address.
  * @dev:	Vhost-user device
-- 
2.52.0


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

* Re: [PATCH] virtio: Remove duplicate VIRTQUEUE_MAX_SIZE definition
  2026-02-04 12:08 [PATCH] virtio: Remove duplicate VIRTQUEUE_MAX_SIZE definition Laurent Vivier
@ 2026-02-04 12:20 ` David Gibson
  0 siblings, 0 replies; 2+ messages in thread
From: David Gibson @ 2026-02-04 12:20 UTC (permalink / raw)
  To: Laurent Vivier; +Cc: passt-dev

[-- Attachment #1: Type: text/plain, Size: 944 bytes --]

On Wed, Feb 04, 2026 at 01:08:47PM +0100, Laurent Vivier wrote:
> VIRTQUEUE_MAX_SIZE is already defined in virtio.h, which virtio.c
> includes. Remove the redundant local definition.
> 
> Signed-off-by: Laurent Vivier <lvivier@redhat.com>

Reviewed-by: David Gibson <david@gibson.dropbear.id.au>

> ---
>  virtio.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/virtio.c b/virtio.c
> index 447137ee83dd..7e31e799f881 100644
> --- a/virtio.c
> +++ b/virtio.c
> @@ -83,8 +83,6 @@
>  #include "virtio.h"
>  #include "vhost_user.h"
>  
> -#define VIRTQUEUE_MAX_SIZE 1024
> -
>  /**
>   * vu_gpa_to_va() - Translate guest physical address to our virtual address.
>   * @dev:	Vhost-user device
> -- 
> 2.52.0
> 

-- 
David Gibson (he or they)	| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you, not the other way
				| around.
http://www.ozlabs.org/~dgibson

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2026-02-04 12:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-04 12:08 [PATCH] virtio: Remove duplicate VIRTQUEUE_MAX_SIZE definition Laurent Vivier
2026-02-04 12:20 ` David Gibson

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).