Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[S390] constify function pointer tables.

Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

authored by

Jan Engelhardt and committed by
Martin Schwidefsky
5c81cdbe 894cdde2

+9 -9
+1 -1
arch/s390/crypto/prng.c
··· 146 146 return ret; 147 147 } 148 148 149 - static struct file_operations prng_fops = { 149 + static const struct file_operations prng_fops = { 150 150 .owner = THIS_MODULE, 151 151 .open = &prng_open, 152 152 .release = NULL,
+1 -1
arch/s390/kernel/setup.c
··· 917 917 static void c_stop(struct seq_file *m, void *v) 918 918 { 919 919 } 920 - struct seq_operations cpuinfo_op = { 920 + const struct seq_operations cpuinfo_op = { 921 921 .start = c_start, 922 922 .next = c_next, 923 923 .stop = c_stop,
+1 -1
drivers/s390/block/dasd_proc.c
··· 142 142 { 143 143 } 144 144 145 - static struct seq_operations dasd_devices_seq_ops = { 145 + static const struct seq_operations dasd_devices_seq_ops = { 146 146 .start = dasd_devices_start, 147 147 .next = dasd_devices_next, 148 148 .stop = dasd_devices_stop,
+1 -1
drivers/s390/char/tape_proc.c
··· 97 97 { 98 98 } 99 99 100 - static struct seq_operations tape_proc_seq = { 100 + static const struct seq_operations tape_proc_seq = { 101 101 .start = tape_proc_start, 102 102 .next = tape_proc_next, 103 103 .stop = tape_proc_stop,
+1 -1
drivers/s390/char/vmur.c
··· 759 759 return newpos; 760 760 } 761 761 762 - static struct file_operations ur_fops = { 762 + static const struct file_operations ur_fops = { 763 763 .owner = THIS_MODULE, 764 764 .open = ur_open, 765 765 .release = ur_release,
+1 -1
drivers/s390/char/zcore.c
··· 470 470 return rc; 471 471 } 472 472 473 - static struct file_operations zcore_fops = { 473 + static const struct file_operations zcore_fops = { 474 474 .owner = THIS_MODULE, 475 475 .llseek = zcore_lseek, 476 476 .read = zcore_read,
+1 -1
drivers/s390/cio/blacklist.c
··· 348 348 return user_len; 349 349 } 350 350 351 - static struct seq_operations cio_ignore_proc_seq_ops = { 351 + static const struct seq_operations cio_ignore_proc_seq_ops = { 352 352 .start = cio_ignore_proc_seq_start, 353 353 .stop = cio_ignore_proc_seq_stop, 354 354 .next = cio_ignore_proc_seq_next,
+2 -2
drivers/s390/net/qeth_proc.c
··· 146 146 return 0; 147 147 } 148 148 149 - static struct seq_operations qeth_procfile_seq_ops = { 149 + static const struct seq_operations qeth_procfile_seq_ops = { 150 150 .start = qeth_procfile_seq_start, 151 151 .stop = qeth_procfile_seq_stop, 152 152 .next = qeth_procfile_seq_next, ··· 264 264 return 0; 265 265 } 266 266 267 - static struct seq_operations qeth_perf_procfile_seq_ops = { 267 + static const struct seq_operations qeth_perf_procfile_seq_ops = { 268 268 .start = qeth_procfile_seq_start, 269 269 .stop = qeth_procfile_seq_stop, 270 270 .next = qeth_procfile_seq_next,