[S390] Get rid of a lot of sparse warnings.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
committed by
Martin Schwidefsky
parent
55dff5224a
commit
2b67fc4606
@@ -283,7 +283,7 @@ char *task_show_regs(struct task_struct *task, char *buffer)
|
||||
return buffer;
|
||||
}
|
||||
|
||||
DEFINE_SPINLOCK(die_lock);
|
||||
static DEFINE_SPINLOCK(die_lock);
|
||||
|
||||
void die(const char * str, struct pt_regs * regs, long err)
|
||||
{
|
||||
@@ -364,8 +364,7 @@ void __kprobes do_single_step(struct pt_regs *regs)
|
||||
force_sig(SIGTRAP, current);
|
||||
}
|
||||
|
||||
asmlinkage void
|
||||
default_trap_handler(struct pt_regs * regs, long interruption_code)
|
||||
static void default_trap_handler(struct pt_regs * regs, long interruption_code)
|
||||
{
|
||||
if (regs->psw.mask & PSW_MASK_PSTATE) {
|
||||
local_irq_enable();
|
||||
@@ -376,7 +375,7 @@ default_trap_handler(struct pt_regs * regs, long interruption_code)
|
||||
}
|
||||
|
||||
#define DO_ERROR_INFO(signr, str, name, sicode, siaddr) \
|
||||
asmlinkage void name(struct pt_regs * regs, long interruption_code) \
|
||||
static void name(struct pt_regs * regs, long interruption_code) \
|
||||
{ \
|
||||
siginfo_t info; \
|
||||
info.si_signo = signr; \
|
||||
@@ -442,7 +441,7 @@ do_fp_trap(struct pt_regs *regs, void __user *location,
|
||||
"floating point exception", regs, &si);
|
||||
}
|
||||
|
||||
asmlinkage void illegal_op(struct pt_regs * regs, long interruption_code)
|
||||
static void illegal_op(struct pt_regs * regs, long interruption_code)
|
||||
{
|
||||
siginfo_t info;
|
||||
__u8 opcode[6];
|
||||
@@ -585,7 +584,7 @@ DO_ERROR_INFO(SIGILL, "specification exception", specification_exception,
|
||||
ILL_ILLOPN, get_check_address(regs));
|
||||
#endif
|
||||
|
||||
asmlinkage void data_exception(struct pt_regs * regs, long interruption_code)
|
||||
static void data_exception(struct pt_regs * regs, long interruption_code)
|
||||
{
|
||||
__u16 __user *location;
|
||||
int signal = 0;
|
||||
@@ -675,7 +674,7 @@ asmlinkage void data_exception(struct pt_regs * regs, long interruption_code)
|
||||
}
|
||||
}
|
||||
|
||||
asmlinkage void space_switch_exception(struct pt_regs * regs, long int_code)
|
||||
static void space_switch_exception(struct pt_regs * regs, long int_code)
|
||||
{
|
||||
siginfo_t info;
|
||||
|
||||
|
Reference in New Issue
Block a user