Page 1 of 1

2.2.2-2.6.38.6-201105111839.patch build error

PostPosted: Thu May 12, 2011 12:15 am
by cormander
test/grsecurity-2.2.2-2.6.38.6-201105111839.patch

linux-2.6.38.x-grsec.x86_64

arch/x86/kernel/pvclock.c: In function ‘pvclock_clocksource_read’:
arch/x86/kernel/pvclock.c:128: error: implicit declaration of function ‘atomic64_cmpxchg_unchecked’
make[2]: *** [arch/x86/kernel/pvclock.o] Error 1
make[1]: *** [arch/x86/kernel] Error 2
make[1]: *** Waiting for unfinished jobs....

Re: 2.2.2-2.6.38.6-201105111839.patch build error

PostPosted: Thu May 12, 2011 8:11 am
by PaX Team
cormander wrote:arch/x86/kernel/pvclock.c: In function ‘pvclock_clocksource_read’:
arch/x86/kernel/pvclock.c:128: error: implicit declaration of function ‘atomic64_cmpxchg_unchecked’
thanks, i've fixed this.

Re: 2.2.2-2.6.38.6-201105111839.patch build error

PostPosted: Sun May 15, 2011 12:57 pm
by anarchy
Code: Select all
diff -u linux-2.6.38.6-pax/arch/x86/include/asm/atomic64_64.h linux-2.6.38.6-pax/arch/x86/include/asm/atomic64_64.h
--- linux-2.6.38.6-pax/arch/x86/include/asm/atomic64_64.h   2011-03-15 21:13:58.000000000 +0100
+++ linux-2.6.38.6-pax/arch/x86/include/asm/atomic64_64.h   2011-05-12 10:06:00.000000000 +0200
@@ -364,6 +364,11 @@
    return cmpxchg(&v->counter, old, new);
 }
 
+static inline long atomic64_cmpxchg_unchecked(atomic64_unchecked_t *v, long old, long new)
+{
+   return cmpxchg(&v->counter, old, new);
+}
+
 static inline long atomic64_xchg(atomic64_t *v, long new)
 {
    return xchg(&v->counter, new);


This is the fix that has been implemented