Messages in this thread Patch in this message | | | Date | Fri, 26 Jan 2007 10:46:59 -0800 | From | Mark Fasheh <> | Subject | Re: Linux 2.6.20-rc6 - build failure |
| |
On Thu, Jan 25, 2007 at 10:10:00PM +1100, Eyal Lebedinsky wrote: > WARNING: "__udivdi3" [fs/ocfs2/ocfs2.ko] undefined!
Doh! This one is almost definitely my fault. Does the attached patch get rid of that warning for you?
From: Mark Fasheh <mark.fasheh@oracle.com> ocfs2: fix thinko in ocfs2_backup_super_blkno()
Fix a bug which was introduced when I synced up ocfs2_fs.h with ocfs2-tools. We can't do u64/u32 in kernel.
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com> --- fs/ocfs2/ocfs2_fs.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/ocfs2/ocfs2_fs.h b/fs/ocfs2/ocfs2_fs.h index c99e905..e61e218 100644 --- a/fs/ocfs2/ocfs2_fs.h +++ b/fs/ocfs2/ocfs2_fs.h @@ -587,7 +587,7 @@ static inline u64 ocfs2_backup_super_blkno(struct super_block *sb, int index) if (index >= 0 && index < OCFS2_MAX_BACKUP_SUPERBLOCKS) { offset <<= (2 * index); - offset /= sb->s_blocksize; + offset >>= sb->s_blocksize_bits; return offset; } -- 1.4.4.2 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |