Skip to content

Commit 20f45ad

Browse files
author
Al Viro
committed
spufs: constify path
Reviewed-by: Christian Brauner (Microsoft) <[email protected]> Signed-off-by: Al Viro <[email protected]>
1 parent ea4af4a commit 20f45ad

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

arch/powerpc/platforms/cell/spufs/inode.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ spufs_mkdir(struct inode *dir, struct dentry *dentry, unsigned int flags,
275275
return ret;
276276
}
277277

278-
static int spufs_context_open(struct path *path)
278+
static int spufs_context_open(const struct path *path)
279279
{
280280
int ret;
281281
struct file *filp;
@@ -491,7 +491,7 @@ spufs_mkgang(struct inode *dir, struct dentry *dentry, umode_t mode)
491491
return ret;
492492
}
493493

494-
static int spufs_gang_open(struct path *path)
494+
static int spufs_gang_open(const struct path *path)
495495
{
496496
int ret;
497497
struct file *filp;
@@ -536,7 +536,7 @@ static int spufs_create_gang(struct inode *inode,
536536

537537
static struct file_system_type spufs_type;
538538

539-
long spufs_create(struct path *path, struct dentry *dentry,
539+
long spufs_create(const struct path *path, struct dentry *dentry,
540540
unsigned int flags, umode_t mode, struct file *filp)
541541
{
542542
struct inode *dir = d_inode(path->dentry);

arch/powerpc/platforms/cell/spufs/spufs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ extern const struct spufs_tree_descr spufs_dir_debug_contents[];
232232
extern struct spufs_calls spufs_calls;
233233
struct coredump_params;
234234
long spufs_run_spu(struct spu_context *ctx, u32 *npc, u32 *status);
235-
long spufs_create(struct path *nd, struct dentry *dentry, unsigned int flags,
235+
long spufs_create(const struct path *nd, struct dentry *dentry, unsigned int flags,
236236
umode_t mode, struct file *filp);
237237
/* ELF coredump callbacks for writing SPU ELF notes */
238238
extern int spufs_coredump_extra_notes_size(void);

0 commit comments

Comments
 (0)