Next March 25: staging/epl build break.
Hi Greg,
Quoted 9 lines
Today's next x86 randconfig build failed with
drivers/staging/epl/VirtualEthernetLinux.c: In function VEthAddInstance:drivers/staging/epl/VirtualEthernetLinux.c:302: error: structnet_devicehas no member named opendrivers/staging/epl/VirtualEthernetLinux.c:303: error: structnet_devicehas no member named stopdrivers/staging/epl/VirtualEthernetLinux.c:304: error: structnet_devicehas no member namedget_statsdrivers/staging/epl/VirtualEthernetLinux.c:305: error: structnet_devicehas no member namedhard_start_xmitdrivers/staging/epl/VirtualEthernetLinux.c:306: error: structnet_devicehas no member namedtx_timeout
The above build problem reported by Sachin can be fixed with the patch below. However, it still will leave with the following warnings, which i think can be ignored:
drivers/staging/epl/VirtualEthernetLinux.c:164: warning: ‘VEthOpen’ defined but not used drivers/staging/epl/VirtualEthernetLinux.c:183: warning: ‘VEthClose’ defined but not used drivers/staging/epl/VirtualEthernetLinux.c:196: warning: ‘VEthXmit’ defined but not used drivers/staging/epl/VirtualEthernetLinux.c:231: warning: ‘VEthGetStats’ defined but not used drivers/staging/epl/VirtualEthernetLinux.c:238: warning: ‘VEthTimeout’ defined but not used
Quoted 4 lines
.config attached.
Thanks
-Sachin
---
linux-2.6.29/drivers/staging/epl/Kconfig +1 -0
@@ -1,6 +1,7 @@ config EPL tristate "openPOWERLINK protocol stack" depends on NET && HIGH_RES_TIMERS && X86 + depends on COMPAT_NET_DEV_OPS default N ---help--- Enable support for the openPOWERLINK network protocol stack.
linux-2.6.29/drivers/staging/epl/VirtualEthernetLinux.c +2 -0
@@ -299,11 +299,13 @@ tEplKernel VEthAddInstance(tEplDllkInitP goto Exit; } +#ifdef CONFIG_COMPAT_NET_DEV_OPS pVEthNetDevice_g->open = VEthOpen; pVEthNetDevice_g->stop = VEthClose; pVEthNetDevice_g->get_stats = VEthGetStats; pVEthNetDevice_g->hard_start_xmit = VEthXmit; pVEthNetDevice_g->tx_timeout = VEthTimeout; +#endif pVEthNetDevice_g->watchdog_timeo =EPL_VETH_TX_TIMEOUT ; pVEthNetDevice_g->destructor = free_netdev;
--
Regards--
Subrata