Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.1
open-vm-tools
open-vm-tools-vmxnet+kernel-3.0.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File open-vm-tools-vmxnet+kernel-3.0.patch of Package open-vm-tools
Index: modules/linux/shared/compat_netdevice.h =================================================================== --- modules/linux/shared/compat_netdevice.h.orig +++ modules/linux/shared/compat_netdevice.h @@ -182,7 +182,7 @@ compat_alloc_netdev(int priv_size, * All compat_* business is good but when we can we should just provide * missing implementation to ease upstreaming task. */ -#ifndef HAVE_ALLOC_NETDEV +#if !defined(HAVE_ALLOC_NETDEV) && LINUX_VERSION_CODE < KERNEL_VERSION(3,0,0) #define alloc_netdev(sz, name, setup) compat_alloc_netdev(sz, name, setup) #define alloc_etherdev(sz) compat_alloc_etherdev(sz) #endif @@ -191,7 +191,7 @@ compat_alloc_netdev(int priv_size, #define free_netdev(dev) kfree(dev) #endif -#ifndef HAVE_NETDEV_PRIV +#if !defined(HAVE_NETDEV_PRIV) && LINUX_VERSION_CODE < KERNEL_VERSION(3,0,0) #define netdev_priv(dev) ((dev)->priv) #endif @@ -203,7 +203,7 @@ compat_alloc_netdev(int priv_size, # define COMPAT_NETDEV_TX_BUSY 1 #endif -#ifndef HAVE_NETIF_QUEUE +#if !defined(HAVE_NETIF_QUEUE) && LINUX_VERSION_CODE < KERNEL_VERSION(3,0,0) static inline void netif_start_queue(struct device *dev) { Index: modules/linux/vmxnet/vmxnet.c =================================================================== --- modules/linux/vmxnet/vmxnet.c.orig +++ modules/linux/vmxnet/vmxnet.c @@ -64,6 +64,10 @@ static int vmxnet_debug = 1; #define VMW_HAVE_POLL_CONTROLLER #endif +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,0,0) +#define HAVE_NET_DEVICE_OPS +#endif + static int vmxnet_open(struct net_device *dev); static int vmxnet_start_tx(struct sk_buff *skb, struct net_device *dev); #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor