X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=fs%2Fread_write.c;h=a698eff457fb6e510c0543c9b762cc8c8d702f23;hb=296b60109e0a2dfae4d22b393744634ca6322822;hp=3ae6dbe828bf9d1e3573e6e99730b681564c195d;hpb=de1a2262b006220dae2561a299a6ea128c46f4fe;p=firefly-linux-kernel-4.4.55.git diff --git a/fs/read_write.c b/fs/read_write.c index 3ae6dbe828bf..a698eff457fb 100644 --- a/fs/read_write.c +++ b/fs/read_write.c @@ -15,6 +15,7 @@ #include #include #include +#include #include "read_write.h" #include @@ -247,6 +248,13 @@ SYSCALL_DEFINE3(lseek, unsigned int, fd, off_t, offset, unsigned int, whence) return retval; } +#ifdef CONFIG_COMPAT +COMPAT_SYSCALL_DEFINE3(lseek, unsigned int, fd, compat_off_t, offset, unsigned int, whence) +{ + return sys_lseek(fd, offset, whence); +} +#endif + #ifdef __ARCH_WANT_SYS_LLSEEK SYSCALL_DEFINE5(llseek, unsigned int, fd, unsigned long, offset_high, unsigned long, offset_low, loff_t __user *, result, @@ -278,7 +286,6 @@ out_putf: } #endif - /* * rw_verify_area doesn't like huge counts. We limit * them to something that fits in "int" so that others