From 03d6c5b2945f8f06dfddcd8ef3c67361a499325c Mon Sep 17 00:00:00 2001 From: Andreas Gruenbacher Date: Mon, 23 Feb 2004 20:29:27 -0800 Subject: [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(). --- include/linux/mm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/linux') 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); -- cgit v1.2.3