Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro 2011-07-26 04:47:14 -04:00
Родитель 685dd2d5be
Коммит c6684b2685
4 изменённых файлов: 12 добавлений и 12 удалений

Просмотреть файл

@ -237,7 +237,7 @@ extern long spu_sys_callback(struct spu_syscall_block *s);
struct file; struct file;
struct spufs_calls { struct spufs_calls {
long (*create_thread)(const char __user *name, long (*create_thread)(const char __user *name,
unsigned int flags, mode_t mode, unsigned int flags, umode_t mode,
struct file *neighbor); struct file *neighbor);
long (*spu_run)(struct file *filp, __u32 __user *unpc, long (*spu_run)(struct file *filp, __u32 __user *unpc,
__u32 __user *ustatus); __u32 __user *ustatus);

Просмотреть файл

@ -91,7 +91,7 @@ spufs_init_once(void *p)
} }
static struct inode * static struct inode *
spufs_new_inode(struct super_block *sb, int mode) spufs_new_inode(struct super_block *sb, umode_t mode)
{ {
struct inode *inode; struct inode *inode;
@ -123,7 +123,7 @@ spufs_setattr(struct dentry *dentry, struct iattr *attr)
static int static int
spufs_new_file(struct super_block *sb, struct dentry *dentry, spufs_new_file(struct super_block *sb, struct dentry *dentry,
const struct file_operations *fops, int mode, const struct file_operations *fops, umode_t mode,
size_t size, struct spu_context *ctx) size_t size, struct spu_context *ctx)
{ {
static const struct inode_operations spufs_file_iops = { static const struct inode_operations spufs_file_iops = {
@ -193,7 +193,7 @@ static int spufs_rmdir(struct inode *parent, struct dentry *dir)
} }
static int spufs_fill_dir(struct dentry *dir, static int spufs_fill_dir(struct dentry *dir,
const struct spufs_tree_descr *files, int mode, const struct spufs_tree_descr *files, umode_t mode,
struct spu_context *ctx) struct spu_context *ctx)
{ {
struct dentry *dentry, *tmp; struct dentry *dentry, *tmp;
@ -263,7 +263,7 @@ EXPORT_SYMBOL_GPL(spufs_context_fops);
static int static int
spufs_mkdir(struct inode *dir, struct dentry *dentry, unsigned int flags, spufs_mkdir(struct inode *dir, struct dentry *dentry, unsigned int flags,
int mode) umode_t mode)
{ {
int ret; int ret;
struct inode *inode; struct inode *inode;
@ -446,7 +446,7 @@ spufs_set_affinity(unsigned int flags, struct spu_context *ctx,
static int static int
spufs_create_context(struct inode *inode, struct dentry *dentry, spufs_create_context(struct inode *inode, struct dentry *dentry,
struct vfsmount *mnt, int flags, int mode, struct vfsmount *mnt, int flags, umode_t mode,
struct file *aff_filp) struct file *aff_filp)
{ {
int ret; int ret;
@ -520,7 +520,7 @@ out:
} }
static int static int
spufs_mkgang(struct inode *dir, struct dentry *dentry, int mode) spufs_mkgang(struct inode *dir, struct dentry *dentry, umode_t mode)
{ {
int ret; int ret;
struct inode *inode; struct inode *inode;
@ -583,7 +583,7 @@ out:
static int spufs_create_gang(struct inode *inode, static int spufs_create_gang(struct inode *inode,
struct dentry *dentry, struct dentry *dentry,
struct vfsmount *mnt, int mode) struct vfsmount *mnt, umode_t mode)
{ {
int ret; int ret;
@ -611,7 +611,7 @@ out:
static struct file_system_type spufs_type; static struct file_system_type spufs_type;
long spufs_create(struct path *path, struct dentry *dentry, long spufs_create(struct path *path, struct dentry *dentry,
unsigned int flags, mode_t mode, struct file *filp) unsigned int flags, umode_t mode, struct file *filp)
{ {
int ret; int ret;

Просмотреть файл

@ -237,7 +237,7 @@ struct spufs_inode_info {
struct spufs_tree_descr { struct spufs_tree_descr {
const char *name; const char *name;
const struct file_operations *ops; const struct file_operations *ops;
int mode; umode_t mode;
size_t size; size_t size;
}; };
@ -249,7 +249,7 @@ extern const struct spufs_tree_descr spufs_dir_debug_contents[];
extern struct spufs_calls spufs_calls; extern struct spufs_calls spufs_calls;
long spufs_run_spu(struct spu_context *ctx, u32 *npc, u32 *status); long spufs_run_spu(struct spu_context *ctx, u32 *npc, u32 *status);
long spufs_create(struct path *nd, struct dentry *dentry, unsigned int flags, long spufs_create(struct path *nd, struct dentry *dentry, unsigned int flags,
mode_t mode, struct file *filp); umode_t mode, struct file *filp);
/* ELF coredump callbacks for writing SPU ELF notes */ /* ELF coredump callbacks for writing SPU ELF notes */
extern int spufs_coredump_extra_notes_size(void); extern int spufs_coredump_extra_notes_size(void);
extern int spufs_coredump_extra_notes_write(struct file *file, loff_t *foffset); extern int spufs_coredump_extra_notes_write(struct file *file, loff_t *foffset);

Просмотреть файл

@ -60,7 +60,7 @@ out:
} }
static long do_spu_create(const char __user *pathname, unsigned int flags, static long do_spu_create(const char __user *pathname, unsigned int flags,
mode_t mode, struct file *neighbor) umode_t mode, struct file *neighbor)
{ {
struct path path; struct path path;
struct dentry *dentry; struct dentry *dentry;