Commit 9e09ffcd authored by David S. Miller's avatar David S. Miller

SPARC64: Fixup build errors from pread64/pwrite64 rename.

parent e372e712
......@@ -3886,14 +3886,14 @@ extern asmlinkage ssize_t sys_pwrite64(unsigned int fd, const char * buf,
typedef __kernel_ssize_t32 ssize_t32;
asmlinkage ssize_t32 sys32_pread(unsigned int fd, char *ubuf,
__kernel_size_t32 count, u32 poshi, u32 poslo)
asmlinkage ssize_t32 sys32_pread64(unsigned int fd, char *ubuf,
__kernel_size_t32 count, u32 poshi, u32 poslo)
{
return sys_pread64(fd, ubuf, count, ((loff_t)AA(poshi) << 32) | AA(poslo));
}
asmlinkage ssize_t32 sys32_pwrite(unsigned int fd, char *ubuf,
__kernel_size_t32 count, u32 poshi, u32 poslo)
asmlinkage ssize_t32 sys32_pwrite64(unsigned int fd, char *ubuf,
__kernel_size_t32 count, u32 poshi, u32 poslo)
{
return sys_pwrite64(fd, ubuf, count, ((loff_t)AA(poshi) << 32) | AA(poslo));
}
......
......@@ -669,18 +669,18 @@ asmlinkage int solaris_facl(unsigned int fd, int cmd, int nentries, u32 aclbufp)
asmlinkage int solaris_pread(unsigned int fd, char *buf, u32 count, u32 pos)
{
ssize_t (*sys_pread)(unsigned int, char *, size_t, loff_t) =
(ssize_t (*)(unsigned int, char *, size_t, loff_t))SYS(pread);
return sys_pread(fd, buf, count, (loff_t)pos);
ssize_t (*sys_pread64)(unsigned int, char *, size_t, loff_t) =
(ssize_t (*)(unsigned int, char *, size_t, loff_t))SYS(pread64);
return sys_pread64(fd, buf, count, (loff_t)pos);
}
asmlinkage int solaris_pwrite(unsigned int fd, char *buf, u32 count, u32 pos)
{
ssize_t (*sys_pwrite)(unsigned int, char *, size_t, loff_t) =
(ssize_t (*)(unsigned int, char *, size_t, loff_t))SYS(pwrite);
return sys_pwrite(fd, buf, count, (loff_t)pos);
ssize_t (*sys_pwrite64)(unsigned int, char *, size_t, loff_t) =
(ssize_t (*)(unsigned int, char *, size_t, loff_t))SYS(pwrite64);
return sys_pwrite64(fd, buf, count, (loff_t)pos);
}
/* POSIX.1 names */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment