Iain Paton <[EMAIL PROTECTED]> writes: > Trying to build against 2.6.24 gives the following: > > CC [M] /root/kvm/kvm-guest-drivers-linux-1/virtio_net.o > /root/kvm/kvm-guest-drivers-linux-1/virtio_net.c: In function 'receive_skb': > /root/kvm/kvm-guest-drivers-linux-1/virtio_net.c:101: error: implicit > declaration of function 'skb_partial_csum_set' > make[2]: *** [/root/kvm/kvm-guest-drivers-linux-1/virtio_net.o] Error 1 > make[1]: *** [_module_/root/kvm/kvm-guest-drivers-linux-1] Error 2
This change fixes the build here. --- external-module-compat.h~ 2008-03-06 21:08:36.000000000 +1300 +++ external-module-compat.h 2008-03-07 15:49:57.000000000 +1300 @@ -13,6 +13,8 @@ #define COMPAT_cb_softirq #endif +#define COMPAT_csum_offset + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24) struct virtio_device_id { @@ -63,8 +65,6 @@ } while(0) #define netif_rx_schedule(dev, napi) netif_rx_schedule(dev) -#define COMPAT_csum_offset - #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23) #define scsi_cmd_ioctl(filp, rq, gendisk, cmd, data) \ -- Paul Collins Wellington, New Zealand Dag vijandelijk luchtschip de huismeester is dood ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel