> On 2014-03-11 16:18, Anders Blomdell wrote:
>> On 2014-03-11 14:23, VU Huy Cong wrote:
>>>>
>>>> On 2014-02-27 16:06, Anders Blomdell wrote:
>>>>> ...due to the lack of create_proc_entry in newer kernels.
>>>>>
>>>>> ...
>>>>>
>>>>> Is a stack/kcompat.h (and changes to stack/rtnet_module.c) the way to
>>> handle this?
>>>>>
>>>>
>>>> Attached is a first shot at making rtnet run with 3.10.18. So far only
>>>> the parts I'm interested in are touched, but if you think it looks OK,
>>>> I'll
>>>> look inte the rest next week.
>>>>
>>>> Regards
>>>>
>>>> Anders
>>>>
>>>
>>> Hi Anders,
>>>
>>> I'm interested in your patch. Could you post the rest of the patch
>>> modification here? After your patch there are still errors due to the
>>> compilation. Here's what I got:
>>>
>>> .
>>> .
>>> .
>>> /usr/src/rtnet-code/stack/ipv4/route.c: In function
>>> ârtnet_ipv4_route_showâ:
>>> /usr/src/rtnet-code/stack/ipv4/route.c:132:3: warning: label âdoneâ
>>> defined
>>> but not used [-Wunused-label]
>>> CC [M] /usr/src/rtnet-code/stack/ipv4/protocol.o
>>> CC [M] /usr/src/rtnet-code/stack/ipv4/arp.o
>>> CC [M] /usr/src/rtnet-code/stack/ipv4/af_inet.o
>>> /usr/src/rtnet-code/stack/ipv4/af_inet.c: In function
>>> ârt_ipv4_proto_initâ:
>>> /usr/src/rtnet-code/stack/ipv4/af_inet.c:308:5: error: implicit
>>> declaration
>>> of function âcreate_proc_entryâ
>>> [-Werror=implicit-function-declaration]
>>> /usr/src/rtnet-code/stack/ipv4/af_inet.c:308:20: warning: assignment
>>> makes
>>> pointer from integer without a cast [enabled by default]
>>> cc1: some warnings being treated as errors
>>> make[5]: *** [/usr/src/rtnet-code/stack/ipv4/af_inet.o] Error 1
>>> make[4]: *** [_module_/usr/src/rtnet-code/stack/ipv4] Error 2
>>> make[4]: Leaving directory `/usr/src/linux-3.10.18'
>>> make[3]: *** [all-local.ko] Error 2
>>> make[3]: Leaving directory `/usr/src/rtnet-code/stack/ipv4'
>>> make[2]: *** [all-recursive] Error 1
>>> make[2]: Leaving directory `/usr/src/rtnet-code/stack/ipv4'
>>> make[1]: *** [all-recursive] Error 1
>>> make[1]: Leaving directory `/usr/src/rtnet-code/stack'
>>> make: *** [all-recursive] Error 1
>> I know, don't use IPv4 from RTnet here, so that is disabled. Wanted
>> Jan's
>> keen eye before doing a lot of work (basically I would need input on
>> what
>> compatibility stuff is needed to support older kernels [some kernel list
>> macros has changed signature, ugh...])
>>
>> I will not have time this week, but maybe next...
>
> Sorry, still had no time to look at this very welcome fix/cleanup. It's
> scheduled for my vacation days in about two weeks.
>
> Jan
>
>
After disabling the IPv4, there are still problems for some define in
e1000e driver:
/usr/src/rtnet-code/drivers/e1000e/netdev.c: In function e1000_set_multi:
/usr/src/rtnet-code/drivers/e1000e/netdev.c:2207:25: error:
NETIF_F_HW_VLAN_RX undeclared (first use in this function)
/usr/src/rtnet-code/drivers/e1000e/netdev.c:2207:25: note: each undeclared
identifier is reported only once for each function it appears in
/usr/src/rtnet-code/drivers/e1000e/netdev.c: In function e1000_probe:
/usr/src/rtnet-code/drivers/e1000e/netdev.c:4105:8: error:
NETIF_F_HW_VLAN_RX undeclared (first use in this function)
/usr/src/rtnet-code/drivers/e1000e/netdev.c:4106:8: error:
NETIF_F_HW_VLAN_TX undeclared (first use in this function)
/usr/src/rtnet-code/drivers/e1000e/netdev.c:4113:23: error:
NETIF_F_HW_VLAN_FILTER undeclared (first use in this function)
If you have time take a look at it, it's not very urgent so I can wait.
Thanks a lot,
Huy Cong
|