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
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech
_______________________________________________ RTnet-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rtnet-developers

