atomic: Fix compilation error

Add static to inline definition of atomicCmpXchgPtr, also fix incorrect
cast.

Change-Id: I6b74a276149786283fadeaff0c7e8612fcee3e76
1 file changed