The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / owl-linux / 0002-fix-for-linux-3.3.x.patch
1 Kernel commit b81693d9149c598302e8eb9c20cb20330d922c8e changed the
2 net_device_ops structure, removing the ndo_set_multicast_list callback. The
3 ndo_set_rx_mode has also been added to this structure.
4
5 The upshot of these changes is that owl-linux fails to compile with 3.3.x
6 and later kernels.
7
8 Signed-off-by: Simon Dawson <spdawson@gmail.com>
9 diff -Nurp a/owl_net.c b/owl_net.c
10 --- a/owl_net.c 2012-06-14 10:51:45.000000000 +0100
11 +++ b/owl_net.c 2012-07-20 13:16:28.772351464 +0100
12 @@ -384,7 +384,9 @@ static const struct net_device_ops netde
13  #endif /* OWL_CONFIG_IFUPDOWN */
14          .ndo_start_xmit         = owl_net_tx,
15          .ndo_get_stats          = owl_net_get_stats,
16 +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0)
17          .ndo_set_multicast_list = NULL,
18 +#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(3,3,0) */
19          .ndo_tx_timeout         = owl_net_tx_timeout,
20          .ndo_set_mac_address    = NULL,
21  };