2.2.2-2.6.38.6-201105111839.patch build error

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

2.2.2-2.6.38.6-201105111839.patch build error

Postby cormander » Thu May 12, 2011 12:15 am

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....
cormander
 
Posts: 154
Joined: Tue Jan 29, 2008 12:51 pm

Re: 2.2.2-2.6.38.6-201105111839.patch build error

Postby PaX Team » Thu May 12, 2011 8:11 am

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.
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Re: 2.2.2-2.6.38.6-201105111839.patch build error

Postby anarchy » Sun May 15, 2011 12:57 pm

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
anarchy
 
Posts: 1
Joined: Sun Aug 16, 2009 8:37 pm


Return to grsecurity support