[etherlab-dev] compiling with newer kernel gives error: "alloc_netdev" requires 4 arguments, but only 3 given
Alexey Zakharov
alexey.zakharov at gmail.com
Tue Aug 4 00:11:02 CEST 2015
Hello All,
Recently I started to use IgH EtherCAT Master.
There is a following error in ethernet.c and generic.c. It occurs
when complying with linux kernel > 3.17
error: macro "alloc_netdev" requires 4 arguments, but only 3 given
dev->netdev = alloc_netdev(sizeof(ec_gen_device_t *), &null,
ether_setup);
I made a patch which resolves the problem and would like to share it.
Hope it is useful.
best regards,
Alexey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-dev/attachments/20150804/9f449c58/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ethernet.c.patch
Type: text/x-patch
Size: 670 bytes
Desc: not available
URL: <http://lists.etherlab.org/pipermail/etherlab-dev/attachments/20150804/9f449c58/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: generic.c.patch
Type: text/x-patch
Size: 579 bytes
Desc: not available
URL: <http://lists.etherlab.org/pipermail/etherlab-dev/attachments/20150804/9f449c58/attachment-0001.bin>
More information about the etherlab-dev
mailing list