Skip to content

Commit e51df2c

Browse files
antonblanchardmpe
authored andcommitted
powerpc: Make a bunch of things static
Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent 5144b6b commit e51df2c

21 files changed

Lines changed: 43 additions & 40 deletions

File tree

‎arch/powerpc/kernel/hw_breakpoint.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ int __kprobes hw_breakpoint_handler(struct die_args *args)
293293
/*
294294
* Handle single-step exceptions following a DABR hit.
295295
*/
296-
int __kprobes single_step_dabr_instruction(struct die_args *args)
296+
static int __kprobes single_step_dabr_instruction(struct die_args *args)
297297
{
298298
struct pt_regs *regs = args->regs;
299299
struct perf_event *bp = NULL;

‎arch/powerpc/kernel/nvram_64.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ static int __init nvram_init(void)
567567
return rc;
568568
}
569569

570-
void __exit nvram_cleanup(void)
570+
static void __exit nvram_cleanup(void)
571571
{
572572
misc_deregister( &nvram_dev );
573573
}

‎arch/powerpc/kernel/pci-common.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1140,7 +1140,7 @@ static int reparent_resources(struct resource *parent,
11401140
* as well.
11411141
*/
11421142

1143-
void pcibios_allocate_bus_resources(struct pci_bus *bus)
1143+
static void pcibios_allocate_bus_resources(struct pci_bus *bus)
11441144
{
11451145
struct pci_bus *b;
11461146
int i;

‎arch/powerpc/kernel/pci_of_scan.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static u32 get_int_prop(struct device_node *np, const char *name, u32 def)
3838
* @addr0: value of 1st cell of a device tree PCI address.
3939
* @bridge: Set this flag if the address is from a bridge 'ranges' property
4040
*/
41-
unsigned int pci_parse_of_flags(u32 addr0, int bridge)
41+
static unsigned int pci_parse_of_flags(u32 addr0, int bridge)
4242
{
4343
unsigned int flags = 0;
4444

‎arch/powerpc/kernel/prom.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,9 @@ static int __init early_init_dt_scan_cpus(unsigned long node,
386386
return 0;
387387
}
388388

389-
int __init early_init_dt_scan_chosen_ppc(unsigned long node, const char *uname,
390-
int depth, void *data)
389+
static int __init early_init_dt_scan_chosen_ppc(unsigned long node,
390+
const char *uname,
391+
int depth, void *data)
391392
{
392393
const unsigned long *lprop; /* All these set by kernel, so no need to convert endian */
393394

‎arch/powerpc/kernel/ptrace.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,7 @@ void ptrace_triggered(struct perf_event *bp,
932932
}
933933
#endif /* CONFIG_HAVE_HW_BREAKPOINT */
934934

935-
int ptrace_set_debugreg(struct task_struct *task, unsigned long addr,
935+
static int ptrace_set_debugreg(struct task_struct *task, unsigned long addr,
936936
unsigned long data)
937937
{
938938
#ifdef CONFIG_HAVE_HW_BREAKPOINT

‎arch/powerpc/kernel/rtasd.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ static void prrn_work_fn(struct work_struct *work)
286286

287287
static DECLARE_WORK(prrn_work, prrn_work_fn);
288288

289-
void prrn_schedule_update(u32 scope)
289+
static void prrn_schedule_update(u32 scope)
290290
{
291291
flush_work(&prrn_work);
292292
prrn_update_scope = scope;

‎arch/powerpc/kernel/time.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ void arch_irq_work_raise(void)
479479

480480
#endif /* CONFIG_IRQ_WORK */
481481

482-
void __timer_interrupt(void)
482+
static void __timer_interrupt(void)
483483
{
484484
struct pt_regs *regs = get_irq_regs();
485485
u64 *next_tb = &__get_cpu_var(decrementers_next_tb);
@@ -643,7 +643,7 @@ static int __init get_freq(char *name, int cells, unsigned long *val)
643643
return found;
644644
}
645645

646-
void start_cpu_decrementer(void)
646+
static void start_cpu_decrementer(void)
647647
{
648648
#if defined(CONFIG_BOOKE) || defined(CONFIG_40x)
649649
/* Clear any pending timer interrupts */

‎arch/powerpc/lib/feature-fixups.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ static long calc_offset(struct fixup_entry *entry, unsigned int *p)
164164
return (unsigned long)p - (unsigned long)entry;
165165
}
166166

167-
void test_basic_patching(void)
167+
static void test_basic_patching(void)
168168
{
169169
extern unsigned int ftr_fixup_test1;
170170
extern unsigned int end_ftr_fixup_test1;

‎arch/powerpc/mm/hash_utils_64.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,7 @@ unsigned int hash_page_do_lazy_icache(unsigned int pp, pte_t pte, int trap)
868868
}
869869

870870
#ifdef CONFIG_PPC_MM_SLICES
871-
unsigned int get_paca_psize(unsigned long addr)
871+
static unsigned int get_paca_psize(unsigned long addr)
872872
{
873873
u64 lpsizes;
874874
unsigned char *hpsizes;

0 commit comments

Comments
 (0)