[Lguest] [PULL] lguest and virtio patches

Mark McLoughlin markmc at redhat.com
Fri Jul 25 01:58:53 EST 2008


On Wed, 2008-07-23 at 17:27 +1000, Rusty Russell wrote:
> (Note the arch/s390 bit is from virtio console on KVM/s390)
> 
> The following changes since commit 0988c37c248e824953d95a11412696c348dbca91:
>   Linus Torvalds (1):
>         Merge branch 'x86-fixes-for-linus' of git://git.kernel.org/.../tip/linux-2.6-tip
> 
> are available in the git repository at:
> 
>   ssh://master.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus.git master
> 
...
> Rusty Russell (19):
>       virtio: Recycle unused recv buffer pages for large skbs in net driver
>       lguest: set max_pfn_mapped, growl loudly at Yinghai Lu
>       lguest: Guest int3 fix
>       lguest: Debugging patch for lguest network performance
>       lguest: fix verbose printing of device features.
>       lguest: virtio-rng support
>       virtio: clarify that ABI is usable by any implementations
>       virtio: don't always force a notification when ring is full
>       lguest: wrap last_avail accesses.
>       lguest: net block unneeded receive queue update notifications
>       lguest: Tell Guest net not to notify us on every packet xmit
>       lguest: Adaptive timeout
>       virtio: Formally reserve bits 28-31 to be 'transport' features.
>       virtio: Rename set_features to finalize_features
>       virtio: Add transport feature handling stub for virtio_ring.

This last one introduces a compile failure; fixup patch below.

Cheers,
Mark.

Subject: [PATCH] virtio: Fix compile error

Include virtio_config.h to fix:

  drivers/virtio/virtio_ring.c: In function ‘vring_transport_features’:
  drivers/virtio/virtio_ring.c:331: error: ‘VIRTIO_TRANSPORT_F_START’ undeclared (first use in this function)
  drivers/virtio/virtio_ring.c:331: error: (Each undeclared identifier is reported only once
  drivers/virtio/virtio_ring.c:331: error: for each function it appears in.)
  drivers/virtio/virtio_ring.c:331: error: ‘VIRTIO_TRANSPORT_F_END’ undeclared (first use in this function)
  make[1]: *** [drivers/virtio/virtio_ring.o] Error 1
  make: *** [drivers/virtio/] Error 2

The include is added by a later patch in Rusty's queue
which wasn't submitted, hence it only coming to light
now.

Signed-off-by: Mark McLoughlin <markmc at redhat.com>
---
 drivers/virtio/virtio_ring.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c
index e2671d5..6eb5303 100644
--- a/drivers/virtio/virtio_ring.c
+++ b/drivers/virtio/virtio_ring.c
@@ -18,6 +18,7 @@
  */
 #include <linux/virtio.h>
 #include <linux/virtio_ring.h>
+#include <linux/virtio_config.h>
 #include <linux/device.h>
 
 #ifdef DEBUG
-- 
1.5.5.1




More information about the Lguest mailing list