Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163601
b: refs/heads/master
c: bddc605
h: refs/heads/master
i:
  163599: 777df07
v: v3
  • Loading branch information
Arnd Bergmann committed Jun 27, 2009
1 parent 7456ac3 commit 0b5e078
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a1f8213b9518d0e9124a48a34bdd58b4bc2650e5
refs/heads/master: bddc605955bca2d914ca621a7ef4ca6c271f55d8
22 changes: 13 additions & 9 deletions trunk/arch/score/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ struct rt_sigframe {
struct ucontext rs_uc;
};

int setup_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc)
static int setup_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc)
{
int err = 0;
unsigned long reg;
Expand Down Expand Up @@ -76,7 +76,7 @@ int setup_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc)
return err;
}

int restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc)
static int restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc)
{
int err = 0;
u32 reg;
Expand Down Expand Up @@ -118,8 +118,8 @@ int restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc)
/*
* Determine which stack to use..
*/
void __user *get_sigframe(struct k_sigaction *ka, struct pt_regs *regs,
size_t frame_size)
static void __user *get_sigframe(struct k_sigaction *ka,
struct pt_regs *regs, size_t frame_size)
{
unsigned long sp;

Expand All @@ -134,7 +134,8 @@ void __user *get_sigframe(struct k_sigaction *ka, struct pt_regs *regs,
return (void __user*)((sp - frame_size) & ~7);
}

int score_sigaltstack(struct pt_regs *regs)
asmlinkage long
score_sigaltstack(struct pt_regs *regs)
{
const stack_t __user *uss = (const stack_t __user *) regs->regs[4];
stack_t __user *uoss = (stack_t __user *) regs->regs[5];
Expand All @@ -143,7 +144,8 @@ int score_sigaltstack(struct pt_regs *regs)
return do_sigaltstack(uss, uoss, usp);
}

void score_rt_sigreturn(struct pt_regs *regs)
asmlinkage long
score_rt_sigreturn(struct pt_regs *regs)
{
struct rt_sigframe __user *frame;
sigset_t set;
Expand Down Expand Up @@ -183,9 +185,11 @@ void score_rt_sigreturn(struct pt_regs *regs)

badframe:
force_sig(SIGSEGV, current);

return 0;
}

int setup_rt_frame(struct k_sigaction *ka, struct pt_regs *regs,
static int setup_rt_frame(struct k_sigaction *ka, struct pt_regs *regs,
int signr, sigset_t *set, siginfo_t *info)
{
struct rt_sigframe __user *frame;
Expand Down Expand Up @@ -238,7 +242,7 @@ int setup_rt_frame(struct k_sigaction *ka, struct pt_regs *regs,
return -EFAULT;
}

int handle_signal(unsigned long sig, siginfo_t *info,
static int handle_signal(unsigned long sig, siginfo_t *info,
struct k_sigaction *ka, sigset_t *oldset, struct pt_regs *regs)
{
int ret;
Expand Down Expand Up @@ -278,7 +282,7 @@ int handle_signal(unsigned long sig, siginfo_t *info,
return ret;
}

void do_signal(struct pt_regs *regs)
static void do_signal(struct pt_regs *regs)
{
struct k_sigaction ka;
sigset_t *oldset;
Expand Down
5 changes: 3 additions & 2 deletions trunk/arch/score/kernel/sys_score.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/score/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

#include <asm/scoreregs.h>

irqreturn_t timer_interrupt(int irq, void *dev_id)
static irqreturn_t timer_interrupt(int irq, void *dev_id)
{
struct clock_event_device *evdev = dev_id;

Expand Down

0 comments on commit 0b5e078

Please sign in to comment.