public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* Kill warning in minix filesystem on 64-bit archs (2.6.0-test3)
@ 2003-08-11  2:13 Peter Chubb
  0 siblings, 0 replies; only message in thread
From: Peter Chubb @ 2003-08-11  2:13 UTC (permalink / raw)
  To: linux-ia64


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@gelato.unsw.edu.au
You are lost in a maze of BitKeeper repositories,   all slightly different.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-08-11  2:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-11  2:13 Kill warning in minix filesystem on 64-bit archs (2.6.0-test3) Peter Chubb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox