Bug#522289: vzaphfc fails to compile on 2.6.29
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Thu Apr 23 09:24:19 UTC 2009
Hi
Sorry for taking so long to answer on this,
On Thu, Apr 02, 2009 at 03:25:08PM +0200, Art -kwaak- van Breemen wrote:
>
> 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.
>
This 'priv' field was removed to prevent direct access to it.
netdev_priv() should be used instead.
There was a similar issue with wctc4xxp which is in the DAHDI tree:
http://bugs.digium.com/view.php?id=14285
The fixes:
svn diff -c 5842 http://svn.digium.com/svn/dahdi/linux/trunk
svn diff -c 5848 http://svn.digium.com/svn/dahdi/linux/trunk
(The link to the viewer doesn't work now)
I'll try to fix vzaphfc as well.
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
More information about the Pkg-voip-maintainers
mailing list