Browse Source

x86: constify function pointer tables

Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Jan Engelhardt 17 years ago
parent
commit
8a45eb31d8
2 changed files with 2 additions and 2 deletions
  1. 1 1
      arch/x86/kernel/cpu/proc.c
  2. 1 1
      arch/x86/kernel/setup_64.c

+ 1 - 1
arch/x86/kernel/cpu/proc.c

@@ -188,7 +188,7 @@ static void *c_next(struct seq_file *m, void *v, loff_t *pos)
 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/x86/kernel/setup_64.c

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