Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 389762 Details for
Bug 526652
app-emulation/virtualbox-modules-4.2.24 with kernel 3.17.1 - .../work/vboxnetadp/linux/VBoxNetAdp-linux.c:186:48: error: macro "alloc_netdev" requires 4 arguments, but only 3 given
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix alloc_netdev issue with 3.17 kernel
alloc_netdev_3.17.patch (text/plain), 2.00 KB, created by
Paul Sands
on 2014-11-19 16:30:12 UTC
(
hide
)
Description:
Patch to fix alloc_netdev issue with 3.17 kernel
Filename:
MIME Type:
Creator:
Paul Sands
Created:
2014-11-19 16:30:12 UTC
Size:
2.00 KB
patch
obsolete
>diff -pru5 -- VirtualBox-4.3.14/src/VBox/HostDrivers/VBoxNetAdp/linux/VBoxNetAdp-linux.c VirtualBox-4.3.14.patched/src/VBox/HostDrivers/VBoxNetAdp/linux/VBoxNetAdp-linux.c >--- VirtualBox-4.3.14/vboxnetadp/linux/VBoxNetAdp-linux.c 2014-07-15 19:24:57.000000000 +0200 >+++ VirtualBox-4.3.14.patched/vboxnetadp/linux/VBoxNetAdp-linux.c 2014-08-18 13:52:24.292185943 +0200 >@@ -50,10 +50,29 @@ > #define VBOXNETADP_LINUX_NAME "vboxnet%d" > #define VBOXNETADP_CTL_DEV_NAME "vboxnetctl" > > #define VBOXNETADP_FROM_IFACE(iface) ((PVBOXNETADP) ifnet_softc(iface)) > >+/******************************* >+source for the 4th parameter alloc_netdev fix for kernel 3.17-rc1 is: >+https://github.com/proski/madwifi/commit/c5246021b7b8580c2aeb0a145903acc07d246ac1 >+*/ >+#ifndef NET_NAME_UNKNOWN >+#undef alloc_netdev >+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23) >+#define alloc_netdev(sizeof_priv, name, name_assign_type, setup) \ >+ alloc_netdev(sizeof_priv, name, setup) >+#elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38) >+#define alloc_netdev(sizeof_priv, name, name_assign_type, setup) \ >+ alloc_netdev_mq(sizeof_priv, name, setup, 1) >+#else >+#define alloc_netdev(sizeof_priv, name, name_assign_type, setup) \ >+ alloc_netdev_mqs(sizeof_priv, name, setup, 1, 1) >+#endif >+#endif >+/*******************************/ >+ > /******************************************************************************* > * Internal Functions * > *******************************************************************************/ > static int VBoxNetAdpLinuxInit(void); > static void VBoxNetAdpLinuxUnload(void); >@@ -181,10 +200,11 @@ int vboxNetAdpOsCreate(PVBOXNETADP pThis > struct net_device *pNetDev; > > /* No need for private data. */ > pNetDev = alloc_netdev(sizeof(VBOXNETADPPRIV), > pThis->szName[0] ? pThis->szName : VBOXNETADP_LINUX_NAME, >+ NET_NAME_UNKNOWN, > vboxNetAdpNetDevInit); > if (pNetDev) > { > int err; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 526652
: 389762 |
392130
|
392132