···11401140 * as well.11411141 */1142114211431143-void pcibios_allocate_bus_resources(struct pci_bus *bus)11431143+static void pcibios_allocate_bus_resources(struct pci_bus *bus)11441144{11451145 struct pci_bus *b;11461146 int i;
+1-1
arch/powerpc/kernel/pci_of_scan.c
···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' property4040 */4141-unsigned int pci_parse_of_flags(u32 addr0, int bridge)4141+static unsigned int pci_parse_of_flags(u32 addr0, int bridge)4242{4343 unsigned int flags = 0;4444
+3-2
arch/powerpc/kernel/prom.c
···386386 return 0;387387}388388389389-int __init early_init_dt_scan_chosen_ppc(unsigned long node, const char *uname,390390- int depth, void *data)389389+static int __init early_init_dt_scan_chosen_ppc(unsigned long node,390390+ const char *uname,391391+ int depth, void *data)391392{392393 const unsigned long *lprop; /* All these set by kernel, so no need to convert endian */393394
+1-1
arch/powerpc/kernel/ptrace.c
···932932}933933#endif /* CONFIG_HAVE_HW_BREAKPOINT */934934935935-int ptrace_set_debugreg(struct task_struct *task, unsigned long addr,935935+static int ptrace_set_debugreg(struct task_struct *task, unsigned long addr,936936 unsigned long data)937937{938938#ifdef CONFIG_HAVE_HW_BREAKPOINT
···164164 return (unsigned long)p - (unsigned long)entry;165165}166166167167-void test_basic_patching(void)167167+static void test_basic_patching(void)168168{169169 extern unsigned int ftr_fixup_test1;170170 extern unsigned int end_ftr_fixup_test1;
+1-1
arch/powerpc/mm/hash_utils_64.c
···868868}869869870870#ifdef CONFIG_PPC_MM_SLICES871871-unsigned int get_paca_psize(unsigned long addr)871871+static unsigned int get_paca_psize(unsigned long addr)872872{873873 u64 lpsizes;874874 unsigned char *hpsizes;
···5959 struct perf_branch_entry bhrb_entries[BHRB_MAX_ENTRIES];6060};61616262-DEFINE_PER_CPU(struct cpu_hw_events, cpu_hw_events);6262+static DEFINE_PER_CPU(struct cpu_hw_events, cpu_hw_events);63636464-struct power_pmu *ppmu;6464+static struct power_pmu *ppmu;65656666/*6767 * Normally, to ignore kernel events we set the FCS (freeze counters···124124125125static inline void power_pmu_bhrb_enable(struct perf_event *event) {}126126static inline void power_pmu_bhrb_disable(struct perf_event *event) {}127127-void power_pmu_flush_branch_stack(void) {}127127+static void power_pmu_flush_branch_stack(void) {}128128static inline void power_pmu_bhrb_read(struct cpu_hw_events *cpuhw) {}129129static void pmao_restore_workaround(bool ebb) { }130130#endif /* CONFIG_PPC32 */···375375/* Called from ctxsw to prevent one process's branch entries to376376 * mingle with the other process's entries during context switch.377377 */378378-void power_pmu_flush_branch_stack(void)378378+static void power_pmu_flush_branch_stack(void)379379{380380 if (ppmu->bhrb_nr)381381 power_pmu_bhrb_reset();···408408}409409410410/* Processing BHRB entries */411411-void power_pmu_bhrb_read(struct cpu_hw_events *cpuhw)411411+static void power_pmu_bhrb_read(struct cpu_hw_events *cpuhw)412412{413413 u64 val;414414 u64 addr;···15731573 * Set the flag to make pmu::enable() not perform the15741574 * schedulability test, it will be performed at commit time15751575 */15761576-void power_pmu_start_txn(struct pmu *pmu)15761576+static void power_pmu_start_txn(struct pmu *pmu)15771577{15781578 struct cpu_hw_events *cpuhw = &__get_cpu_var(cpu_hw_events);15791579···15871587 * Clear the flag and pmu::enable() will perform the15881588 * schedulability test.15891589 */15901590-void power_pmu_cancel_txn(struct pmu *pmu)15901590+static void power_pmu_cancel_txn(struct pmu *pmu)15911591{15921592 struct cpu_hw_events *cpuhw = &__get_cpu_var(cpu_hw_events);15931593···16001600 * Perform the group schedulability test as a whole16011601 * Return 0 if success16021602 */16031603-int power_pmu_commit_txn(struct pmu *pmu)16031603+static int power_pmu_commit_txn(struct pmu *pmu)16041604{16051605 struct cpu_hw_events *cpuhw;16061606 long i, n;···18881888 return sprintf(page, "event=0x%02llx\n", pmu_attr->id);18891889}1890189018911891-struct pmu power_pmu = {18911891+static struct pmu power_pmu = {18921892 .pmu_enable = power_pmu_enable,18931893 .pmu_disable = power_pmu_disable,18941894 .event_init = power_pmu_event_init,
+2-2
arch/powerpc/platforms/powernv/eeh-ioda.c
···628628 * Retrieve error log, which contains log from device driver629629 * and firmware.630630 */631631-int ioda_eeh_get_log(struct eeh_pe *pe, int severity,632632- char *drv_log, unsigned long len)631631+static int ioda_eeh_get_log(struct eeh_pe *pe, int severity,632632+ char *drv_log, unsigned long len)633633{634634 pnv_pci_dump_phb_diag_data(pe->phb, pe->data);635635
+3-3
arch/powerpc/platforms/powernv/pci-ioda.c
···385385 }386386}387387388388-int pnv_ioda_unfreeze_pe(struct pnv_phb *phb, int pe_no, int opt)388388+static int pnv_ioda_unfreeze_pe(struct pnv_phb *phb, int pe_no, int opt)389389{390390 struct pnv_ioda_pe *pe, *slave;391391 s64 rc;···16311631 OPAL_ASSERT_RESET);16321632}1633163316341634-void __init pnv_pci_init_ioda_phb(struct device_node *np,16351635- u64 hub_id, int ioda_type)16341634+static void __init pnv_pci_init_ioda_phb(struct device_node *np,16351635+ u64 hub_id, int ioda_type)16361636{16371637 struct pci_controller *hose;16381638 struct pnv_phb *phb;
+1-1
arch/powerpc/platforms/powernv/setup.c
···307307 * Returns the cpu frequency for 'cpu' in Hz. This is used by308308 * /proc/cpuinfo309309 */310310-unsigned long pnv_get_proc_freq(unsigned int cpu)310310+static unsigned long pnv_get_proc_freq(unsigned int cpu)311311{312312 unsigned long ret_freq;313313
+1-1
arch/powerpc/platforms/powernv/smp.c
···5454#endif5555}56565757-int pnv_smp_kick_cpu(int nr)5757+static int pnv_smp_kick_cpu(int nr)5858{5959 unsigned int pcpu = get_hard_smp_processor_id(nr);6060 unsigned long start_here =
+7-5
arch/powerpc/platforms/pseries/nvram.c
···276276 * sequence #: The unique sequence # for each event. (until it wraps)277277 * error log: The error log from event_scan278278 */279279-int nvram_write_os_partition(struct nvram_os_partition *part, char * buff,280280- int length, unsigned int err_type, unsigned int error_log_cnt)279279+static int nvram_write_os_partition(struct nvram_os_partition *part,280280+ char *buff, int length,281281+ unsigned int err_type,282282+ unsigned int error_log_cnt)281283{282284 int rc;283285 loff_t tmp_index;···332330 *333331 * Reads nvram partition for at most 'length'334332 */335335-int nvram_read_partition(struct nvram_os_partition *part, char *buff,336336- int length, unsigned int *err_type,337337- unsigned int *error_log_cnt)333333+static int nvram_read_partition(struct nvram_os_partition *part, char *buff,334334+ int length, unsigned int *err_type,335335+ unsigned int *error_log_cnt)338336{339337 int rc;340338 loff_t tmp_index;
···561561 * fw_cmo_feature_init - FW_FEATURE_CMO is not stored in ibm,hypertas-functions,562562 * handle that here. (Stolen from parse_system_parameter_string)563563 */564564-void pSeries_cmo_feature_init(void)564564+static void pSeries_cmo_feature_init(void)565565{566566 char *ptr, *key, *value, *end;567567 int call_status;
+1-1
arch/powerpc/sysdev/mpic.c
···960960 mpic_irq_write(src, MPIC_INFO(IRQ_VECTOR_PRI), vecpri);961961}962962963963-void mpic_set_destination(unsigned int virq, unsigned int cpuid)963963+static void mpic_set_destination(unsigned int virq, unsigned int cpuid)964964{965965 struct mpic *mpic = mpic_from_irq(virq);966966 unsigned int src = virq_to_hw(virq);
+3-3
arch/powerpc/sysdev/msi_bitmap.c
···143143#define check(x) \144144 if (!(x)) printk("msi_bitmap: test failed at line %d\n", __LINE__);145145146146-void __init test_basics(void)146146+static void __init test_basics(void)147147{148148 struct msi_bitmap bmp;149149 int i, size = 512;···188188 kfree(bmp.bitmap);189189}190190191191-void __init test_of_node(void)191191+static void __init test_of_node(void)192192{193193 u32 prop_data[] = { 10, 10, 25, 3, 40, 1, 100, 100, 200, 20 };194194 const char *expected_str = "0-9,20-24,28-39,41-99,220-255";···236236 kfree(bmp.bitmap);237237}238238239239-int __init msi_bitmap_selftest(void)239239+static int __init msi_bitmap_selftest(void)240240{241241 printk(KERN_DEBUG "Running MSI bitmap self-tests ...\n");242242