[U-Boot] [PATCH 3/8]: Define test_and_set/clear_bit for ARM

Simon Kagstrom simon.kagstrom at netinsight.net
Tue Jul 7 15:58:16 CEST 2009


Signed-off-by: Simon Kagstrom <simon.kagstrom at netinsight.net>
---
 include/asm-arm/bitops.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/asm-arm/bitops.h b/include/asm-arm/bitops.h
index e98dd56..2abca0b 100644
--- a/include/asm-arm/bitops.h
+++ b/include/asm-arm/bitops.h
@@ -48,7 +48,7 @@ static inline void __change_bit(int nr, volatile void *addr)
 
 extern int test_and_set_bit(int nr, volatile void * addr);
 
-static inline int __test_and_set_bit(int nr, volatile void *addr)
+extern inline int test_and_set_bit(int nr, volatile void *addr)
 {
 	unsigned int mask = 1 << (nr & 7);
 	unsigned int oldval;
@@ -60,7 +60,7 @@ static inline int __test_and_set_bit(int nr, volatile void *addr)
 
 extern int test_and_clear_bit(int nr, volatile void * addr);
 
-static inline int __test_and_clear_bit(int nr, volatile void *addr)
+extern inline int test_and_clear_bit(int nr, volatile void *addr)
 {
 	unsigned int mask = 1 << (nr & 7);
 	unsigned int oldval;
-- 
1.6.0.4



More information about the U-Boot mailing list