aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2004-10-18 08:54:02 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-10-18 08:54:02 -0700
commit09b9135c6e9950c0f12e3e6993ae52ab1baf0476 (patch)
treec77619bedfd3f7865ec7d31c29e6a7a7665b2dbb /mm
parent40e39ce0f4eceee04555c45ae9918a017cd1686c (diff)
downloadhistory-09b9135c6e9950c0f12e3e6993ae52ab1baf0476.tar.gz
[PATCH] add missing linux/syscalls.h includes
I found that the prototypes for sys_waitid and sys_fcntl in <linux/syscalls.h> don't match the implementation. In order to keep all prototypes in sync in the future, now include the header from each file implementing any syscall. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/fadvise.c1
-rw-r--r--mm/filemap.c1
-rw-r--r--mm/fremap.c1
-rw-r--r--mm/madvise.c1
-rw-r--r--mm/mincore.c1
-rw-r--r--mm/mlock.c1
-rw-r--r--mm/mprotect.c1
-rw-r--r--mm/mremap.c1
-rw-r--r--mm/msync.c1
-rw-r--r--mm/nommu.c1
-rw-r--r--mm/swapfile.c1
11 files changed, 11 insertions, 0 deletions
diff --git a/mm/fadvise.c b/mm/fadvise.c
index f479387a548615..57264d74b8bff0 100644
--- a/mm/fadvise.c
+++ b/mm/fadvise.c
@@ -15,6 +15,7 @@
#include <linux/backing-dev.h>
#include <linux/pagevec.h>
#include <linux/fadvise.h>
+#include <linux/syscalls.h>
#include <asm/unistd.h>
diff --git a/mm/filemap.c b/mm/filemap.c
index ba5b903ff5850d..3935097dc5cbc5 100644
--- a/mm/filemap.c
+++ b/mm/filemap.c
@@ -27,6 +27,7 @@
#include <linux/pagevec.h>
#include <linux/blkdev.h>
#include <linux/security.h>
+#include <linux/syscalls.h>
/*
* This is needed for the following functions:
* - try_to_release_page
diff --git a/mm/fremap.c b/mm/fremap.c
index fcd6158271598f..1a1c8489a66874 100644
--- a/mm/fremap.c
+++ b/mm/fremap.c
@@ -14,6 +14,7 @@
#include <linux/swapops.h>
#include <linux/rmap.h>
#include <linux/module.h>
+#include <linux/syscalls.h>
#include <asm/mmu_context.h>
#include <asm/cacheflush.h>
diff --git a/mm/madvise.c b/mm/madvise.c
index 0439c560e0b4ce..875a871b73bac3 100644
--- a/mm/madvise.c
+++ b/mm/madvise.c
@@ -7,6 +7,7 @@
#include <linux/mman.h>
#include <linux/pagemap.h>
+#include <linux/syscalls.h>
/*
diff --git a/mm/mincore.c b/mm/mincore.c
index 280abef57c5f64..54ec41221049b0 100644
--- a/mm/mincore.c
+++ b/mm/mincore.c
@@ -11,6 +11,7 @@
#include <linux/pagemap.h>
#include <linux/mm.h>
#include <linux/mman.h>
+#include <linux/syscalls.h>
#include <asm/uaccess.h>
#include <asm/pgtable.h>
diff --git a/mm/mlock.c b/mm/mlock.c
index 662a52109d366f..9cdfcf0036fede 100644
--- a/mm/mlock.c
+++ b/mm/mlock.c
@@ -7,6 +7,7 @@
#include <linux/mman.h>
#include <linux/mm.h>
+#include <linux/syscalls.h>
static int mlock_fixup(struct vm_area_struct * vma,
diff --git a/mm/mprotect.c b/mm/mprotect.c
index 67d02dc0ea0403..befda287dff304 100644
--- a/mm/mprotect.c
+++ b/mm/mprotect.c
@@ -18,6 +18,7 @@
#include <linux/security.h>
#include <linux/mempolicy.h>
#include <linux/personality.h>
+#include <linux/syscalls.h>
#include <asm/uaccess.h>
#include <asm/pgtable.h>
diff --git a/mm/mremap.c b/mm/mremap.c
index 558830585bac0d..cd8af8a8ba4233 100644
--- a/mm/mremap.c
+++ b/mm/mremap.c
@@ -16,6 +16,7 @@
#include <linux/fs.h>
#include <linux/highmem.h>
#include <linux/security.h>
+#include <linux/syscalls.h>
#include <asm/uaccess.h>
#include <asm/cacheflush.h>
diff --git a/mm/msync.c b/mm/msync.c
index 2aaad0418e629c..52f7b1bd8433e1 100644
--- a/mm/msync.c
+++ b/mm/msync.c
@@ -12,6 +12,7 @@
#include <linux/mm.h>
#include <linux/mman.h>
#include <linux/hugetlb.h>
+#include <linux/syscalls.h>
#include <asm/pgtable.h>
#include <asm/tlbflush.h>
diff --git a/mm/nommu.c b/mm/nommu.c
index 9cac9ae08bb0af..68e6b32dea6a64 100644
--- a/mm/nommu.c
+++ b/mm/nommu.c
@@ -19,6 +19,7 @@
#include <linux/vmalloc.h>
#include <linux/blkdev.h>
#include <linux/backing-dev.h>
+#include <linux/syscalls.h>
#include <asm/uaccess.h>
#include <asm/tlb.h>
diff --git a/mm/swapfile.c b/mm/swapfile.c
index b7ecb1bb201496..55bb488aa10f33 100644
--- a/mm/swapfile.c
+++ b/mm/swapfile.c
@@ -25,6 +25,7 @@
#include <linux/rmap.h>
#include <linux/security.h>
#include <linux/backing-dev.h>
+#include <linux/syscalls.h>
#include <asm/pgtable.h>
#include <asm/tlbflush.h>