summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2004-02-23 20:29:27 -0800
committerJeff Garzik <jgarzik@redhat.com>2004-02-23 20:29:27 -0800
commit03d6c5b2945f8f06dfddcd8ef3c67361a499325c (patch)
tree0c02a98a55da151733ca8dc3dcba86ab1f147e75
parent15680951df03078a16edc9cec55310a5f526398c (diff)
[PATCH] CONFIG_REGPARM breaks non-asmlinkage syscalls
With CONFIG_REGPARM=y, syscalls must be declared asmlinkage or else calling them will fail. This fix adds a few missing declarations for sys_fadvise64_64() and sys_remap_file_pages().
-rw-r--r--arch/ia64/ia32/sys_ia32.c2
-rw-r--r--arch/x86_64/ia32/sys_ia32.c2
-rw-r--r--include/linux/mm.h4
-rw-r--r--mm/fremap.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/arch/ia64/ia32/sys_ia32.c b/arch/ia64/ia32/sys_ia32.c
index b2c9c7778835..6eeedd41dc82 100644
--- a/arch/ia64/ia32/sys_ia32.c
+++ b/arch/ia64/ia32/sys_ia32.c
@@ -2990,7 +2990,7 @@ sys32_timer_create(u32 clock, struct sigevent32 *se32, timer_t *timer_id)
return err;
}
-extern long sys_fadvise64_64(int fd, loff_t offset, loff_t len, int advice);
+asmlinkage long sys_fadvise64_64(int fd, loff_t offset, loff_t len, int advice);
long sys32_fadvise64_64(int fd, __u32 offset_low, __u32 offset_high,
__u32 len_low, __u32 len_high, int advice)
diff --git a/arch/x86_64/ia32/sys_ia32.c b/arch/x86_64/ia32/sys_ia32.c
index ddc9e93a4845..335907780081 100644
--- a/arch/x86_64/ia32/sys_ia32.c
+++ b/arch/x86_64/ia32/sys_ia32.c
@@ -1895,7 +1895,7 @@ sys32_timer_create(u32 clock, struct sigevent32 *se32, timer_t *timer_id)
return err;
}
-extern long sys_fadvise64_64(int fd, loff_t offset, loff_t len, int advice);
+asmlinkage long sys_fadvise64_64(int fd, loff_t offset, loff_t len, int advice);
long sys32_fadvise64_64(int fd, __u32 offset_low, __u32 offset_high,
__u32 len_low, __u32 len_high, int advice)
diff --git a/include/linux/mm.h b/include/linux/mm.h
index d21630b8f96d..aa0f2d50c887 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -455,8 +455,8 @@ extern int install_file_pte(struct mm_struct *mm, struct vm_area_struct *vma, un
extern int handle_mm_fault(struct mm_struct *mm,struct vm_area_struct *vma, unsigned long address, int write_access);
extern int make_pages_present(unsigned long addr, unsigned long end);
extern int access_process_vm(struct task_struct *tsk, unsigned long addr, void *buf, int len, int write);
-extern long sys_remap_file_pages(unsigned long start, unsigned long size, unsigned long prot, unsigned long pgoff, unsigned long nonblock);
-extern long sys_fadvise64_64(int fd, loff_t offset, loff_t len, int advice);
+asmlinkage long sys_remap_file_pages(unsigned long start, unsigned long size, unsigned long prot, unsigned long pgoff, unsigned long nonblock);
+asmlinkage long sys_fadvise64_64(int fd, loff_t offset, loff_t len, int advice);
void put_dirty_page(struct task_struct *tsk, struct page *page,
unsigned long address, pgprot_t prot);
diff --git a/mm/fremap.c b/mm/fremap.c
index 9d78500e65f1..dacebb172f6f 100644
--- a/mm/fremap.c
+++ b/mm/fremap.c
@@ -155,7 +155,7 @@ err_unlock:
* protection is used. Arbitrary protections might be implemented in the
* future.
*/
-long sys_remap_file_pages(unsigned long start, unsigned long size,
+asmlinkage long sys_remap_file_pages(unsigned long start, unsigned long size,
unsigned long __prot, unsigned long pgoff, unsigned long flags)
{
struct mm_struct *mm = current->mm;