aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/score/kernel/signal.c22
-rw-r--r--arch/score/kernel/sys_score.c5
-rw-r--r--arch/score/kernel/time.c2
3 files changed, 17 insertions, 12 deletions
diff --git a/arch/score/kernel/signal.c b/arch/score/kernel/signal.c
index 1634aaa7c2ba..afbfe33dcf17 100644
--- a/arch/score/kernel/signal.c
+++ b/arch/score/kernel/signal.c
@@ -42,7 +42,7 @@ struct rt_sigframe {
42 struct ucontext rs_uc; 42 struct ucontext rs_uc;
43}; 43};
44 44
45int setup_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) 45static int setup_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc)
46{ 46{
47 int err = 0; 47 int err = 0;
48 unsigned long reg; 48 unsigned long reg;
@@ -76,7 +76,7 @@ int setup_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc)
76 return err; 76 return err;
77} 77}
78 78
79int restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc) 79static int restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc)
80{ 80{
81 int err = 0; 81 int err = 0;
82 u32 reg; 82 u32 reg;
@@ -118,8 +118,8 @@ int restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc)
118/* 118/*
119 * Determine which stack to use.. 119 * Determine which stack to use..
120 */ 120 */
121void __user *get_sigframe(struct k_sigaction *ka, struct pt_regs *regs, 121static void __user *get_sigframe(struct k_sigaction *ka,
122 size_t frame_size) 122 struct pt_regs *regs, size_t frame_size)
123{ 123{
124 unsigned long sp; 124 unsigned long sp;
125 125
@@ -134,7 +134,8 @@ void __user *get_sigframe(struct k_sigaction *ka, struct pt_regs *regs,
134 return (void __user*)((sp - frame_size) & ~7); 134 return (void __user*)((sp - frame_size) & ~7);
135} 135}
136 136
137int score_sigaltstack(struct pt_regs *regs) 137asmlinkage long
138score_sigaltstack(struct pt_regs *regs)
138{ 139{
139 const stack_t __user *uss = (const stack_t __user *) regs->regs[4]; 140 const stack_t __user *uss = (const stack_t __user *) regs->regs[4];
140 stack_t __user *uoss = (stack_t __user *) regs->regs[5]; 141 stack_t __user *uoss = (stack_t __user *) regs->regs[5];
@@ -143,7 +144,8 @@ int score_sigaltstack(struct pt_regs *regs)
143 return do_sigaltstack(uss, uoss, usp); 144 return do_sigaltstack(uss, uoss, usp);
144} 145}
145 146
146void score_rt_sigreturn(struct pt_regs *regs) 147asmlinkage long
148score_rt_sigreturn(struct pt_regs *regs)
147{ 149{
148 struct rt_sigframe __user *frame; 150 struct rt_sigframe __user *frame;
149 sigset_t set; 151 sigset_t set;
@@ -183,9 +185,11 @@ void score_rt_sigreturn(struct pt_regs *regs)
183 185
184badframe: 186badframe:
185 force_sig(SIGSEGV, current); 187 force_sig(SIGSEGV, current);
188
189 return 0;
186} 190}
187 191
188int setup_rt_frame(struct k_sigaction *ka, struct pt_regs *regs, 192static int setup_rt_frame(struct k_sigaction *ka, struct pt_regs *regs,
189 int signr, sigset_t *set, siginfo_t *info) 193 int signr, sigset_t *set, siginfo_t *info)
190{ 194{
191 struct rt_sigframe __user *frame; 195 struct rt_sigframe __user *frame;
@@ -238,7 +242,7 @@ give_sigsegv:
238 return -EFAULT; 242 return -EFAULT;
239} 243}
240 244
241int handle_signal(unsigned long sig, siginfo_t *info, 245static int handle_signal(unsigned long sig, siginfo_t *info,
242 struct k_sigaction *ka, sigset_t *oldset, struct pt_regs *regs) 246 struct k_sigaction *ka, sigset_t *oldset, struct pt_regs *regs)
243{ 247{
244 int ret; 248 int ret;
@@ -278,7 +282,7 @@ int handle_signal(unsigned long sig, siginfo_t *info,
278 return ret; 282 return ret;
279} 283}
280 284
281void do_signal(struct pt_regs *regs) 285static void do_signal(struct pt_regs *regs)
282{ 286{
283 struct k_sigaction ka; 287 struct k_sigaction ka;
284 sigset_t *oldset; 288 sigset_t *oldset;
diff --git a/arch/score/kernel/sys_score.c b/arch/score/kernel/sys_score.c
index 16ace29935bb..5b3cc4e685ae 100644
--- a/arch/score/kernel/sys_score.c
+++ b/arch/score/kernel/sys_score.c
@@ -34,7 +34,7 @@
34unsigned long shm_align_mask = PAGE_SIZE - 1; 34unsigned long shm_align_mask = PAGE_SIZE - 1;
35EXPORT_SYMBOL(shm_align_mask); 35EXPORT_SYMBOL(shm_align_mask);
36 36
37asmlinkage unsigned long 37asmlinkage unsigned
38sys_mmap2(unsigned long addr, unsigned long len, unsigned long prot, 38sys_mmap2(unsigned long addr, unsigned long len, unsigned long prot,
39 unsigned long flags, unsigned long fd, unsigned long pgoff) 39 unsigned long flags, unsigned long fd, unsigned long pgoff)
40{ 40{
@@ -66,7 +66,8 @@ sys_mmap2(unsigned long addr, unsigned long len, unsigned long prot,
66 * Clone a task - this clones the calling program thread. 66 * Clone a task - this clones the calling program thread.
67 * This is called indirectly via a small wrapper 67 * This is called indirectly via a small wrapper
68 */ 68 */
69int score_clone(struct pt_regs *regs) 69asmlinkage long
70score_clone(struct pt_regs *regs)
70{ 71{
71 unsigned long clone_flags; 72 unsigned long clone_flags;
72 unsigned long newsp; 73 unsigned long newsp;
diff --git a/arch/score/kernel/time.c b/arch/score/kernel/time.c
index cd66ba327ca7..f0a43affb201 100644
--- a/arch/score/kernel/time.c
+++ b/arch/score/kernel/time.c
@@ -28,7 +28,7 @@
28 28
29#include <asm/scoreregs.h> 29#include <asm/scoreregs.h>
30 30
31irqreturn_t timer_interrupt(int irq, void *dev_id) 31static irqreturn_t timer_interrupt(int irq, void *dev_id)
32{ 32{
33 struct clock_event_device *evdev = dev_id; 33 struct clock_event_device *evdev = dev_id;
34 34