提交 872e2be7 编写于 作者: J Jan Engelhardt 提交者: David S. Miller

[SPARC]: Constify function pointer tables.

Signed-off-by: NJan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 2ad913ba
...@@ -379,7 +379,7 @@ static void c_stop(struct seq_file *m, void *v) ...@@ -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, .start =c_start,
.next = c_next, .next = c_next,
.stop = c_stop, .stop = c_stop,
......
...@@ -421,7 +421,7 @@ static void c_stop(struct seq_file *m, void *v) ...@@ -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, .start =c_start,
.next = c_next, .next = c_next,
.stop = c_stop, .stop = c_stop,
......
...@@ -54,7 +54,7 @@ extern void mykfree(void *); ...@@ -54,7 +54,7 @@ extern void mykfree(void *);
static unsigned int (*sock_poll)(struct file *, poll_table *); 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 */ /* Currently empty */
}; };
......
...@@ -131,7 +131,7 @@ static void property_stop(struct seq_file *f, void *v) ...@@ -131,7 +131,7 @@ static void property_stop(struct seq_file *f, void *v)
/* Nothing to do */ /* Nothing to do */
} }
static struct seq_operations property_op = { static const struct seq_operations property_op = {
.start = property_start, .start = property_start,
.next = property_next, .next = property_next,
.stop = property_stop, .stop = property_stop,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册