aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2014-08-19 18:55:18 -0400
committerMichael Ellerman <mpe@ellerman.id.au>2014-09-25 09:14:41 -0400
commite51df2c170efaeadce4d416e1825b0830de0a795 (patch)
treee3fa881027448042f5a2915e7f1c58ddecd6c82f
parent5144b6bfe25fda7c51f6f9d8d79cf0fe61df5c28 (diff)
powerpc: Make a bunch of things static
Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
-rw-r--r--arch/powerpc/kernel/hw_breakpoint.c2
-rw-r--r--arch/powerpc/kernel/nvram_64.c2
-rw-r--r--arch/powerpc/kernel/pci-common.c2
-rw-r--r--arch/powerpc/kernel/pci_of_scan.c2
-rw-r--r--arch/powerpc/kernel/prom.c5
-rw-r--r--arch/powerpc/kernel/ptrace.c2
-rw-r--r--arch/powerpc/kernel/rtasd.c2
-rw-r--r--arch/powerpc/kernel/time.c4
-rw-r--r--arch/powerpc/lib/feature-fixups.c2
-rw-r--r--arch/powerpc/mm/hash_utils_64.c2
-rw-r--r--arch/powerpc/mm/pgtable.c2
-rw-r--r--arch/powerpc/perf/core-book3s.c18
-rw-r--r--arch/powerpc/platforms/powernv/eeh-ioda.c4
-rw-r--r--arch/powerpc/platforms/powernv/pci-ioda.c6
-rw-r--r--arch/powerpc/platforms/powernv/setup.c2
-rw-r--r--arch/powerpc/platforms/powernv/smp.c2
-rw-r--r--arch/powerpc/platforms/pseries/nvram.c12
-rw-r--r--arch/powerpc/platforms/pseries/ras.c2
-rw-r--r--arch/powerpc/platforms/pseries/setup.c2
-rw-r--r--arch/powerpc/sysdev/mpic.c2
-rw-r--r--arch/powerpc/sysdev/msi_bitmap.c6
21 files changed, 43 insertions, 40 deletions
diff --git a/arch/powerpc/kernel/hw_breakpoint.c b/arch/powerpc/kernel/hw_breakpoint.c
index 0bb5918faaaf..1f7d84e2e8b2 100644
--- a/arch/powerpc/kernel/hw_breakpoint.c
+++ b/arch/powerpc/kernel/hw_breakpoint.c
@@ -293,7 +293,7 @@ out:
293/* 293/*
294 * Handle single-step exceptions following a DABR hit. 294 * Handle single-step exceptions following a DABR hit.
295 */ 295 */
296int __kprobes single_step_dabr_instruction(struct die_args *args) 296static int __kprobes single_step_dabr_instruction(struct die_args *args)
297{ 297{
298 struct pt_regs *regs = args->regs; 298 struct pt_regs *regs = args->regs;
299 struct perf_event *bp = NULL; 299 struct perf_event *bp = NULL;
diff --git a/arch/powerpc/kernel/nvram_64.c b/arch/powerpc/kernel/nvram_64.c
index 28b898e68185..34f7c9b7cd96 100644
--- a/arch/powerpc/kernel/nvram_64.c
+++ b/arch/powerpc/kernel/nvram_64.c
@@ -567,7 +567,7 @@ static int __init nvram_init(void)
567 return rc; 567 return rc;
568} 568}
569 569
570void __exit nvram_cleanup(void) 570static void __exit nvram_cleanup(void)
571{ 571{
572 misc_deregister( &nvram_dev ); 572 misc_deregister( &nvram_dev );
573} 573}
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c
index b2814e23e1ed..bd84771f89fc 100644
--- a/arch/powerpc/kernel/pci-common.c
+++ b/arch/powerpc/kernel/pci-common.c
@@ -1140,7 +1140,7 @@ static int reparent_resources(struct resource *parent,
1140 * as well. 1140 * as well.
1141 */ 1141 */
1142 1142
1143void pcibios_allocate_bus_resources(struct pci_bus *bus) 1143static void pcibios_allocate_bus_resources(struct pci_bus *bus)
1144{ 1144{
1145 struct pci_bus *b; 1145 struct pci_bus *b;
1146 int i; 1146 int i;
diff --git a/arch/powerpc/kernel/pci_of_scan.c b/arch/powerpc/kernel/pci_of_scan.c
index 44562aa97f16..e6245e9c7d8d 100644
--- a/arch/powerpc/kernel/pci_of_scan.c
+++ b/arch/powerpc/kernel/pci_of_scan.c
@@ -38,7 +38,7 @@ static u32 get_int_prop(struct device_node *np, const char *name, u32 def)
38 * @addr0: value of 1st cell of a device tree PCI address. 38 * @addr0: value of 1st cell of a device tree PCI address.
39 * @bridge: Set this flag if the address is from a bridge 'ranges' property 39 * @bridge: Set this flag if the address is from a bridge 'ranges' property
40 */ 40 */
41unsigned int pci_parse_of_flags(u32 addr0, int bridge) 41static unsigned int pci_parse_of_flags(u32 addr0, int bridge)
42{ 42{
43 unsigned int flags = 0; 43 unsigned int flags = 0;
44 44
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c
index 4e139f8a69ef..cb35c5b3efca 100644
--- a/arch/powerpc/kernel/prom.c
+++ b/arch/powerpc/kernel/prom.c
@@ -386,8 +386,9 @@ static int __init early_init_dt_scan_cpus(unsigned long node,
386 return 0; 386 return 0;
387} 387}
388 388
389int __init early_init_dt_scan_chosen_ppc(unsigned long node, const char *uname, 389static int __init early_init_dt_scan_chosen_ppc(unsigned long node,
390 int depth, void *data) 390 const char *uname,
391 int depth, void *data)
391{ 392{
392 const unsigned long *lprop; /* All these set by kernel, so no need to convert endian */ 393 const unsigned long *lprop; /* All these set by kernel, so no need to convert endian */
393 394
diff --git a/arch/powerpc/kernel/ptrace.c b/arch/powerpc/kernel/ptrace.c
index 2e3d2bf536c5..cdb404ea3468 100644
--- a/arch/powerpc/kernel/ptrace.c
+++ b/arch/powerpc/kernel/ptrace.c
@@ -932,7 +932,7 @@ void ptrace_triggered(struct perf_event *bp,
932} 932}
933#endif /* CONFIG_HAVE_HW_BREAKPOINT */ 933#endif /* CONFIG_HAVE_HW_BREAKPOINT */
934 934
935int ptrace_set_debugreg(struct task_struct *task, unsigned long addr, 935static int ptrace_set_debugreg(struct task_struct *task, unsigned long addr,
936 unsigned long data) 936 unsigned long data)
937{ 937{
938#ifdef CONFIG_HAVE_HW_BREAKPOINT 938#ifdef CONFIG_HAVE_HW_BREAKPOINT
diff --git a/arch/powerpc/kernel/rtasd.c b/arch/powerpc/kernel/rtasd.c
index e736387fee6a..5a2c049c1c61 100644
--- a/arch/powerpc/kernel/rtasd.c
+++ b/arch/powerpc/kernel/rtasd.c
@@ -286,7 +286,7 @@ static void prrn_work_fn(struct work_struct *work)
286 286
287static DECLARE_WORK(prrn_work, prrn_work_fn); 287static DECLARE_WORK(prrn_work, prrn_work_fn);
288 288
289void prrn_schedule_update(u32 scope) 289static void prrn_schedule_update(u32 scope)
290{ 290{
291 flush_work(&prrn_work); 291 flush_work(&prrn_work);
292 prrn_update_scope = scope; 292 prrn_update_scope = scope;
diff --git a/arch/powerpc/kernel/time.c b/arch/powerpc/kernel/time.c
index 055558b953e3..7505599c2593 100644
--- a/arch/powerpc/kernel/time.c
+++ b/arch/powerpc/kernel/time.c
@@ -479,7 +479,7 @@ void arch_irq_work_raise(void)
479 479
480#endif /* CONFIG_IRQ_WORK */ 480#endif /* CONFIG_IRQ_WORK */
481 481
482void __timer_interrupt(void) 482static void __timer_interrupt(void)
483{ 483{
484 struct pt_regs *regs = get_irq_regs(); 484 struct pt_regs *regs = get_irq_regs();
485 u64 *next_tb = &__get_cpu_var(decrementers_next_tb); 485 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)
643 return found; 643 return found;
644} 644}
645 645
646void start_cpu_decrementer(void) 646static void start_cpu_decrementer(void)
647{ 647{
648#if defined(CONFIG_BOOKE) || defined(CONFIG_40x) 648#if defined(CONFIG_BOOKE) || defined(CONFIG_40x)
649 /* Clear any pending timer interrupts */ 649 /* Clear any pending timer interrupts */
diff --git a/arch/powerpc/lib/feature-fixups.c b/arch/powerpc/lib/feature-fixups.c
index 7a8a7487cee8..7ce3870d7ddd 100644
--- a/arch/powerpc/lib/feature-fixups.c
+++ b/arch/powerpc/lib/feature-fixups.c
@@ -164,7 +164,7 @@ static long calc_offset(struct fixup_entry *entry, unsigned int *p)
164 return (unsigned long)p - (unsigned long)entry; 164 return (unsigned long)p - (unsigned long)entry;
165} 165}
166 166
167void test_basic_patching(void) 167static void test_basic_patching(void)
168{ 168{
169 extern unsigned int ftr_fixup_test1; 169 extern unsigned int ftr_fixup_test1;
170 extern unsigned int end_ftr_fixup_test1; 170 extern unsigned int end_ftr_fixup_test1;
diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch/powerpc/mm/hash_utils_64.c
index bc6cc2ad037b..5786f2a81efe 100644
--- a/arch/powerpc/mm/hash_utils_64.c
+++ b/arch/powerpc/mm/hash_utils_64.c
@@ -868,7 +868,7 @@ unsigned int hash_page_do_lazy_icache(unsigned int pp, pte_t pte, int trap)
868} 868}
869 869
870#ifdef CONFIG_PPC_MM_SLICES 870#ifdef CONFIG_PPC_MM_SLICES
871unsigned int get_paca_psize(unsigned long addr) 871static unsigned int get_paca_psize(unsigned long addr)
872{ 872{
873 u64 lpsizes; 873 u64 lpsizes;
874 unsigned char *hpsizes; 874 unsigned char *hpsizes;
diff --git a/arch/powerpc/mm/pgtable.c b/arch/powerpc/mm/pgtable.c
index c695943a513c..c90e602677c9 100644
--- a/arch/powerpc/mm/pgtable.c
+++ b/arch/powerpc/mm/pgtable.c
@@ -48,7 +48,7 @@ static inline int pte_looks_normal(pte_t pte)
48 (_PAGE_PRESENT | _PAGE_USER); 48 (_PAGE_PRESENT | _PAGE_USER);
49} 49}
50 50
51struct page * maybe_pte_to_page(pte_t pte) 51static struct page *maybe_pte_to_page(pte_t pte)
52{ 52{
53 unsigned long pfn = pte_pfn(pte); 53 unsigned long pfn = pte_pfn(pte);
54 struct page *page; 54 struct page *page;
diff --git a/arch/powerpc/perf/core-book3s.c b/arch/powerpc/perf/core-book3s.c
index b7cd00b0171e..a6995d4e93d4 100644
--- a/arch/powerpc/perf/core-book3s.c
+++ b/arch/powerpc/perf/core-book3s.c
@@ -59,9 +59,9 @@ struct cpu_hw_events {
59 struct perf_branch_entry bhrb_entries[BHRB_MAX_ENTRIES]; 59 struct perf_branch_entry bhrb_entries[BHRB_MAX_ENTRIES];
60}; 60};
61 61
62DEFINE_PER_CPU(struct cpu_hw_events, cpu_hw_events); 62static DEFINE_PER_CPU(struct cpu_hw_events, cpu_hw_events);
63 63
64struct power_pmu *ppmu; 64static struct power_pmu *ppmu;
65 65
66/* 66/*
67 * Normally, to ignore kernel events we set the FCS (freeze counters 67 * Normally, to ignore kernel events we set the FCS (freeze counters
@@ -124,7 +124,7 @@ static unsigned long ebb_switch_in(bool ebb, struct cpu_hw_events *cpuhw)
124 124
125static inline void power_pmu_bhrb_enable(struct perf_event *event) {} 125static inline void power_pmu_bhrb_enable(struct perf_event *event) {}
126static inline void power_pmu_bhrb_disable(struct perf_event *event) {} 126static inline void power_pmu_bhrb_disable(struct perf_event *event) {}
127void power_pmu_flush_branch_stack(void) {} 127static void power_pmu_flush_branch_stack(void) {}
128static inline void power_pmu_bhrb_read(struct cpu_hw_events *cpuhw) {} 128static inline void power_pmu_bhrb_read(struct cpu_hw_events *cpuhw) {}
129static void pmao_restore_workaround(bool ebb) { } 129static void pmao_restore_workaround(bool ebb) { }
130#endif /* CONFIG_PPC32 */ 130#endif /* CONFIG_PPC32 */
@@ -375,7 +375,7 @@ static void power_pmu_bhrb_disable(struct perf_event *event)
375/* Called from ctxsw to prevent one process's branch entries to 375/* Called from ctxsw to prevent one process's branch entries to
376 * mingle with the other process's entries during context switch. 376 * mingle with the other process's entries during context switch.
377 */ 377 */
378void power_pmu_flush_branch_stack(void) 378static void power_pmu_flush_branch_stack(void)
379{ 379{
380 if (ppmu->bhrb_nr) 380 if (ppmu->bhrb_nr)
381 power_pmu_bhrb_reset(); 381 power_pmu_bhrb_reset();
@@ -408,7 +408,7 @@ static __u64 power_pmu_bhrb_to(u64 addr)
408} 408}
409 409
410/* Processing BHRB entries */ 410/* Processing BHRB entries */
411void power_pmu_bhrb_read(struct cpu_hw_events *cpuhw) 411static void power_pmu_bhrb_read(struct cpu_hw_events *cpuhw)
412{ 412{
413 u64 val; 413 u64 val;
414 u64 addr; 414 u64 addr;
@@ -1573,7 +1573,7 @@ static void power_pmu_stop(struct perf_event *event, int ef_flags)
1573 * Set the flag to make pmu::enable() not perform the 1573 * Set the flag to make pmu::enable() not perform the
1574 * schedulability test, it will be performed at commit time 1574 * schedulability test, it will be performed at commit time
1575 */ 1575 */
1576void power_pmu_start_txn(struct pmu *pmu) 1576static void power_pmu_start_txn(struct pmu *pmu)
1577{ 1577{
1578 struct cpu_hw_events *cpuhw = &__get_cpu_var(cpu_hw_events); 1578 struct cpu_hw_events *cpuhw = &__get_cpu_var(cpu_hw_events);
1579 1579
@@ -1587,7 +1587,7 @@ void power_pmu_start_txn(struct pmu *pmu)
1587 * Clear the flag and pmu::enable() will perform the 1587 * Clear the flag and pmu::enable() will perform the
1588 * schedulability test. 1588 * schedulability test.
1589 */ 1589 */
1590void power_pmu_cancel_txn(struct pmu *pmu) 1590static void power_pmu_cancel_txn(struct pmu *pmu)
1591{ 1591{
1592 struct cpu_hw_events *cpuhw = &__get_cpu_var(cpu_hw_events); 1592 struct cpu_hw_events *cpuhw = &__get_cpu_var(cpu_hw_events);
1593 1593
@@ -1600,7 +1600,7 @@ void power_pmu_cancel_txn(struct pmu *pmu)
1600 * Perform the group schedulability test as a whole 1600 * Perform the group schedulability test as a whole
1601 * Return 0 if success 1601 * Return 0 if success
1602 */ 1602 */
1603int power_pmu_commit_txn(struct pmu *pmu) 1603static int power_pmu_commit_txn(struct pmu *pmu)
1604{ 1604{
1605 struct cpu_hw_events *cpuhw; 1605 struct cpu_hw_events *cpuhw;
1606 long i, n; 1606 long i, n;
@@ -1888,7 +1888,7 @@ ssize_t power_events_sysfs_show(struct device *dev,
1888 return sprintf(page, "event=0x%02llx\n", pmu_attr->id); 1888 return sprintf(page, "event=0x%02llx\n", pmu_attr->id);
1889} 1889}
1890 1890
1891struct pmu power_pmu = { 1891static struct pmu power_pmu = {
1892 .pmu_enable = power_pmu_enable, 1892 .pmu_enable = power_pmu_enable,
1893 .pmu_disable = power_pmu_disable, 1893 .pmu_disable = power_pmu_disable,
1894 .event_init = power_pmu_event_init, 1894 .event_init = power_pmu_event_init,
diff --git a/arch/powerpc/platforms/powernv/eeh-ioda.c b/arch/powerpc/platforms/powernv/eeh-ioda.c
index c945bed4dc9e..df5c2cc55285 100644
--- a/arch/powerpc/platforms/powernv/eeh-ioda.c
+++ b/arch/powerpc/platforms/powernv/eeh-ioda.c
@@ -628,8 +628,8 @@ static int ioda_eeh_reset(struct eeh_pe *pe, int option)
628 * Retrieve error log, which contains log from device driver 628 * Retrieve error log, which contains log from device driver
629 * and firmware. 629 * and firmware.
630 */ 630 */
631int ioda_eeh_get_log(struct eeh_pe *pe, int severity, 631static int ioda_eeh_get_log(struct eeh_pe *pe, int severity,
632 char *drv_log, unsigned long len) 632 char *drv_log, unsigned long len)
633{ 633{
634 pnv_pci_dump_phb_diag_data(pe->phb, pe->data); 634 pnv_pci_dump_phb_diag_data(pe->phb, pe->data);
635 635
diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c b/arch/powerpc/platforms/powernv/pci-ioda.c
index df241b11d4f7..4441bfa84c06 100644
--- a/arch/powerpc/platforms/powernv/pci-ioda.c
+++ b/arch/powerpc/platforms/powernv/pci-ioda.c
@@ -385,7 +385,7 @@ static void pnv_ioda_freeze_pe(struct pnv_phb *phb, int pe_no)
385 } 385 }
386} 386}
387 387
388int pnv_ioda_unfreeze_pe(struct pnv_phb *phb, int pe_no, int opt) 388static int pnv_ioda_unfreeze_pe(struct pnv_phb *phb, int pe_no, int opt)
389{ 389{
390 struct pnv_ioda_pe *pe, *slave; 390 struct pnv_ioda_pe *pe, *slave;
391 s64 rc; 391 s64 rc;
@@ -1631,8 +1631,8 @@ static void pnv_pci_ioda_shutdown(struct pnv_phb *phb)
1631 OPAL_ASSERT_RESET); 1631 OPAL_ASSERT_RESET);
1632} 1632}
1633 1633
1634void __init pnv_pci_init_ioda_phb(struct device_node *np, 1634static void __init pnv_pci_init_ioda_phb(struct device_node *np,
1635 u64 hub_id, int ioda_type) 1635 u64 hub_id, int ioda_type)
1636{ 1636{
1637 struct pci_controller *hose; 1637 struct pci_controller *hose;
1638 struct pnv_phb *phb; 1638 struct pnv_phb *phb;
diff --git a/arch/powerpc/platforms/powernv/setup.c b/arch/powerpc/platforms/powernv/setup.c
index 5a0e2dc6de5f..bb1fc9b8d55e 100644
--- a/arch/powerpc/platforms/powernv/setup.c
+++ b/arch/powerpc/platforms/powernv/setup.c
@@ -307,7 +307,7 @@ static int __init pnv_probe(void)
307 * Returns the cpu frequency for 'cpu' in Hz. This is used by 307 * Returns the cpu frequency for 'cpu' in Hz. This is used by
308 * /proc/cpuinfo 308 * /proc/cpuinfo
309 */ 309 */
310unsigned long pnv_get_proc_freq(unsigned int cpu) 310static unsigned long pnv_get_proc_freq(unsigned int cpu)
311{ 311{
312 unsigned long ret_freq; 312 unsigned long ret_freq;
313 313
diff --git a/arch/powerpc/platforms/powernv/smp.c b/arch/powerpc/platforms/powernv/smp.c
index 5fcfcf44e3a9..b73adc573031 100644
--- a/arch/powerpc/platforms/powernv/smp.c
+++ b/arch/powerpc/platforms/powernv/smp.c
@@ -54,7 +54,7 @@ static void pnv_smp_setup_cpu(int cpu)
54#endif 54#endif
55} 55}
56 56
57int pnv_smp_kick_cpu(int nr) 57static int pnv_smp_kick_cpu(int nr)
58{ 58{
59 unsigned int pcpu = get_hard_smp_processor_id(nr); 59 unsigned int pcpu = get_hard_smp_processor_id(nr);
60 unsigned long start_here = 60 unsigned long start_here =
diff --git a/arch/powerpc/platforms/pseries/nvram.c b/arch/powerpc/platforms/pseries/nvram.c
index 0cc240b7f694..11a3b617ef5d 100644
--- a/arch/powerpc/platforms/pseries/nvram.c
+++ b/arch/powerpc/platforms/pseries/nvram.c
@@ -276,8 +276,10 @@ static ssize_t pSeries_nvram_get_size(void)
276 * sequence #: The unique sequence # for each event. (until it wraps) 276 * sequence #: The unique sequence # for each event. (until it wraps)
277 * error log: The error log from event_scan 277 * error log: The error log from event_scan
278 */ 278 */
279int nvram_write_os_partition(struct nvram_os_partition *part, char * buff, 279static int nvram_write_os_partition(struct nvram_os_partition *part,
280 int length, unsigned int err_type, unsigned int error_log_cnt) 280 char *buff, int length,
281 unsigned int err_type,
282 unsigned int error_log_cnt)
281{ 283{
282 int rc; 284 int rc;
283 loff_t tmp_index; 285 loff_t tmp_index;
@@ -330,9 +332,9 @@ int nvram_write_error_log(char * buff, int length,
330 * 332 *
331 * Reads nvram partition for at most 'length' 333 * Reads nvram partition for at most 'length'
332 */ 334 */
333int nvram_read_partition(struct nvram_os_partition *part, char *buff, 335static int nvram_read_partition(struct nvram_os_partition *part, char *buff,
334 int length, unsigned int *err_type, 336 int length, unsigned int *err_type,
335 unsigned int *error_log_cnt) 337 unsigned int *error_log_cnt)
336{ 338{
337 int rc; 339 int rc;
338 loff_t tmp_index; 340 loff_t tmp_index;
diff --git a/arch/powerpc/platforms/pseries/ras.c b/arch/powerpc/platforms/pseries/ras.c
index dff05b9eb946..5a4d0fc03b03 100644
--- a/arch/powerpc/platforms/pseries/ras.c
+++ b/arch/powerpc/platforms/pseries/ras.c
@@ -126,7 +126,7 @@ struct epow_errorlog {
126#define EPOW_MAIN_ENCLOSURE 5 126#define EPOW_MAIN_ENCLOSURE 5
127#define EPOW_POWER_OFF 7 127#define EPOW_POWER_OFF 7
128 128
129void rtas_parse_epow_errlog(struct rtas_error_log *log) 129static void rtas_parse_epow_errlog(struct rtas_error_log *log)
130{ 130{
131 struct pseries_errorlog *pseries_log; 131 struct pseries_errorlog *pseries_log;
132 struct epow_errorlog *epow_log; 132 struct epow_errorlog *epow_log;
diff --git a/arch/powerpc/platforms/pseries/setup.c b/arch/powerpc/platforms/pseries/setup.c
index e724d3186e73..125c589eeef5 100644
--- a/arch/powerpc/platforms/pseries/setup.c
+++ b/arch/powerpc/platforms/pseries/setup.c
@@ -561,7 +561,7 @@ void pSeries_coalesce_init(void)
561 * fw_cmo_feature_init - FW_FEATURE_CMO is not stored in ibm,hypertas-functions, 561 * fw_cmo_feature_init - FW_FEATURE_CMO is not stored in ibm,hypertas-functions,
562 * handle that here. (Stolen from parse_system_parameter_string) 562 * handle that here. (Stolen from parse_system_parameter_string)
563 */ 563 */
564void pSeries_cmo_feature_init(void) 564static void pSeries_cmo_feature_init(void)
565{ 565{
566 char *ptr, *key, *value, *end; 566 char *ptr, *key, *value, *end;
567 int call_status; 567 int call_status;
diff --git a/arch/powerpc/sysdev/mpic.c b/arch/powerpc/sysdev/mpic.c
index be33c9768ea1..89cec0ed6a58 100644
--- a/arch/powerpc/sysdev/mpic.c
+++ b/arch/powerpc/sysdev/mpic.c
@@ -960,7 +960,7 @@ void mpic_set_vector(unsigned int virq, unsigned int vector)
960 mpic_irq_write(src, MPIC_INFO(IRQ_VECTOR_PRI), vecpri); 960 mpic_irq_write(src, MPIC_INFO(IRQ_VECTOR_PRI), vecpri);
961} 961}
962 962
963void mpic_set_destination(unsigned int virq, unsigned int cpuid) 963static void mpic_set_destination(unsigned int virq, unsigned int cpuid)
964{ 964{
965 struct mpic *mpic = mpic_from_irq(virq); 965 struct mpic *mpic = mpic_from_irq(virq);
966 unsigned int src = virq_to_hw(virq); 966 unsigned int src = virq_to_hw(virq);
diff --git a/arch/powerpc/sysdev/msi_bitmap.c b/arch/powerpc/sysdev/msi_bitmap.c
index 2ff630267e9e..a7c7a9fc7530 100644
--- a/arch/powerpc/sysdev/msi_bitmap.c
+++ b/arch/powerpc/sysdev/msi_bitmap.c
@@ -143,7 +143,7 @@ void msi_bitmap_free(struct msi_bitmap *bmp)
143#define check(x) \ 143#define check(x) \
144 if (!(x)) printk("msi_bitmap: test failed at line %d\n", __LINE__); 144 if (!(x)) printk("msi_bitmap: test failed at line %d\n", __LINE__);
145 145
146void __init test_basics(void) 146static void __init test_basics(void)
147{ 147{
148 struct msi_bitmap bmp; 148 struct msi_bitmap bmp;
149 int i, size = 512; 149 int i, size = 512;
@@ -188,7 +188,7 @@ void __init test_basics(void)
188 kfree(bmp.bitmap); 188 kfree(bmp.bitmap);
189} 189}
190 190
191void __init test_of_node(void) 191static void __init test_of_node(void)
192{ 192{
193 u32 prop_data[] = { 10, 10, 25, 3, 40, 1, 100, 100, 200, 20 }; 193 u32 prop_data[] = { 10, 10, 25, 3, 40, 1, 100, 100, 200, 20 };
194 const char *expected_str = "0-9,20-24,28-39,41-99,220-255"; 194 const char *expected_str = "0-9,20-24,28-39,41-99,220-255";
@@ -236,7 +236,7 @@ void __init test_of_node(void)
236 kfree(bmp.bitmap); 236 kfree(bmp.bitmap);
237} 237}
238 238
239int __init msi_bitmap_selftest(void) 239static int __init msi_bitmap_selftest(void)
240{ 240{
241 printk(KERN_DEBUG "Running MSI bitmap self-tests ...\n"); 241 printk(KERN_DEBUG "Running MSI bitmap self-tests ...\n");
242 242