aboutsummaryrefslogtreecommitdiff
path: root/arch/score/kernel/sys_score.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2009-06-27 15:12:16 +0200
committerArnd Bergmann <arnd@arndb.de>2009-06-27 15:14:58 +0200
commitbddc605955bca2d914ca621a7ef4ca6c271f55d8 (patch)
tree7cbdf36efa44d35d5ee6b7a73771004e8a92bc7f /arch/score/kernel/sys_score.c
parenta1f8213b9518d0e9124a48a34bdd58b4bc2650e5 (diff)
score: fix function prototypes
Syscalls should return 'long' and be marked as 'asmlinkage'. Functions that are only used in a single file should be 'static'. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/score/kernel/sys_score.c')
-rw-r--r--arch/score/kernel/sys_score.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/score/kernel/sys_score.c b/arch/score/kernel/sys_score.c
index 16ace29935b..5b3cc4e685a 100644
--- a/arch/score/kernel/sys_score.c
+++ b/arch/score/kernel/sys_score.c
@@ -34,7 +34,7 @@
unsigned long shm_align_mask = PAGE_SIZE - 1;
EXPORT_SYMBOL(shm_align_mask);
-asmlinkage unsigned long
+asmlinkage unsigned
sys_mmap2(unsigned long addr, unsigned long len, unsigned long prot,
unsigned long flags, unsigned long fd, unsigned long pgoff)
{
@@ -66,7 +66,8 @@ sys_mmap2(unsigned long addr, unsigned long len, unsigned long prot,
* Clone a task - this clones the calling program thread.
* This is called indirectly via a small wrapper
*/
-int score_clone(struct pt_regs *regs)
+asmlinkage long
+score_clone(struct pt_regs *regs)
{
unsigned long clone_flags;
unsigned long newsp;