[POWERPC] spufs: Make file-internal functions & variables static

There are a few symbols used only in one file within spufs; this change
makes them static where suitable.

Signed-off-by: Sebastian Siewior <sebastian@breakpoint.cc>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
Sebastian Siewior
2007-09-19 14:38:12 +10:00
committed by Paul Mackerras
parent aa0154290f
commit 1238819a41
5 changed files with 9 additions and 9 deletions

View File

@@ -458,7 +458,7 @@ static int spu_shutdown(struct sys_device *sysdev)
return 0; return 0;
} }
struct sysdev_class spu_sysdev_class = { static struct sysdev_class spu_sysdev_class = {
set_kset_name("spu"), set_kset_name("spu"),
.shutdown = spu_shutdown, .shutdown = spu_shutdown,
}; };

View File

@@ -33,7 +33,7 @@
* mbind, mq_open, ipc, ... * mbind, mq_open, ipc, ...
*/ */
void *spu_syscall_table[] = { static void *spu_syscall_table[] = {
#define SYSCALL(func) sys_ni_syscall, #define SYSCALL(func) sys_ni_syscall,
#define COMPAT_SYS(func) sys_ni_syscall, #define COMPAT_SYS(func) sys_ni_syscall,
#define PPC_SYS(func) sys_ni_syscall, #define PPC_SYS(func) sys_ni_syscall,

View File

@@ -199,9 +199,9 @@ static int spufs_mem_mmap(struct file *file, struct vm_area_struct *vma)
} }
#ifdef CONFIG_SPU_FS_64K_LS #ifdef CONFIG_SPU_FS_64K_LS
unsigned long spufs_get_unmapped_area(struct file *file, unsigned long addr, static unsigned long spufs_get_unmapped_area(struct file *file,
unsigned long len, unsigned long pgoff, unsigned long addr, unsigned long len, unsigned long pgoff,
unsigned long flags) unsigned long flags)
{ {
struct spu_context *ctx = file->private_data; struct spu_context *ctx = file->private_data;
struct spu_state *csa = &ctx->csa; struct spu_state *csa = &ctx->csa;

View File

@@ -205,7 +205,7 @@ static int spu_reacquire_runnable(struct spu_context *ctx, u32 *npc,
* This means we can only do a very rough approximation of POSIX * This means we can only do a very rough approximation of POSIX
* signal semantics. * signal semantics.
*/ */
int spu_handle_restartsys(struct spu_context *ctx, long *spu_ret, static int spu_handle_restartsys(struct spu_context *ctx, long *spu_ret,
unsigned int *npc) unsigned int *npc)
{ {
int ret; int ret;
@@ -241,7 +241,7 @@ int spu_handle_restartsys(struct spu_context *ctx, long *spu_ret,
return ret; return ret;
} }
int spu_process_callback(struct spu_context *ctx) static int spu_process_callback(struct spu_context *ctx)
{ {
struct spu_syscall_block s; struct spu_syscall_block s;
u32 ls_pointer, npc; u32 ls_pointer, npc;

View File

@@ -76,8 +76,8 @@ asmlinkage long sys_spu_run(int fd, __u32 __user *unpc, __u32 __user *ustatus)
} }
#endif #endif
asmlinkage long do_spu_create(const char __user *pathname, unsigned int flags, static asmlinkage long do_spu_create(const char __user *pathname,
mode_t mode, struct file *neighbor) unsigned int flags, mode_t mode, struct file *neighbor)
{ {
char *tmp; char *tmp;
int ret; int ret;