Skip to contentSkip to conversation

kdump: vmcore compilation warning fix

PATCH New Vivek Goyal 1 participant 1 message Jan 10, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---

fs/proc/vmcore.c renamed from fs/proc/vmcore.c~ppc64-vmcore-compilation-warning-fix +1 -1
diff -puN fs/proc/vmcore.c~ppc64-vmcore-compilation-warning-fix fs/proc/vmcore.c
@@ -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;

_