Kill warning in minix filesystem on 64-bit archs (2.6.0-test3)

From: Peter Chubb <peterc_at_gelato.unsw.edu.au>
Date: 2003-08-11 12:13:46
On 64-bit architectures, ino_t is int, not long, so the attached patch
is needed to prevent a warning.

Andrew, I can't find a maintainer for the MINIX filesystem --- can you
please push this one along?


===== fs/minix/bitmap.c 1.10 vs edited =====
--- 1.10/fs/minix/bitmap.c	Thu May 23 23:18:51 2002
+++ edited/fs/minix/bitmap.c	Thu Aug  7 11:56:55 2003
@@ -116,7 +116,7 @@
 
 	if (!ino || ino > sbi->s_ninodes) {
 		printk("Bad inode number on dev %s: %ld is out of range\n",
-		       sb->s_id, ino);
+		       sb->s_id, (long)ino);
 		return NULL;
 	}
 	ino--;
@@ -141,7 +141,7 @@
 	*bh = NULL;
 	if (!ino || ino > sbi->s_ninodes) {
 		printk("Bad inode number on dev %s: %ld is out of range\n",
-		       sb->s_id, ino);
+		       sb->s_id, (long)ino);
 		return NULL;
 	}
 	ino--;


--
Dr Peter Chubb     http://www.gelato.unsw.edu.au  peterc_at_gelato.unsw.edu.au
You are lost in a maze of BitKeeper repositories,   all slightly different.

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Sun Aug 10 22:16:31 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:16 EST