From: Arnd Bergmann Date: Fri, 21 Jun 2013 19:55:35 +0000 (+0200) Subject: staging: line6: avoid __sync_fetch_and_{and,or} X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~76^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f613601482c56e05884f21565e3d218fac427ae;p=pandora-kernel.git staging: line6: avoid __sync_fetch_and_{and,or} __sync_fetch_and_and and __sync_fetch_and_or are functions that are provided by gcc and depending on the target architecture may be implemented in libgcc, which is not always available in the kernel. This leads to a build failure on ARMv5: drivers/built-in.o: In function `line6_pcm_release': :(.text+0x3bfe80): undefined reference to `__sync_fetch_and_and_4' drivers/built-in.o: In function `line6_pcm_acquire': :(.text+0x3bff30): undefined reference to `__sync_fetch_and_or_4' To work around this, we can use the kernel-provided cmpxchg macro. Build-tested only. Signed-off-by: Arnd Bergmann Cc: Markus Grabner Acked-by: Randy Dunlap Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed