Skip to content

Commit

Permalink
[SPARC]: Constify function pointer tables.
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Engelhardt <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Jan Engelhardt authored and davem330 committed Jan 23, 2008
1 parent 2ad913b commit 872e2be
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion arch/sparc/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ static void c_stop(struct seq_file *m, void *v)
{
}

struct seq_operations cpuinfo_op = {
const struct seq_operations cpuinfo_op = {
.start =c_start,
.next = c_next,
.stop = c_stop,
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc64/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ static void c_stop(struct seq_file *m, void *v)
{
}

struct seq_operations cpuinfo_op = {
const struct seq_operations cpuinfo_op = {
.start =c_start,
.next = c_next,
.stop = c_stop,
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc64/solaris/socksys.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ extern void mykfree(void *);

static unsigned int (*sock_poll)(struct file *, poll_table *);

static struct file_operations socksys_file_ops = {
static const struct file_operations socksys_file_ops = {
/* Currently empty */
};

Expand Down
2 changes: 1 addition & 1 deletion fs/openpromfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ static void property_stop(struct seq_file *f, void *v)
/* Nothing to do */
}

static struct seq_operations property_op = {
static const struct seq_operations property_op = {
.start = property_start,
.next = property_next,
.stop = property_stop,
Expand Down

0 comments on commit 872e2be

Please sign in to comment.