Skip to content

Commit

Permalink
[PATCH] kdump: vmcore compilation warning fix
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Vivek Goyal authored and Linus Torvalds committed Jan 12, 2006
1 parent fd85d76 commit 9e9e394
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/proc/vmcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9e9e394

Please sign in to comment.