Commit 2afe8ba3 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Kill warning in minix filesystem on 64-bit archs

From: Peter Chubb <peterc@gelato.unsw.edu.au>

On 64-bit architectures, ino_t is int, not long, so the attached patch
is needed to prevent a warning.
parent 1befd7a5
......@@ -116,7 +116,7 @@ minix_V1_raw_inode(struct super_block *sb, ino_t ino, struct buffer_head **bh)
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 @@ minix_V2_raw_inode(struct super_block *sb, ino_t ino, struct buffer_head **bh)
*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--;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment