summaryrefslogtreecommitdiff
path: root/drivers/staging/speakup/keyhelp.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2013-06-21 21:55:35 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-24 15:56:09 -0700
commit9f613601482c56e05884f21565e3d218fac427ae (patch)
tree1c7ad18452c2f0811bc495e6bdd1245fd43ed810 /drivers/staging/speakup/keyhelp.c
parent5c1f62a75ca29d91606fd6e8bdeb2cff88086e0f (diff)
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 <arnd@arndb.de> Cc: Markus Grabner <grabner@icg.tugraz.at> Acked-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/speakup/keyhelp.c')
0 files changed, 0 insertions, 0 deletions