diff options
author | Simon Kagstrom <simon.kagstrom@netinsight.net> | 2009-08-24 09:09:50 +0200 |
---|---|---|
committer | Tom Rix <Tom.Rix@windriver.com> | 2009-10-03 09:04:25 -0500 |
commit | ab32ffa1fdf23b968bbdfcb956ba9c9f5d5361bd (patch) | |
tree | 101e92e9509b22b00030a8feee1daa535b527dcf /include/asm-arm/bitops.h | |
parent | c0072e6cbe5ddf6dea7073fcd21587a3f3a306d8 (diff) | |
download | u-boot-imx-ab32ffa1fdf23b968bbdfcb956ba9c9f5d5361bd.zip u-boot-imx-ab32ffa1fdf23b968bbdfcb956ba9c9f5d5361bd.tar.gz u-boot-imx-ab32ffa1fdf23b968bbdfcb956ba9c9f5d5361bd.tar.bz2 |
Move __set/clear_bit from ubifs.h to bitops.h
__set_bit and __clear_bit are defined in ubifs.h as well as in
asm/include/bitops.h for some architectures. This patch moves
the generic implementation to include/linux/bitops.h and uses
that unless it's defined by the architecture.
Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
Diffstat (limited to 'include/asm-arm/bitops.h')
-rw-r--r-- | include/asm-arm/bitops.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-arm/bitops.h b/include/asm-arm/bitops.h index 4b8bab2..1549da1 100644 --- a/include/asm-arm/bitops.h +++ b/include/asm-arm/bitops.h @@ -29,6 +29,7 @@ static inline void __set_bit(int nr, volatile void *addr) { ((unsigned char *) addr)[nr >> 3] |= (1U << (nr & 7)); } +#define __set_bit extern void clear_bit(int nr, volatile void * addr); @@ -36,6 +37,7 @@ static inline void __clear_bit(int nr, volatile void *addr) { ((unsigned char *) addr)[nr >> 3] &= ~(1U << (nr & 7)); } +#define __clear_bit extern void change_bit(int nr, volatile void * addr); |