浏览代码

[AVR32] constify function pointer tables

Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Jan Engelhardt 17 年之前
父节点
当前提交
f6135d12db
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      arch/avr32/kernel/cpu.c
  2. 1 1
      arch/avr32/mm/tlb.c

+ 1 - 1
arch/avr32/kernel/cpu.c

@@ -385,7 +385,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,

+ 1 - 1
arch/avr32/mm/tlb.c

@@ -348,7 +348,7 @@ static int tlb_show(struct seq_file *tlb, void *v)
 	return 0;
 }
 
-static struct seq_operations tlb_ops = {
+static const struct seq_operations tlb_ops = {
 	.start		= tlb_start,
 	.next		= tlb_next,
 	.stop		= tlb_stop,