From: Vivek Goyal Date: Wed, 11 Jan 2006 20:17:37 +0000 (-0800) Subject: [PATCH] kdump: vmcore compilation warning fix X-Git-Tag: v2.6.16-rc1~404 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e9e3941d0a3497c1e7fb9ce62059705825bb775;p=linux-2.6 [PATCH] kdump: vmcore compilation warning fix o fs/proc/vmcore.c compilation gives warnings on ppc64. The reason being that u64 is defined as unsigned long hence u64* is not same as loff_t* and compiler cribs. o Changed the parameter type to u64* instead of loff_t* to resolve the conflict. Signed-off-by: Vivek Goyal Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/proc/vmcore.c b/fs/proc/vmcore.c index 124e35442a..4063fb32f7 100644 --- a/fs/proc/vmcore.c +++ b/fs/proc/vmcore.c @@ -41,7 +41,7 @@ struct proc_dir_entry *proc_vmcore = NULL; /* Reads a page from the oldmem device from given offset. */ static ssize_t read_from_oldmem(char *buf, size_t count, - loff_t *ppos, int userbuf) + u64 *ppos, int userbuf) { unsigned long pfn, offset; size_t nr_bytes;