From 7d09d0e3ba11310e973d4302c7fcc3fc2184e04c Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 10 May 2010 21:51:38 -0400 Subject: Fix virtio compile errors on various gcc versions. Gcc 3.4 doesn't like __FUNCTION__ for some reason - use __func__ instead. Gcc 4.5 compiles each .c file independently, so make sure includes are correct for each .c file. --- src/virtio-pci.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/virtio-pci.h') diff --git a/src/virtio-pci.h b/src/virtio-pci.h index 6932036a..9da761dc 100644 --- a/src/virtio-pci.h +++ b/src/virtio-pci.h @@ -1,6 +1,8 @@ #ifndef _VIRTIO_PCI_H #define _VIRTIO_PCI_H +#include "ioport.h" // inl + /* A 32-bit r/o bitmask of the features supported by the host */ #define VIRTIO_PCI_HOST_FEATURES 0 @@ -92,6 +94,7 @@ static inline void vp_del_vq(unsigned int ioaddr, int queue_index) outl(0, ioaddr + VIRTIO_PCI_QUEUE_PFN); } +struct vring_virtqueue; int vp_find_vq(unsigned int ioaddr, int queue_index, struct vring_virtqueue *vq); #endif /* _VIRTIO_PCI_H_ */ -- cgit