Whamcloud - gitweb
linlustre: mark second argument of test_bit() const
authornikita <nikita>
Thu, 22 Jun 2006 21:52:45 +0000 (21:52 +0000)
committernikita <nikita>
Thu, 22 Jun 2006 21:52:45 +0000 (21:52 +0000)
lustre/include/liblustre.h

index 2bc0dcd..aaa369d 100644 (file)
@@ -212,7 +212,7 @@ static __inline__ int clear_bit(int nr, long * addr)
         return nr;
 }
 
-static __inline__ int test_bit(int nr, long * addr)
+static __inline__ int test_bit(int nr, const long * addr)
 {
         return ((1UL << (nr & (BITS_PER_LONG - 1))) & ((addr)[nr / BITS_PER_LONG])) != 0;
 }