These symbols are only used in the file that they are defined in, so they should not be in the global namespace. Signed-off-by: Arnd Bergmann --- linux-cg.orig/arch/powerpc/platforms/pseries/hvcserver.c 2006-01-11 14:59:16.000000000 +0000 +++ linux-cg/arch/powerpc/platforms/pseries/hvcserver.c 2006-01-11 15:03:53.000000000 +0000 @@ -40,7 +40,7 @@ * functions aren't performance sensitive, so this conversion isn't an * issue. */ -int hvcs_convert(long to_convert) +static int hvcs_convert(long to_convert) { switch (to_convert) { case H_Success: @@ -91,7 +91,7 @@ EXPORT_SYMBOL(hvcs_free_partner_info); /* Helper function for hvcs_get_partner_info */ -int hvcs_next_partner(uint32_t unit_address, +static int hvcs_next_partner(uint32_t unit_address, unsigned long last_p_partition_ID, unsigned long last_p_unit_address, unsigned long *pi_buff) Index: linux-cg/arch/powerpc/platforms/pseries/iommu.c =================================================================== --- linux-cg.orig/arch/powerpc/platforms/pseries/iommu.c 2006-01-11 14:59:16.000000000 +0000 +++ linux-cg/arch/powerpc/platforms/pseries/iommu.c 2006-01-11 15:03:53.000000000 +0000 @@ -51,8 +51,6 @@ #define DBG(fmt...) -extern int is_python(struct device_node *); - static void tce_build_pSeries(struct iommu_table *tbl, long index, long npages, unsigned long uaddr, enum dma_data_direction direction) Index: linux-cg/arch/powerpc/platforms/pseries/scanlog.c =================================================================== --- linux-cg.orig/arch/powerpc/platforms/pseries/scanlog.c 2006-01-11 14:59:16.000000000 +0000 +++ linux-cg/arch/powerpc/platforms/pseries/scanlog.c 2006-01-11 15:03:53.000000000 +0000 @@ -192,7 +192,7 @@ .release = scanlog_release, }; -int __init scanlog_init(void) +static int __init scanlog_init(void) { struct proc_dir_entry *ent; @@ -222,7 +222,7 @@ return 0; } -void __exit scanlog_cleanup(void) +static void __exit scanlog_cleanup(void) { if (proc_ppc64_scan_log_dump) { kfree(proc_ppc64_scan_log_dump->data); Index: linux-cg/arch/powerpc/platforms/pseries/setup.c =================================================================== --- linux-cg.orig/arch/powerpc/platforms/pseries/setup.c 2006-01-11 14:59:16.000000000 +0000 +++ linux-cg/arch/powerpc/platforms/pseries/setup.c 2006-01-11 15:03:53.000000000 +0000 @@ -86,7 +86,7 @@ struct mpic *pSeries_mpic; -void pSeries_show_cpuinfo(struct seq_file *m) +static void pSeries_show_cpuinfo(struct seq_file *m) { struct device_node *root; const char *model = ""; Index: linux-cg/arch/powerpc/platforms/pseries/smp.c =================================================================== --- linux-cg.orig/arch/powerpc/platforms/pseries/smp.c 2006-01-11 14:59:16.000000000 +0000 +++ linux-cg/arch/powerpc/platforms/pseries/smp.c 2006-01-11 15:03:53.000000000 +0000 @@ -93,7 +93,7 @@ return cpu_status; } -int pSeries_cpu_disable(void) +static int pSeries_cpu_disable(void) { int cpu = smp_processor_id(); @@ -109,7 +109,7 @@ return 0; } -void pSeries_cpu_die(unsigned int cpu) +static void pSeries_cpu_die(unsigned int cpu) { int tries; int cpu_status; Index: linux-cg/arch/powerpc/platforms/pseries/xics.c =================================================================== --- linux-cg.orig/arch/powerpc/platforms/pseries/xics.c 2006-01-11 14:59:16.000000000 +0000 +++ linux-cg/arch/powerpc/platforms/pseries/xics.c 2006-01-11 15:03:53.000000000 +0000 @@ -381,7 +381,7 @@ #ifdef CONFIG_SMP -irqreturn_t xics_ipi_action(int irq, void *dev_id, struct pt_regs *regs) +static irqreturn_t xics_ipi_action(int irq, void *dev_id, struct pt_regs *regs) { int cpu = smp_processor_id(); --