From f214d9419effeb88f2d0d16916cca98fa80f80d3 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Sat, 13 Jul 2013 17:11:52 -0400 Subject: [PATCH] ck_spinlock: Move elision prototype to end of file. --- include/ck_spinlock.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/ck_spinlock.h b/include/ck_spinlock.h index fb4514a..b56f665 100644 --- a/include/ck_spinlock.h +++ b/include/ck_spinlock.h @@ -51,13 +51,6 @@ #define ck_spinlock_locked(x) ck_spinlock_fas_locked(x) #define ck_spinlock_trylock(x) ck_spinlock_fas_trylock(x) -CK_ELIDE_PROTOTYPE(ck_spinlock, ck_spinlock_t, - ck_spinlock_locked, ck_spinlock_lock, - ck_spinlock_locked, ck_spinlock_unlock) - -CK_ELIDE_TRYLOCK_PROTOTYPE(ck_spinlock, ck_spinlock_t, - ck_spinlock_locked, ck_spinlock_trylock) - #ifndef CK_F_SPINLOCK_ANDERSON #define CK_F_SPINLOCK_ANDERSON /* @@ -906,5 +899,12 @@ ck_spinlock_clh_unlock(struct ck_spinlock_clh **thread) } #endif /* CK_F_SPINLOCK_CLH */ +CK_ELIDE_PROTOTYPE(ck_spinlock, ck_spinlock_t, + ck_spinlock_locked, ck_spinlock_lock, + ck_spinlock_locked, ck_spinlock_unlock) + +CK_ELIDE_TRYLOCK_PROTOTYPE(ck_spinlock, ck_spinlock_t, + ck_spinlock_locked, ck_spinlock_trylock) + #endif /* _CK_SPINLOCK_H */