summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2003-02-11 21:08:24 -0800
committerLinus Torvalds <torvalds@penguin.transmeta.com>2003-02-11 21:08:24 -0800
commitf979631fa01ec4ab6799e57d2e75d5bd0790c454 (patch)
tree31b1c954637da990c70acb240c44b80fd782f121
parent224ebf7590571732321a0bdd91900aa9c6bbbdbe (diff)
[PATCH] fix fadvise64() return type
Patch from: David Mosberger <davidm@napali.hpl.hp.com> Please remember to declare the return-type of syscall stubs as "long". On 64-bit platforms, it's generally necessary to ensure that the entire 64-bit return value is valid (and can be checked against negative values).
-rw-r--r--mm/fadvise.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/fadvise.c b/mm/fadvise.c
index 9503b65076a1..a14b89271e80 100644
--- a/mm/fadvise.c
+++ b/mm/fadvise.c
@@ -20,7 +20,7 @@
* POSIX_FADV_WILLNEED could set PG_Referenced, and POSIX_FADV_NOREUSE could
* deactivate the pages and clear PG_Referenced.
*/
-int sys_fadvise64(int fd, loff_t offset, size_t len, int advice)
+long sys_fadvise64(int fd, loff_t offset, size_t len, int advice)
{
struct file *file = fget(fd);
struct inode *inode;