Subject: Undefined reference to `__bad_cmpxchg'
From:Christian Schrötter <vserver@lists.kb19.at>
Date: Tue, 27 May 2014 15:49:43 +0200

Hi all,

I ran into a strange error while upgrading my custom kernel from 3.2.51 
to 3.2.59 on my Raspberry Pi with 2.3.2.16 VS patches:

>   LD      .tmp_vmlinux1
> fs/built-in.o: In function `ext4_set_inode_flags':
> file.c:(.text+0x6b3c8): undefined reference to `__bad_cmpxchg'
> file.c:(.text+0x6b3e4): undefined reference to `__bad_cmpxchg'
> make: *** [.tmp_vmlinux1] Error 1

My kernel config is unchanged (except DUMMY=m) and I don't know what's 
the problem. The previous version (3.2.51) works like a charm.

I've tested many different settings, with and without VS-patches, with 
and without RPi+ patches - only the RPi+ VS version is affected. Any 
ideas what could be wrong?

I'm using the RPi+ kernel 
(https://github.com/raspberrypi/linux/tree/rpi-3.2.27) and patched it 
from .27 to .59, this procedure worked since 2012.


-- 
With kind regards,
Christian Schrötter