Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c98bd72 authored by Daniel Axtens's avatar Daniel Axtens Committed by Michael Ellerman
Browse files

powerpc/sparse: Make a bunch of things static



Squash a bunch of sparse warnings by making things static.

Reviewed-by: default avatarAndrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: default avatarDaniel Axtens <dja@axtens.net>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent bc42f1d9
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -27,7 +27,7 @@
#include <linux/sort.h>
#include <linux/sort.h>
#include <asm/setup.h>
#include <asm/setup.h>


LIST_HEAD(module_bug_list);
static LIST_HEAD(module_bug_list);


static const Elf_Shdr *find_section(const Elf_Ehdr *hdr,
static const Elf_Shdr *find_section(const Elf_Ehdr *hdr,
				    const Elf_Shdr *sechdrs,
				    const Elf_Shdr *sechdrs,
+1 −1
Original line number Original line Diff line number Diff line
@@ -851,7 +851,7 @@ static long dev_nvram_ioctl(struct file *file, unsigned int cmd,
	}
	}
}
}


const struct file_operations nvram_fops = {
static const struct file_operations nvram_fops = {
	.owner		= THIS_MODULE,
	.owner		= THIS_MODULE,
	.llseek		= dev_nvram_llseek,
	.llseek		= dev_nvram_llseek,
	.read		= dev_nvram_read,
	.read		= dev_nvram_read,
+1 −1
Original line number Original line Diff line number Diff line
@@ -43,7 +43,7 @@ static unsigned int profiling_interval;
#define SPU_PC_MASK	     0xFFFF
#define SPU_PC_MASK	     0xFFFF


DEFINE_SPINLOCK(oprof_spu_smpl_arry_lck);
DEFINE_SPINLOCK(oprof_spu_smpl_arry_lck);
unsigned long oprof_spu_smpl_arry_lck_flags;
static unsigned long oprof_spu_smpl_arry_lck_flags;


void set_spu_profiling_frequency(unsigned int freq_khz, unsigned int cycles_reset)
void set_spu_profiling_frequency(unsigned int freq_khz, unsigned int cycles_reset)
{
{
+2 −2
Original line number Original line Diff line number Diff line
@@ -36,7 +36,7 @@
static DEFINE_SPINLOCK(buffer_lock);
static DEFINE_SPINLOCK(buffer_lock);
static DEFINE_SPINLOCK(cache_lock);
static DEFINE_SPINLOCK(cache_lock);
static int num_spu_nodes;
static int num_spu_nodes;
int spu_prof_num_nodes;
static int spu_prof_num_nodes;


struct spu_buffer spu_buff[MAX_NUMNODES * SPUS_PER_NODE];
struct spu_buffer spu_buff[MAX_NUMNODES * SPUS_PER_NODE];
struct delayed_work spu_work;
struct delayed_work spu_work;
@@ -88,7 +88,7 @@ static void spu_buff_add(unsigned long int value, int spu)
/* This function copies the per SPU buffers to the
/* This function copies the per SPU buffers to the
 * OProfile kernel buffer.
 * OProfile kernel buffer.
 */
 */
void sync_spu_buff(void)
static void sync_spu_buff(void)
{
{
	int spu;
	int spu;
	unsigned long flags;
	unsigned long flags;
+1 −1
Original line number Original line Diff line number Diff line
@@ -2158,7 +2158,7 @@ static void perf_event_interrupt(struct pt_regs *regs)
		irq_exit();
		irq_exit();
}
}


int power_pmu_prepare_cpu(unsigned int cpu)
static int power_pmu_prepare_cpu(unsigned int cpu)
{
{
	struct cpu_hw_events *cpuhw = &per_cpu(cpu_hw_events, cpu);
	struct cpu_hw_events *cpuhw = &per_cpu(cpu_hw_events, cpu);


Loading