diff options
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/file.c | 8 | ||||
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/inode.c | 5 | ||||
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/spufs.h | 8 |
3 files changed, 11 insertions, 10 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/file.c b/arch/powerpc/platforms/cell/spufs/file.c index 0da7f2bf5ee1..9e4f2739341d 100644 --- a/arch/powerpc/platforms/cell/spufs/file.c +++ b/arch/powerpc/platforms/cell/spufs/file.c | |||
@@ -2665,7 +2665,7 @@ static const struct file_operations spufs_ctx_fops = { | |||
2665 | .release = single_release, | 2665 | .release = single_release, |
2666 | }; | 2666 | }; |
2667 | 2667 | ||
2668 | struct spufs_tree_descr spufs_dir_contents[] = { | 2668 | const struct spufs_tree_descr spufs_dir_contents[] = { |
2669 | { "capabilities", &spufs_caps_fops, 0444, }, | 2669 | { "capabilities", &spufs_caps_fops, 0444, }, |
2670 | { "mem", &spufs_mem_fops, 0666, LS_SIZE, }, | 2670 | { "mem", &spufs_mem_fops, 0666, LS_SIZE, }, |
2671 | { "regs", &spufs_regs_fops, 0666, sizeof(struct spu_reg128[128]), }, | 2671 | { "regs", &spufs_regs_fops, 0666, sizeof(struct spu_reg128[128]), }, |
@@ -2706,7 +2706,7 @@ struct spufs_tree_descr spufs_dir_contents[] = { | |||
2706 | {}, | 2706 | {}, |
2707 | }; | 2707 | }; |
2708 | 2708 | ||
2709 | struct spufs_tree_descr spufs_dir_nosched_contents[] = { | 2709 | const struct spufs_tree_descr spufs_dir_nosched_contents[] = { |
2710 | { "capabilities", &spufs_caps_fops, 0444, }, | 2710 | { "capabilities", &spufs_caps_fops, 0444, }, |
2711 | { "mem", &spufs_mem_fops, 0666, LS_SIZE, }, | 2711 | { "mem", &spufs_mem_fops, 0666, LS_SIZE, }, |
2712 | { "mbox", &spufs_mbox_fops, 0444, }, | 2712 | { "mbox", &spufs_mbox_fops, 0444, }, |
@@ -2731,12 +2731,12 @@ struct spufs_tree_descr spufs_dir_nosched_contents[] = { | |||
2731 | {}, | 2731 | {}, |
2732 | }; | 2732 | }; |
2733 | 2733 | ||
2734 | struct spufs_tree_descr spufs_dir_debug_contents[] = { | 2734 | const struct spufs_tree_descr spufs_dir_debug_contents[] = { |
2735 | { ".ctx", &spufs_ctx_fops, 0444, }, | 2735 | { ".ctx", &spufs_ctx_fops, 0444, }, |
2736 | {}, | 2736 | {}, |
2737 | }; | 2737 | }; |
2738 | 2738 | ||
2739 | struct spufs_coredump_reader spufs_coredump_read[] = { | 2739 | const struct spufs_coredump_reader spufs_coredump_read[] = { |
2740 | { "regs", __spufs_regs_read, NULL, sizeof(struct spu_reg128[128])}, | 2740 | { "regs", __spufs_regs_read, NULL, sizeof(struct spu_reg128[128])}, |
2741 | { "fpcr", __spufs_fpcr_read, NULL, sizeof(struct spu_reg128) }, | 2741 | { "fpcr", __spufs_fpcr_read, NULL, sizeof(struct spu_reg128) }, |
2742 | { "lslr", NULL, spufs_lslr_get, 19 }, | 2742 | { "lslr", NULL, spufs_lslr_get, 19 }, |
diff --git a/arch/powerpc/platforms/cell/spufs/inode.c b/arch/powerpc/platforms/cell/spufs/inode.c index e309ef70a531..64f068540d0d 100644 --- a/arch/powerpc/platforms/cell/spufs/inode.c +++ b/arch/powerpc/platforms/cell/spufs/inode.c | |||
@@ -186,8 +186,9 @@ static int spufs_rmdir(struct inode *parent, struct dentry *dir) | |||
186 | return simple_rmdir(parent, dir); | 186 | return simple_rmdir(parent, dir); |
187 | } | 187 | } |
188 | 188 | ||
189 | static int spufs_fill_dir(struct dentry *dir, struct spufs_tree_descr *files, | 189 | static int spufs_fill_dir(struct dentry *dir, |
190 | int mode, struct spu_context *ctx) | 190 | const struct spufs_tree_descr *files, int mode, |
191 | struct spu_context *ctx) | ||
191 | { | 192 | { |
192 | struct dentry *dentry, *tmp; | 193 | struct dentry *dentry, *tmp; |
193 | int ret; | 194 | int ret; |
diff --git a/arch/powerpc/platforms/cell/spufs/spufs.h b/arch/powerpc/platforms/cell/spufs/spufs.h index 3bf908e2873a..ae31573bea4a 100644 --- a/arch/powerpc/platforms/cell/spufs/spufs.h +++ b/arch/powerpc/platforms/cell/spufs/spufs.h | |||
@@ -241,9 +241,9 @@ struct spufs_tree_descr { | |||
241 | size_t size; | 241 | size_t size; |
242 | }; | 242 | }; |
243 | 243 | ||
244 | extern struct spufs_tree_descr spufs_dir_contents[]; | 244 | extern const struct spufs_tree_descr spufs_dir_contents[]; |
245 | extern struct spufs_tree_descr spufs_dir_nosched_contents[]; | 245 | extern const struct spufs_tree_descr spufs_dir_nosched_contents[]; |
246 | extern struct spufs_tree_descr spufs_dir_debug_contents[]; | 246 | extern const struct spufs_tree_descr spufs_dir_debug_contents[]; |
247 | 247 | ||
248 | /* system call implementation */ | 248 | /* system call implementation */ |
249 | extern struct spufs_calls spufs_calls; | 249 | extern struct spufs_calls spufs_calls; |
@@ -358,7 +358,7 @@ struct spufs_coredump_reader { | |||
358 | u64 (*get)(struct spu_context *ctx); | 358 | u64 (*get)(struct spu_context *ctx); |
359 | size_t size; | 359 | size_t size; |
360 | }; | 360 | }; |
361 | extern struct spufs_coredump_reader spufs_coredump_read[]; | 361 | extern const struct spufs_coredump_reader spufs_coredump_read[]; |
362 | extern int spufs_coredump_num_notes; | 362 | extern int spufs_coredump_num_notes; |
363 | 363 | ||
364 | extern int spu_init_csa(struct spu_state *csa); | 364 | extern int spu_init_csa(struct spu_state *csa); |