Bug#522289: vzaphfc fails to compile on 2.6.29

Art -kwaak- van Breemen ard at telegraafnet.nl
Thu Apr 2 13:25:08 UTC 2009


Package: zaptel-source
Version: 1:1.4.11~dfsg-3

In 2.6.29 net_device does not have the ->priv member anymore.
This is a simple patch to "have" a priv* member in the priv part
of the net_device struct.
It's done like this:
-       chan->netdev->priv = chan;
+       ((struct hfc_chan_duplex **)netdev_priv(chan->netdev))[0] = chan;
So: we allocate a priv section with the size of a *, and hence
get the same functionality back.


Tags: patch

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in email?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-vzaphfc-with-netdev_priv.diff
Type: text/x-diff
Size: 2563 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-voip-maintainers/attachments/20090402/34d54f67/attachment.diff 


More information about the Pkg-voip-maintainers mailing list