Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 138478
b: refs/heads/master
c: 7425464
h: refs/heads/master
v: v3
  • Loading branch information
Jeremy Kerr authored and Benjamin Herrenschmidt committed Feb 22, 2009
1 parent 5cb1530 commit f2417ef
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3688b46b89a1a64d5eeb0df5f9d82e109712fffe
refs/heads/master: 74254647e06452faff3675f9cd347ef2a5d63d90
8 changes: 4 additions & 4 deletions trunk/arch/powerpc/platforms/cell/spufs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -2665,7 +2665,7 @@ static const struct file_operations spufs_ctx_fops = {
.release = single_release,
};

struct spufs_tree_descr spufs_dir_contents[] = {
const struct spufs_tree_descr spufs_dir_contents[] = {
{ "capabilities", &spufs_caps_fops, 0444, },
{ "mem", &spufs_mem_fops, 0666, LS_SIZE, },
{ "regs", &spufs_regs_fops, 0666, sizeof(struct spu_reg128[128]), },
Expand Down Expand Up @@ -2706,7 +2706,7 @@ struct spufs_tree_descr spufs_dir_contents[] = {
{},
};

struct spufs_tree_descr spufs_dir_nosched_contents[] = {
const struct spufs_tree_descr spufs_dir_nosched_contents[] = {
{ "capabilities", &spufs_caps_fops, 0444, },
{ "mem", &spufs_mem_fops, 0666, LS_SIZE, },
{ "mbox", &spufs_mbox_fops, 0444, },
Expand All @@ -2731,12 +2731,12 @@ struct spufs_tree_descr spufs_dir_nosched_contents[] = {
{},
};

struct spufs_tree_descr spufs_dir_debug_contents[] = {
const struct spufs_tree_descr spufs_dir_debug_contents[] = {
{ ".ctx", &spufs_ctx_fops, 0444, },
{},
};

struct spufs_coredump_reader spufs_coredump_read[] = {
const struct spufs_coredump_reader spufs_coredump_read[] = {
{ "regs", __spufs_regs_read, NULL, sizeof(struct spu_reg128[128])},
{ "fpcr", __spufs_fpcr_read, NULL, sizeof(struct spu_reg128) },
{ "lslr", NULL, spufs_lslr_get, 19 },
Expand Down
5 changes: 3 additions & 2 deletions trunk/arch/powerpc/platforms/cell/spufs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,9 @@ static int spufs_rmdir(struct inode *parent, struct dentry *dir)
return simple_rmdir(parent, dir);
}

static int spufs_fill_dir(struct dentry *dir, struct spufs_tree_descr *files,
int mode, struct spu_context *ctx)
static int spufs_fill_dir(struct dentry *dir,
const struct spufs_tree_descr *files, int mode,
struct spu_context *ctx)
{
struct dentry *dentry, *tmp;
int ret;
Expand Down
8 changes: 4 additions & 4 deletions trunk/arch/powerpc/platforms/cell/spufs/spufs.h
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,9 @@ struct spufs_tree_descr {
size_t size;
};

extern struct spufs_tree_descr spufs_dir_contents[];
extern struct spufs_tree_descr spufs_dir_nosched_contents[];
extern struct spufs_tree_descr spufs_dir_debug_contents[];
extern const struct spufs_tree_descr spufs_dir_contents[];
extern const struct spufs_tree_descr spufs_dir_nosched_contents[];
extern const struct spufs_tree_descr spufs_dir_debug_contents[];

/* system call implementation */
extern struct spufs_calls spufs_calls;
Expand Down Expand Up @@ -358,7 +358,7 @@ struct spufs_coredump_reader {
u64 (*get)(struct spu_context *ctx);
size_t size;
};
extern struct spufs_coredump_reader spufs_coredump_read[];
extern const struct spufs_coredump_reader spufs_coredump_read[];
extern int spufs_coredump_num_notes;

extern int spu_init_csa(struct spu_state *csa);
Expand Down

0 comments on commit f2417ef

Please sign in to comment.