Commit 6ff730c3 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Paul Mackerras

[PATCH] spufs: fix sparse warnings

One local variable is missing an __iomem modifier,
in another place, we pass a completely unused argument
with a missing __user modifier.
Signed-off-by: default avatarArnd Bergmann <arndb@de.ibm.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent f0831acc
...@@ -357,7 +357,7 @@ static void spu_init_channels(struct spu *spu) ...@@ -357,7 +357,7 @@ static void spu_init_channels(struct spu *spu)
{ 0x17, 1, }, { 0x18, 0, }, { 0x19, 0, }, { 0x1b, 0, }, { 0x17, 1, }, { 0x18, 0, }, { 0x19, 0, }, { 0x1b, 0, },
{ 0x1c, 1, }, { 0x1d, 0, }, { 0x1e, 1, }, { 0x1c, 1, }, { 0x1d, 0, }, { 0x1e, 1, },
}; };
struct spu_priv2 *priv2; struct spu_priv2 __iomem *priv2;
int i; int i;
priv2 = spu->priv2; priv2 = spu->priv2;
......
...@@ -293,9 +293,8 @@ static int spufs_context_open(struct dentry *dentry, struct vfsmount *mnt) ...@@ -293,9 +293,8 @@ static int spufs_context_open(struct dentry *dentry, struct vfsmount *mnt)
static struct file_system_type spufs_type; static struct file_system_type spufs_type;
long long spufs_create_thread(struct nameidata *nd,
spufs_create_thread(struct nameidata *nd, const char *name, unsigned int flags, mode_t mode)
unsigned int flags, mode_t mode)
{ {
struct dentry *dentry; struct dentry *dentry;
int ret; int ret;
......
...@@ -101,7 +101,7 @@ extern struct tree_descr spufs_dir_contents[]; ...@@ -101,7 +101,7 @@ extern struct tree_descr spufs_dir_contents[];
/* system call implementation */ /* system call implementation */
long spufs_run_spu(struct file *file, long spufs_run_spu(struct file *file,
struct spu_context *ctx, u32 *npc, u32 *status); struct spu_context *ctx, u32 *npc, u32 *status);
long spufs_create_thread(struct nameidata *nd, const char *name, long spufs_create_thread(struct nameidata *nd,
unsigned int flags, mode_t mode); unsigned int flags, mode_t mode);
extern struct file_operations spufs_context_fops; extern struct file_operations spufs_context_fops;
......
...@@ -85,7 +85,7 @@ asmlinkage long sys_spu_create(const char __user *pathname, ...@@ -85,7 +85,7 @@ asmlinkage long sys_spu_create(const char __user *pathname,
ret = path_lookup(tmp, LOOKUP_PARENT| ret = path_lookup(tmp, LOOKUP_PARENT|
LOOKUP_OPEN|LOOKUP_CREATE, &nd); LOOKUP_OPEN|LOOKUP_CREATE, &nd);
if (!ret) { if (!ret) {
ret = spufs_create_thread(&nd, pathname, flags, mode); ret = spufs_create_thread(&nd, flags, mode);
path_release(&nd); path_release(&nd);
} }
putname(tmp); putname(tmp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment