mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] prevent minix_fs printk type warnings
@ 2003-08-22 22:31 Randy.Dunlap
  0 siblings, 0 replies; only message in thread
From: Randy.Dunlap @ 2003-08-22 22:31 UTC (permalink / raw)
  To: lkml; +Cc: akpm


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 <rddunlap@osdl.org>
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(-)


diff -Naur ./fs/minix/bitmap.c~mnxtypes ./fs/minix/bitmap.c
--- ./fs/minix/bitmap.c~mnxtypes	Fri Aug  8 21:39:25 2003
+++ ./fs/minix/bitmap.c	Fri Aug 22 15:21:46 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, (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--;


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

only message in thread, other threads:[~2003-08-22 23:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-22 22:31 [PATCH] prevent minix_fs printk type warnings Randy.Dunlap

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

all inboxes | Powered by JetHome®