[S390] constify function pointer tables.
authorJan Engelhardt <jengelh@computergmbh.de>
Sat, 26 Jan 2008 13:11:29 +0000 (14:11 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Sat, 26 Jan 2008 13:11:32 +0000 (14:11 +0100)
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/crypto/prng.c
arch/s390/kernel/setup.c
drivers/s390/block/dasd_proc.c
drivers/s390/char/tape_proc.c
drivers/s390/char/vmur.c
drivers/s390/char/zcore.c
drivers/s390/cio/blacklist.c
drivers/s390/net/qeth_proc.c

index 23ed094c52fe99943a6d1730074c4abf45e4f695..0cfefddd83755366fee0dae7634ccca6342b21dd 100644 (file)
@@ -146,7 +146,7 @@ static ssize_t prng_read(struct file *file, char __user *ubuf, size_t nbytes,
        return ret;
 }
 
-static struct file_operations prng_fops = {
+static const struct file_operations prng_fops = {
        .owner          = THIS_MODULE,
        .open           = &prng_open,
        .release        = NULL,
index fcebf645618a055f4c915cca683491c07e305686..766c783bd7a726e25c8a9f0ba243067a1a296344 100644 (file)
@@ -917,7 +917,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,
index 0584a7dc5ede3521477f9dc815a4e8ec683207c6..28a86f070048b4a3a25719fb100546df9cd8ebd8 100644 (file)
@@ -142,7 +142,7 @@ static void dasd_devices_stop(struct seq_file *m, void *v)
 {
 }
 
-static struct seq_operations dasd_devices_seq_ops = {
+static const struct seq_operations dasd_devices_seq_ops = {
        .start          = dasd_devices_start,
        .next           = dasd_devices_next,
        .stop           = dasd_devices_stop,
index cea49f001f89cbea1fadc0c541e0f08b2d888491..c9b96d51b28f25d36ab9fa85fbc34e60648fc3e0 100644 (file)
@@ -97,7 +97,7 @@ static void tape_proc_stop(struct seq_file *m, void *v)
 {
 }
 
-static struct seq_operations tape_proc_seq = {
+static const struct seq_operations tape_proc_seq = {
        .start          = tape_proc_start,
        .next           = tape_proc_next,
        .stop           = tape_proc_stop,
index d70a6e65bf14fdf314dae599450d55c85e815b23..7689b500a1046ffbddfd0426c7229847959bc0f0 100644 (file)
@@ -759,7 +759,7 @@ static loff_t ur_llseek(struct file *file, loff_t offset, int whence)
        return newpos;
 }
 
-static struct file_operations ur_fops = {
+static const struct file_operations ur_fops = {
        .owner   = THIS_MODULE,
        .open    = ur_open,
        .release = ur_release,
index 7073daf77981005e7edfe0c6f59c08b2a3251212..f523501e6e6c60bb25bbf80077847f87edcfc23a 100644 (file)
@@ -470,7 +470,7 @@ static loff_t zcore_lseek(struct file *file, loff_t offset, int orig)
        return rc;
 }
 
-static struct file_operations zcore_fops = {
+static const struct file_operations zcore_fops = {
        .owner          = THIS_MODULE,
        .llseek         = zcore_lseek,
        .read           = zcore_read,
index bd5f16f80bf8f316e8d52937771100cf0f914d7f..e8597ec92247b2eb9127f32448b24c47b12a50e1 100644 (file)
@@ -348,7 +348,7 @@ cio_ignore_write(struct file *file, const char __user *user_buf,
        return user_len;
 }
 
-static struct seq_operations cio_ignore_proc_seq_ops = {
+static const struct seq_operations cio_ignore_proc_seq_ops = {
        .start = cio_ignore_proc_seq_start,
        .stop  = cio_ignore_proc_seq_stop,
        .next  = cio_ignore_proc_seq_next,
index f1ff165a5e052a3e2a180290c9de41f97b2eeba5..46ecd03a597ef2828a9ecbbd1b3077ce0aa0aefa 100644 (file)
@@ -146,7 +146,7 @@ qeth_procfile_seq_show(struct seq_file *s, void *it)
        return 0;
 }
 
-static struct seq_operations qeth_procfile_seq_ops = {
+static const struct seq_operations qeth_procfile_seq_ops = {
        .start = qeth_procfile_seq_start,
        .stop  = qeth_procfile_seq_stop,
        .next  = qeth_procfile_seq_next,
@@ -264,7 +264,7 @@ qeth_perf_procfile_seq_show(struct seq_file *s, void *it)
        return 0;
 }
 
-static struct seq_operations qeth_perf_procfile_seq_ops = {
+static const struct seq_operations qeth_perf_procfile_seq_ops = {
        .start = qeth_procfile_seq_start,
        .stop  = qeth_procfile_seq_stop,
        .next  = qeth_procfile_seq_next,