Skip to contentSkip to conversation

prevent minix_fs printk type warnings

PATCH New Randy.Dunlap 1 participant 1 message Aug 22, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 prevent minix_fs printk type warnings

Building on 64-bit (ia64) produces printk data type warnings because ino_t is unsigned int there and unsigned long on x86.

--
~Randy

patch_name: minix_printk.patch
patch_version: 2003-08-22.15:25:32
author: Randy.Dunlap <[email protected]>
description: prevent printk() type warnings in minix fs
product: Linux
product_versions: 260-test3
diffstat: =

 fs/minix/bitmap.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
fs/minix/bitmap.c renamed from fs/minix/bitmap.c~mnxtypes +2 -2
diff -Naur ./fs/minix/bitmap.c~mnxtypes ./fs/minix/bitmap.c
@@ -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, (unsigned 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, (unsigned long)ino);
 		return NULL;
 	}
 	ino--;