diff options
author | Vivek Goyal <vgoyal@in.ibm.com> | 2006-01-11 15:17:37 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-11 21:42:11 -0500 |
commit | 9e9e3941d0a3497c1e7fb9ce62059705825bb775 (patch) | |
tree | 9f0765707996dff85e5ff50f9bfc4b2e9a242c7c /fs | |
parent | fd85d765b75db608500c783e5bc41b63627957c8 (diff) |
[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 <vgoyal@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/proc/vmcore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/vmcore.c b/fs/proc/vmcore.c index 124e35442ac8..4063fb32f78c 100644 --- a/fs/proc/vmcore.c +++ b/fs/proc/vmcore.c | |||
@@ -41,7 +41,7 @@ struct proc_dir_entry *proc_vmcore = NULL; | |||
41 | 41 | ||
42 | /* Reads a page from the oldmem device from given offset. */ | 42 | /* Reads a page from the oldmem device from given offset. */ |
43 | static ssize_t read_from_oldmem(char *buf, size_t count, | 43 | static ssize_t read_from_oldmem(char *buf, size_t count, |
44 | loff_t *ppos, int userbuf) | 44 | u64 *ppos, int userbuf) |
45 | { | 45 | { |
46 | unsigned long pfn, offset; | 46 | unsigned long pfn, offset; |
47 | size_t nr_bytes; | 47 | size_t nr_bytes; |