Getting WARNING: "__sync_fetch_and_add_8" undefined WARNING: "__sync_sub_and_fetch_8" undefined

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Getting WARNING: "__sync_fetch_and_add_8" undefined WARNING: "__sync_sub_and_fetch_8" undefined

964 Views
vigneshr
Contributor III

Hi,

I am porting some source code to powerpc platform.While compiling the kernel module i am getting following warnings. While inserting the kernel module it throws the warning as 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..

Labels (1)
0 Kudos
2 Replies

804 Views
bpe
NXP Employee
NXP Employee

The kernel source, at least for the version from  SDK 1.8, does not contain the  symbols you mentioned at all. Check your header files for

their definition. If you are porting a third-party software, consult at it's vendor or maintainer.


Have a great day,
Platon

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

804 Views
vigneshr
Contributor III

ok thanks..

0 Kudos