* [PATCH] kdump: vmcore compilation warning fix
@ 2006-01-10 7:04 Vivek Goyal
0 siblings, 0 replies; only message in thread
From: Vivek Goyal @ 2006-01-10 7:04 UTC (permalink / raw)
To: Morton Andrew Morton
Cc: linux kernel mailing list, linuxppc64-dev, Fastboot mailing list
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 <vgoyal@in.ibm.com>
---
diff -puN fs/proc/vmcore.c~ppc64-vmcore-compilation-warning-fix fs/proc/vmcore.c
--- linux-2.6.15-mm2-1M/fs/proc/vmcore.c~ppc64-vmcore-compilation-warning-fix 2006-01-09 06:59:06.000000000 -0800
+++ linux-2.6.15-mm2-1M-root/fs/proc/vmcore.c 2006-01-09 07:37:06.000000000 -0800
@@ -42,7 +42,7 @@ struct proc_dir_entry *proc_vmcore = NUL
/* 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;
_
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-01-10 7:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-10 7:04 [PATCH] kdump: vmcore compilation warning fix Vivek Goyal
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®