These functions are not defined in atomic.h.Please check if there are equivalent functions in atomic.h and replace the existing calls with calls to those functions (with an ifdef for ppc).
Raja From: Vigneshwaran R <[email protected]<mailto:[email protected]>> Date: Sunday, August 9, 2015 at 11:10 PM To: Pedro Marques <[email protected]<mailto:[email protected]>>, "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: Re: [opencontrail-dev] Getting Error while porting contrail-vrouter to power-pc platform Hi Pedro, I'm getting same error even after including atomic.h file.. Is any other stuff missing ?? On Fri, Aug 7, 2015 at 10:39 PM, ViGnEsHwArAn R <[email protected]<mailto:[email protected]>> wrote: OK Pedro, I will try thanks On 7 Aug 2015 22:32, Pedro Marques <[email protected]<mailto:[email protected]>> wrote: These symbols are generated by gcc's atomic builtins but the kernel is compiled without libgcc. You can use the kernel's atomic.h header file instead. https://github.com/torvalds/linux/blob/master/arch/powerpc/include/asm/atomic.h I'm assuming that atomic.h will be defined for intel also... we can use this header rather than the gcc builtins in the kernel module. On Aug 7, 2015, at 4:23 AM, Vigneshwaran R <[email protected]<mailto:[email protected]>> wrote: Hi, I am porting vrouter-agent to powerpc platform.While compiling the kernel module i am getting following warnings. While inserting the kernel module it throws the same error. WARNING: "__sync_fetch_and_add_8" undefined WARNING: "__sync_sub_and_fetch_8" undefined Can Anyone tell me how to resolve this issue ??? Thank you.. _______________________________________________ Dev mailing list [email protected]<mailto:[email protected]> http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org
_______________________________________________ Dev mailing list [email protected] http://lists.opencontrail.org/mailman/listinfo/dev_lists.opencontrail.org
