[patch 4/5] powerpc: cell namespace cleanup

Arnd Bergmann arnd at arndb.de
Thu Jan 12 10:07:11 EST 2006


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 <arnd at arndb.de>

--- linux-cg.orig/arch/powerpc/platforms/cell/setup.c	2006-01-11 15:05:14.000000000 +0000
+++ linux-cg/arch/powerpc/platforms/cell/setup.c	2006-01-11 15:05:33.000000000 +0000
@@ -57,7 +57,7 @@
 #define DBG(fmt...)
 #endif
 
-void cell_show_cpuinfo(struct seq_file *m)
+static void cell_show_cpuinfo(struct seq_file *m)
 {
 	struct device_node *root;
 	const char *model = "";
Index: linux-cg/arch/powerpc/platforms/cell/pervasive.c
===================================================================
--- linux-cg.orig/arch/powerpc/platforms/cell/pervasive.c	2006-01-11 15:05:14.000000000 +0000
+++ linux-cg/arch/powerpc/platforms/cell/pervasive.c	2006-01-11 15:05:33.000000000 +0000
@@ -142,7 +142,7 @@
 	}
 }
 
-int cbe_system_reset_exception(struct pt_regs *regs)
+static int cbe_system_reset_exception(struct pt_regs *regs)
 {
 	switch (regs->msr & SRR1_WAKEMASK) {
 	case SRR1_WAKEEE:
Index: linux-cg/arch/powerpc/platforms/cell/spufs/syscalls.c
===================================================================
--- linux-cg.orig/arch/powerpc/platforms/cell/spufs/syscalls.c	2006-01-11 15:05:30.000000000 +0000
+++ linux-cg/arch/powerpc/platforms/cell/spufs/syscalls.c	2006-01-11 15:05:35.000000000 +0000
@@ -29,7 +29,9 @@
  * value of the spu_status register after the SPU has stopped.
  *
  */
-long do_spu_run(struct file *filp, __u32 __user *unpc, __u32 __user *ustatus)
+static long do_spu_run(struct file *filp,
+			__u32 __user *unpc,
+			__u32 __user *ustatus)
 {
 	long ret;
 	struct spufs_inode_info *i;

--




More information about the Linuxppc64-dev mailing list