diff options
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/include/asm/spu.h | 2 | ||||
-rw-r--r-- | arch/powerpc/include/asm/types.h | 6 | ||||
-rw-r--r-- | arch/powerpc/kernel/lparcfg.c | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/cell/spu_syscalls.c | 4 | ||||
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/inode.c | 17 | ||||
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/spufs.h | 4 | ||||
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/syscalls.c | 2 | ||||
-rw-r--r-- | arch/powerpc/sysdev/axonram.c | 1 |
8 files changed, 15 insertions, 23 deletions
diff --git a/arch/powerpc/include/asm/spu.h b/arch/powerpc/include/asm/spu.h index fff921345ddc..93f280e23279 100644 --- a/arch/powerpc/include/asm/spu.h +++ b/arch/powerpc/include/asm/spu.h | |||
@@ -237,7 +237,7 @@ extern long spu_sys_callback(struct spu_syscall_block *s); | |||
237 | struct file; | 237 | struct file; |
238 | struct spufs_calls { | 238 | struct spufs_calls { |
239 | long (*create_thread)(const char __user *name, | 239 | long (*create_thread)(const char __user *name, |
240 | unsigned int flags, mode_t mode, | 240 | unsigned int flags, umode_t mode, |
241 | struct file *neighbor); | 241 | struct file *neighbor); |
242 | long (*spu_run)(struct file *filp, __u32 __user *unpc, | 242 | long (*spu_run)(struct file *filp, __u32 __user *unpc, |
243 | __u32 __user *ustatus); | 243 | __u32 __user *ustatus); |
diff --git a/arch/powerpc/include/asm/types.h b/arch/powerpc/include/asm/types.h index d82e94e6c2b4..0abf7f2c6df9 100644 --- a/arch/powerpc/include/asm/types.h +++ b/arch/powerpc/include/asm/types.h | |||
@@ -30,12 +30,6 @@ | |||
30 | * 2 of the License, or (at your option) any later version. | 30 | * 2 of the License, or (at your option) any later version. |
31 | */ | 31 | */ |
32 | 32 | ||
33 | #ifdef __powerpc64__ | ||
34 | typedef unsigned int umode_t; | ||
35 | #else | ||
36 | typedef unsigned short umode_t; | ||
37 | #endif | ||
38 | |||
39 | typedef struct { | 33 | typedef struct { |
40 | __u32 u[4]; | 34 | __u32 u[4]; |
41 | } __attribute__((aligned(16))) __vector128; | 35 | } __attribute__((aligned(16))) __vector128; |
diff --git a/arch/powerpc/kernel/lparcfg.c b/arch/powerpc/kernel/lparcfg.c index 84daabe2fcba..578f35f18723 100644 --- a/arch/powerpc/kernel/lparcfg.c +++ b/arch/powerpc/kernel/lparcfg.c | |||
@@ -783,7 +783,7 @@ static const struct file_operations lparcfg_fops = { | |||
783 | static int __init lparcfg_init(void) | 783 | static int __init lparcfg_init(void) |
784 | { | 784 | { |
785 | struct proc_dir_entry *ent; | 785 | struct proc_dir_entry *ent; |
786 | mode_t mode = S_IRUSR | S_IRGRP | S_IROTH; | 786 | umode_t mode = S_IRUSR | S_IRGRP | S_IROTH; |
787 | 787 | ||
788 | /* Allow writing if we have FW_FEATURE_SPLPAR */ | 788 | /* Allow writing if we have FW_FEATURE_SPLPAR */ |
789 | if (firmware_has_feature(FW_FEATURE_SPLPAR) && | 789 | if (firmware_has_feature(FW_FEATURE_SPLPAR) && |
diff --git a/arch/powerpc/platforms/cell/spu_syscalls.c b/arch/powerpc/platforms/cell/spu_syscalls.c index 75530d99eda6..714bbfc3162c 100644 --- a/arch/powerpc/platforms/cell/spu_syscalls.c +++ b/arch/powerpc/platforms/cell/spu_syscalls.c | |||
@@ -65,8 +65,8 @@ static inline void spufs_calls_put(struct spufs_calls *calls) { } | |||
65 | 65 | ||
66 | #endif /* CONFIG_SPU_FS_MODULE */ | 66 | #endif /* CONFIG_SPU_FS_MODULE */ |
67 | 67 | ||
68 | asmlinkage long sys_spu_create(const char __user *name, | 68 | SYSCALL_DEFINE4(spu_create, const char __user *, name, unsigned int, flags, |
69 | unsigned int flags, mode_t mode, int neighbor_fd) | 69 | umode_t, mode, int, neighbor_fd) |
70 | { | 70 | { |
71 | long ret; | 71 | long ret; |
72 | struct file *neighbor; | 72 | struct file *neighbor; |
diff --git a/arch/powerpc/platforms/cell/spufs/inode.c b/arch/powerpc/platforms/cell/spufs/inode.c index e481f6b9a789..d4a094ca96f3 100644 --- a/arch/powerpc/platforms/cell/spufs/inode.c +++ b/arch/powerpc/platforms/cell/spufs/inode.c | |||
@@ -74,7 +74,6 @@ spufs_alloc_inode(struct super_block *sb) | |||
74 | static void spufs_i_callback(struct rcu_head *head) | 74 | static void spufs_i_callback(struct rcu_head *head) |
75 | { | 75 | { |
76 | struct inode *inode = container_of(head, struct inode, i_rcu); | 76 | struct inode *inode = container_of(head, struct inode, i_rcu); |
77 | INIT_LIST_HEAD(&inode->i_dentry); | ||
78 | kmem_cache_free(spufs_inode_cache, SPUFS_I(inode)); | 77 | kmem_cache_free(spufs_inode_cache, SPUFS_I(inode)); |
79 | } | 78 | } |
80 | 79 | ||
@@ -92,7 +91,7 @@ spufs_init_once(void *p) | |||
92 | } | 91 | } |
93 | 92 | ||
94 | static struct inode * | 93 | static struct inode * |
95 | spufs_new_inode(struct super_block *sb, int mode) | 94 | spufs_new_inode(struct super_block *sb, umode_t mode) |
96 | { | 95 | { |
97 | struct inode *inode; | 96 | struct inode *inode; |
98 | 97 | ||
@@ -124,7 +123,7 @@ spufs_setattr(struct dentry *dentry, struct iattr *attr) | |||
124 | 123 | ||
125 | static int | 124 | static int |
126 | spufs_new_file(struct super_block *sb, struct dentry *dentry, | 125 | spufs_new_file(struct super_block *sb, struct dentry *dentry, |
127 | const struct file_operations *fops, int mode, | 126 | const struct file_operations *fops, umode_t mode, |
128 | size_t size, struct spu_context *ctx) | 127 | size_t size, struct spu_context *ctx) |
129 | { | 128 | { |
130 | static const struct inode_operations spufs_file_iops = { | 129 | static const struct inode_operations spufs_file_iops = { |
@@ -194,7 +193,7 @@ static int spufs_rmdir(struct inode *parent, struct dentry *dir) | |||
194 | } | 193 | } |
195 | 194 | ||
196 | static int spufs_fill_dir(struct dentry *dir, | 195 | static int spufs_fill_dir(struct dentry *dir, |
197 | const struct spufs_tree_descr *files, int mode, | 196 | const struct spufs_tree_descr *files, umode_t mode, |
198 | struct spu_context *ctx) | 197 | struct spu_context *ctx) |
199 | { | 198 | { |
200 | struct dentry *dentry, *tmp; | 199 | struct dentry *dentry, *tmp; |
@@ -264,7 +263,7 @@ EXPORT_SYMBOL_GPL(spufs_context_fops); | |||
264 | 263 | ||
265 | static int | 264 | static int |
266 | spufs_mkdir(struct inode *dir, struct dentry *dentry, unsigned int flags, | 265 | spufs_mkdir(struct inode *dir, struct dentry *dentry, unsigned int flags, |
267 | int mode) | 266 | umode_t mode) |
268 | { | 267 | { |
269 | int ret; | 268 | int ret; |
270 | struct inode *inode; | 269 | struct inode *inode; |
@@ -447,7 +446,7 @@ spufs_set_affinity(unsigned int flags, struct spu_context *ctx, | |||
447 | 446 | ||
448 | static int | 447 | static int |
449 | spufs_create_context(struct inode *inode, struct dentry *dentry, | 448 | spufs_create_context(struct inode *inode, struct dentry *dentry, |
450 | struct vfsmount *mnt, int flags, int mode, | 449 | struct vfsmount *mnt, int flags, umode_t mode, |
451 | struct file *aff_filp) | 450 | struct file *aff_filp) |
452 | { | 451 | { |
453 | int ret; | 452 | int ret; |
@@ -521,7 +520,7 @@ out: | |||
521 | } | 520 | } |
522 | 521 | ||
523 | static int | 522 | static int |
524 | spufs_mkgang(struct inode *dir, struct dentry *dentry, int mode) | 523 | spufs_mkgang(struct inode *dir, struct dentry *dentry, umode_t mode) |
525 | { | 524 | { |
526 | int ret; | 525 | int ret; |
527 | struct inode *inode; | 526 | struct inode *inode; |
@@ -584,7 +583,7 @@ out: | |||
584 | 583 | ||
585 | static int spufs_create_gang(struct inode *inode, | 584 | static int spufs_create_gang(struct inode *inode, |
586 | struct dentry *dentry, | 585 | struct dentry *dentry, |
587 | struct vfsmount *mnt, int mode) | 586 | struct vfsmount *mnt, umode_t mode) |
588 | { | 587 | { |
589 | int ret; | 588 | int ret; |
590 | 589 | ||
@@ -612,7 +611,7 @@ out: | |||
612 | static struct file_system_type spufs_type; | 611 | static struct file_system_type spufs_type; |
613 | 612 | ||
614 | long spufs_create(struct path *path, struct dentry *dentry, | 613 | long spufs_create(struct path *path, struct dentry *dentry, |
615 | unsigned int flags, mode_t mode, struct file *filp) | 614 | unsigned int flags, umode_t mode, struct file *filp) |
616 | { | 615 | { |
617 | int ret; | 616 | int ret; |
618 | 617 | ||
diff --git a/arch/powerpc/platforms/cell/spufs/spufs.h b/arch/powerpc/platforms/cell/spufs/spufs.h index 099245f230b2..67852ade4c01 100644 --- a/arch/powerpc/platforms/cell/spufs/spufs.h +++ b/arch/powerpc/platforms/cell/spufs/spufs.h | |||
@@ -237,7 +237,7 @@ struct spufs_inode_info { | |||
237 | struct spufs_tree_descr { | 237 | struct spufs_tree_descr { |
238 | const char *name; | 238 | const char *name; |
239 | const struct file_operations *ops; | 239 | const struct file_operations *ops; |
240 | int mode; | 240 | umode_t mode; |
241 | size_t size; | 241 | size_t size; |
242 | }; | 242 | }; |
243 | 243 | ||
@@ -249,7 +249,7 @@ extern const struct spufs_tree_descr spufs_dir_debug_contents[]; | |||
249 | extern struct spufs_calls spufs_calls; | 249 | extern struct spufs_calls spufs_calls; |
250 | long spufs_run_spu(struct spu_context *ctx, u32 *npc, u32 *status); | 250 | long spufs_run_spu(struct spu_context *ctx, u32 *npc, u32 *status); |
251 | long spufs_create(struct path *nd, struct dentry *dentry, unsigned int flags, | 251 | long spufs_create(struct path *nd, struct dentry *dentry, unsigned int flags, |
252 | mode_t mode, struct file *filp); | 252 | umode_t mode, struct file *filp); |
253 | /* ELF coredump callbacks for writing SPU ELF notes */ | 253 | /* ELF coredump callbacks for writing SPU ELF notes */ |
254 | extern int spufs_coredump_extra_notes_size(void); | 254 | extern int spufs_coredump_extra_notes_size(void); |
255 | extern int spufs_coredump_extra_notes_write(struct file *file, loff_t *foffset); | 255 | extern int spufs_coredump_extra_notes_write(struct file *file, loff_t *foffset); |
diff --git a/arch/powerpc/platforms/cell/spufs/syscalls.c b/arch/powerpc/platforms/cell/spufs/syscalls.c index 71a5b5207266..8591bb62d7fc 100644 --- a/arch/powerpc/platforms/cell/spufs/syscalls.c +++ b/arch/powerpc/platforms/cell/spufs/syscalls.c | |||
@@ -60,7 +60,7 @@ out: | |||
60 | } | 60 | } |
61 | 61 | ||
62 | static long do_spu_create(const char __user *pathname, unsigned int flags, | 62 | static long do_spu_create(const char __user *pathname, unsigned int flags, |
63 | mode_t mode, struct file *neighbor) | 63 | umode_t mode, struct file *neighbor) |
64 | { | 64 | { |
65 | struct path path; | 65 | struct path path; |
66 | struct dentry *dentry; | 66 | struct dentry *dentry; |
diff --git a/arch/powerpc/sysdev/axonram.c b/arch/powerpc/sysdev/axonram.c index ba4271919062..1c16141c031c 100644 --- a/arch/powerpc/sysdev/axonram.c +++ b/arch/powerpc/sysdev/axonram.c | |||
@@ -25,7 +25,6 @@ | |||
25 | 25 | ||
26 | #include <linux/bio.h> | 26 | #include <linux/bio.h> |
27 | #include <linux/blkdev.h> | 27 | #include <linux/blkdev.h> |
28 | #include <linux/buffer_head.h> | ||
29 | #include <linux/device.h> | 28 | #include <linux/device.h> |
30 | #include <linux/errno.h> | 29 | #include <linux/errno.h> |
31 | #include <linux/fs.h> | 30 | #include <linux/fs.h> |