Whamcloud - gitweb
b=21377
authorpanda <panda>
Sun, 15 Nov 2009 14:34:26 +0000 (14:34 +0000)
committerpanda <panda>
Sun, 15 Nov 2009 14:34:26 +0000 (14:34 +0000)
use explicit type cast for find_next_bit to fix the following:

Build has failed, dumping the latest log: http://lts-head.lustre.sun.com:3000/proxy/x86-build-0/FILECACHE-LOG-build-32831/build.log
  Building modules, stage 2.
Making all in ldiskfs
Making all in .

  WARNING: Symbol version dump /cache/build/reused/usr/src/linux-2.6.16.60-0.42.4_lustre.1.8.1.53-obj/x86_64/smp/Module.symvers
           is missing; modules will have no dependencies and modversions.

cc1: warnings being treated as errors
/cache/build/BUILD/lustre-1.8.1.53/lustre/lvfs/fsfilt-ldiskfs.c: In function ���fsfilt_ldiskfs_quotacheck���:
/cache/build/BUILD/lustre-1.8.1.53/lustre/lvfs/fsfilt-ldiskfs.c:2071: warning: passing argument 1 of ���find_next_bit��� from incompatible pointer type
make[8]: *** [/cache/build/BUILD/lustre-1.8.1.53/lustre/lvfs/fsfilt-ldiskfs.s] Error 1

Build succeeds with this patch:

http://lts-head.lustre.sun.com:3000/build_jobs/32832

lustre/lvfs/fsfilt_ext3.c

index 12d991b..b4ac9f3 100644 (file)
@@ -143,7 +143,7 @@ struct fsfilt_cb_data {
 
 #ifndef ext2_find_next_bit
 #ifdef __LITTLE_ENDIAN
-#define ext2_find_next_bit(addr, size, off) find_next_bit((addr), (size), (off))
+#define ext2_find_next_bit(addr, size, off) find_next_bit((unsigned long *)(addr), (size), (off))
 #else
 error "Need implementation of find_next_bit on big-endian systems"
 #endif /* __LITTLE_ENDIAN */