From efb1b286685886b65747ff6633cb450c8ea2e354 Mon Sep 17 00:00:00 2001 From: panda Date: Sun, 15 Nov 2009 14:34:26 +0000 Subject: [PATCH] b=21377 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/lvfs/fsfilt_ext3.c b/lustre/lvfs/fsfilt_ext3.c index 12d991b..b4ac9f3 100644 --- a/lustre/lvfs/fsfilt_ext3.c +++ b/lustre/lvfs/fsfilt_ext3.c @@ -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 */ -- 1.8.3.1