From 7c09b52026701350fd83f61940cad9f7a69578d9 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Tue, 23 Apr 2002 06:00:12 -0700 Subject: [PATCH] Add a "const" qualifier to test_bit() on x86, to avoid warnings for proper usage. --- include/asm-i386/bitops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/asm-i386/bitops.h b/include/asm-i386/bitops.h index dd98eb28d55a..4e1b7c04df41 100644 --- a/include/asm-i386/bitops.h +++ b/include/asm-i386/bitops.h @@ -244,7 +244,7 @@ static __inline__ int constant_test_bit(int nr, const volatile unsigned long * a return ((1UL << (nr & 31)) & (((const volatile unsigned int *) addr)[nr >> 5])) != 0; } -static __inline__ int variable_test_bit(int nr, volatile unsigned long * addr) +static __inline__ int variable_test_bit(int nr, const volatile unsigned long * addr) { int oldbit; -- 2.39.5