From facdc7a36b96f406fe85efb3c7aad5dabd15b1ad Mon Sep 17 00:00:00 2001 From: walter Date: Thu, 20 Dec 2007 23:13:30 +0000 Subject: [PATCH] b=14390 i=adilger i=green fix problem where b1_6 does not build on xt3 due to missing uint32_t defn in lnet/libcfs/user-bitops.c --- lustre/include/liblustre.h | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/lustre/include/liblustre.h b/lustre/include/liblustre.h index 4e80252..98e4c12 100644 --- a/lustre/include/liblustre.h +++ b/lustre/include/liblustre.h @@ -67,6 +67,7 @@ #include #include #include +#include /* definitions for liblustre */ @@ -192,35 +193,6 @@ typedef int (write_proc_t)(struct file *file, const char *buffer, * to allow the compiler to adjust the bit shifting accordingly */ -/* test if bit nr is set in bitmap addr; returns previous value of bit nr */ -static __inline__ int set_bit(int nr, long * addr) -{ - long mask; - - addr += nr / BITS_PER_LONG; - mask = 1UL << (nr & (BITS_PER_LONG - 1)); - nr = (mask & *addr) != 0; - *addr |= mask; - return nr; -} - -/* clear bit nr in bitmap addr; returns previous value of bit nr*/ -static __inline__ int clear_bit(int nr, long * addr) -{ - long mask; - - addr += nr / BITS_PER_LONG; - mask = 1UL << (nr & (BITS_PER_LONG - 1)); - nr = (mask & *addr) != 0; - *addr &= ~mask; - return nr; -} - -static __inline__ int test_bit(int nr, long * addr) -{ - return ((1UL << (nr & (BITS_PER_LONG - 1))) & ((addr)[nr / BITS_PER_LONG])) != 0; -} - static __inline__ int ext2_set_bit(int nr, void *addr) { return set_bit(nr, (long*)addr); -- 1.8.3.1