[CELL] spufs: remove unused file argument from spufs_run_spu()
From: Sebastian Siewior <cbe-oss-dev@ml.breakpoint.cc> The 'file' argument is unused in spufs_run_spu(). This change removes it. Signed-off-by: Sebastian Siewior <sebastian@breakpoint.cc> Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
This commit is contained in:
parent
ca53da3abb
commit
50af32a94b
|
@ -295,8 +295,7 @@ static inline int spu_process_events(struct spu_context *ctx)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
long spufs_run_spu(struct file *file, struct spu_context *ctx,
|
long spufs_run_spu(struct spu_context *ctx, u32 *npc, u32 *event)
|
||||||
u32 *npc, u32 *event)
|
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
u32 status;
|
u32 status;
|
||||||
|
|
|
@ -181,8 +181,7 @@ extern struct tree_descr spufs_dir_contents[];
|
||||||
extern struct tree_descr spufs_dir_nosched_contents[];
|
extern struct tree_descr spufs_dir_nosched_contents[];
|
||||||
|
|
||||||
/* system call implementation */
|
/* system call implementation */
|
||||||
long spufs_run_spu(struct file *file,
|
long spufs_run_spu(struct spu_context *ctx, u32 *npc, u32 *status);
|
||||||
struct spu_context *ctx, u32 *npc, u32 *status);
|
|
||||||
long spufs_create(struct nameidata *nd,
|
long spufs_create(struct nameidata *nd,
|
||||||
unsigned int flags, mode_t mode);
|
unsigned int flags, mode_t mode);
|
||||||
extern const struct file_operations spufs_context_fops;
|
extern const struct file_operations spufs_context_fops;
|
||||||
|
|
|
@ -47,7 +47,7 @@ static long do_spu_run(struct file *filp,
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
i = SPUFS_I(filp->f_path.dentry->d_inode);
|
i = SPUFS_I(filp->f_path.dentry->d_inode);
|
||||||
ret = spufs_run_spu(filp, i->i_ctx, &npc, &status);
|
ret = spufs_run_spu(i->i_ctx, &npc, &status);
|
||||||
|
|
||||||
if (put_user(npc, unpc))
|
if (put_user(npc, unpc))
|
||||||
ret = -EFAULT;
|
ret = -EFAULT;
|
||||||
|
|
Loading…
Reference in New Issue