Commit 34852ed5 authored by Daniel Axtens's avatar Daniel Axtens Committed by Michael Ellerman

powerpc/sparse: make some things static

This is just a smattering of things picked up by sparse that should
be made static.
Signed-off-by: default avatarDaniel Axtens <dja@axtens.net>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 1d145165
...@@ -65,7 +65,7 @@ static int handle_fault(struct pt_regs *regs) ...@@ -65,7 +65,7 @@ static int handle_fault(struct pt_regs *regs)
#ifdef CONFIG_SMP #ifdef CONFIG_SMP
static atomic_t cpus_in_crash; static atomic_t cpus_in_crash;
void crash_ipi_callback(struct pt_regs *regs) static void crash_ipi_callback(struct pt_regs *regs)
{ {
static cpumask_t cpus_state_saved = CPU_MASK_NONE; static cpumask_t cpus_state_saved = CPU_MASK_NONE;
......
...@@ -35,7 +35,7 @@ static DEFINE_PER_CPU(struct cpu, cpu_devices); ...@@ -35,7 +35,7 @@ static DEFINE_PER_CPU(struct cpu, cpu_devices);
#ifdef CONFIG_PPC64 #ifdef CONFIG_PPC64
/* Time in microseconds we delay before sleeping in the idle loop */ /* Time in microseconds we delay before sleeping in the idle loop */
DEFINE_PER_CPU(long, smt_snooze_delay) = { 100 }; static DEFINE_PER_CPU(long, smt_snooze_delay) = { 100 };
static ssize_t store_smt_snooze_delay(struct device *dev, static ssize_t store_smt_snooze_delay(struct device *dev,
struct device_attribute *attr, struct device_attribute *attr,
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
static u32 supported_cpuidle_states; static u32 supported_cpuidle_states;
int pnv_save_sprs_for_winkle(void) static int pnv_save_sprs_for_winkle(void)
{ {
int cpu; int cpu;
int rc; int rc;
......
...@@ -208,19 +208,19 @@ static ssize_t percpu_deactivate_hint_show(struct device *dev, ...@@ -208,19 +208,19 @@ static ssize_t percpu_deactivate_hint_show(struct device *dev,
* Per-cpu value of the hint * Per-cpu value of the hint
*/ */
struct device_attribute attr_cpu_activate_hint_list = static struct device_attribute attr_cpu_activate_hint_list =
__ATTR(pseries_activate_hint_list, 0444, __ATTR(pseries_activate_hint_list, 0444,
cpu_activate_hint_list_show, NULL); cpu_activate_hint_list_show, NULL);
struct device_attribute attr_cpu_deactivate_hint_list = static struct device_attribute attr_cpu_deactivate_hint_list =
__ATTR(pseries_deactivate_hint_list, 0444, __ATTR(pseries_deactivate_hint_list, 0444,
cpu_deactivate_hint_list_show, NULL); cpu_deactivate_hint_list_show, NULL);
struct device_attribute attr_percpu_activate_hint = static struct device_attribute attr_percpu_activate_hint =
__ATTR(pseries_activate_hint, 0444, __ATTR(pseries_activate_hint, 0444,
percpu_activate_hint_show, NULL); percpu_activate_hint_show, NULL);
struct device_attribute attr_percpu_deactivate_hint = static struct device_attribute attr_percpu_deactivate_hint =
__ATTR(pseries_deactivate_hint, 0444, __ATTR(pseries_deactivate_hint, 0444,
percpu_deactivate_hint_show, NULL); percpu_deactivate_hint_show, NULL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment