diff options
author | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2012-12-08 21:33:44 +0100 |
---|---|---|
committer | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2012-12-08 21:48:19 +0100 |
commit | ea40a05422bdc87a7af5dc349e8adce59f982e72 (patch) | |
tree | 536d8598c85fe0ffa525baea568374e6248ee729 /arch/mips/include/asm | |
parent | 0d69d918abff1437c78610dac8b18e8f91917674 (diff) | |
download | u-boot-imx-ea40a05422bdc87a7af5dc349e8adce59f982e72.zip u-boot-imx-ea40a05422bdc87a7af5dc349e8adce59f982e72.tar.gz u-boot-imx-ea40a05422bdc87a7af5dc349e8adce59f982e72.tar.bz2 |
MIPS: constify address pointer in test_bit()
Fix several warnings when enabling UBIFS on MIPS:
In file included from ubifs.h:2137:0,
from ubifs.c:26:
misc.h: In function 'ubifs_zn_dirty':
misc.h:38:2: warning: passing argument 2 of 'test_bit' discards 'const' qualifier from pointer target type [enabled by default]
../include/asm/bitops.h:569:23: note: expected 'volatile void *' but argument is of type 'const long unsigned int *'
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Diffstat (limited to 'arch/mips/include/asm')
-rw-r--r-- | arch/mips/include/asm/bitops.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/include/asm/bitops.h b/arch/mips/include/asm/bitops.h index 1c8f4c0..f2dc533 100644 --- a/arch/mips/include/asm/bitops.h +++ b/arch/mips/include/asm/bitops.h @@ -566,7 +566,7 @@ static __inline__ int __test_and_change_bit(int nr, volatile void * addr) * @nr: bit number to test * @addr: Address to start counting from */ -static __inline__ int test_bit(int nr, volatile void *addr) +static __inline__ int test_bit(int nr, const volatile void *addr) { return ((1UL << (nr & 31)) & (((const unsigned int *) addr)[nr >> 5])) != 0; } |