[SPARC]: Constify function pointer tables.
authorJan Engelhardt <jengelh@computergmbh.de>
Wed, 23 Jan 2008 02:29:20 +0000 (18:29 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jan 2008 02:29:20 +0000 (18:29 -0800)
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/setup.c
arch/sparc64/kernel/setup.c
arch/sparc64/solaris/socksys.c
fs/openpromfs/inode.c

index f8228383895ac9f38c51709c9af3c76ac13d2ba1..d07bc74773aa4c2bfa063a8090a0b0efe95dda52 100644 (file)
@@ -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,
index 0f5be828ee92614c8465055552a192e042274d47..a813441b358f1355d9a732a530e7ef5160dcfba9 100644 (file)
@@ -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,
index 7736411f244ff06f760a233ebc94ab8a5bf36bba..5f064183c8740b73122066805575aafdfc1b5407 100644 (file)
@@ -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 */
 };
 
index d88173840082aad76ab84a2c086c3d06bb73bef9..6b7ff16189450b972374bfa0689f52e24a51405a 100644 (file)
@@ -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,