s390: make various functions static, add declarations to header files
Make various functions static, add declarations to header files to fix a couple of sparse findings. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
This commit is contained in:
@@ -53,27 +53,21 @@ void handle_signal32(unsigned long sig, struct k_sigaction *ka,
|
||||
siginfo_t *info, sigset_t *oldset, struct pt_regs *regs);
|
||||
void do_notify_resume(struct pt_regs *regs);
|
||||
|
||||
struct ext_code;
|
||||
void do_extint(struct pt_regs *regs);
|
||||
void __init init_IRQ(void);
|
||||
void do_IRQ(struct pt_regs *regs, int irq);
|
||||
void do_restart(void);
|
||||
void __init startup_init(void);
|
||||
void die(struct pt_regs *regs, const char *str);
|
||||
|
||||
int setup_profiling_timer(unsigned int multiplier);
|
||||
void __init time_init(void);
|
||||
int pfn_is_nosave(unsigned long);
|
||||
void s390_early_resume(void);
|
||||
unsigned long prepare_ftrace_return(unsigned long parent, unsigned long ip);
|
||||
|
||||
struct s390_mmap_arg_struct;
|
||||
struct fadvise64_64_args;
|
||||
struct old_sigaction;
|
||||
|
||||
long sys_mmap2(struct s390_mmap_arg_struct __user *arg);
|
||||
long sys_s390_ipc(uint call, int first, unsigned long second,
|
||||
unsigned long third, void __user *ptr);
|
||||
long sys_s390_personality(unsigned int personality);
|
||||
long sys_s390_fadvise64(int fd, u32 offset_high, u32 offset_low,
|
||||
size_t len, int advice);
|
||||
long sys_s390_fadvise64_64(struct fadvise64_64_args __user *args);
|
||||
long sys_s390_fallocate(int fd, int mode, loff_t offset, u32 len_high,
|
||||
u32 len_low);
|
||||
long sys_sigreturn(void);
|
||||
long sys_rt_sigreturn(void);
|
||||
long sys32_sigreturn(void);
|
||||
|
@@ -15,6 +15,7 @@
|
||||
#include <linux/kprobes.h>
|
||||
#include <trace/syscall.h>
|
||||
#include <asm/asm-offsets.h>
|
||||
#include "entry.h"
|
||||
|
||||
#ifdef CONFIG_DYNAMIC_FTRACE
|
||||
|
||||
|
@@ -206,7 +206,7 @@ struct ext_int_info {
|
||||
};
|
||||
|
||||
/* ext_int_hash_lock protects the handler lists for external interrupts */
|
||||
DEFINE_SPINLOCK(ext_int_hash_lock);
|
||||
static DEFINE_SPINLOCK(ext_int_hash_lock);
|
||||
|
||||
static inline int ext_hash(u16 code)
|
||||
{
|
||||
|
@@ -50,7 +50,7 @@ static void add_elf_notes(int cpu)
|
||||
/*
|
||||
* Initialize CPU ELF notes
|
||||
*/
|
||||
void setup_regs(void)
|
||||
static void setup_regs(void)
|
||||
{
|
||||
unsigned long sa = S390_lowcore.prefixreg_save_area + SAVE_AREA_BASE;
|
||||
int cpu, this_cpu;
|
||||
|
@@ -362,7 +362,7 @@ void smp_yield_cpu(int cpu)
|
||||
* Send cpus emergency shutdown signal. This gives the cpus the
|
||||
* opportunity to complete outstanding interrupts.
|
||||
*/
|
||||
void smp_emergency_stop(cpumask_t *cpumask)
|
||||
static void smp_emergency_stop(cpumask_t *cpumask)
|
||||
{
|
||||
u64 end;
|
||||
int cpu;
|
||||
|
@@ -13,6 +13,7 @@
|
||||
#include <asm/ipl.h>
|
||||
#include <asm/cio.h>
|
||||
#include <asm/pci.h>
|
||||
#include "entry.h"
|
||||
|
||||
/*
|
||||
* References to section boundaries
|
||||
|
Reference in New Issue
Block a user