Skip to content

Commit 5c81cdb

Browse files
Jan EngelhardtMartin Schwidefsky
authored andcommitted
[S390] constify function pointer tables.
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent 894cdde commit 5c81cdb

8 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎arch/s390/crypto/prng.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ static ssize_t prng_read(struct file *file, char __user *ubuf, size_t nbytes,
146146
return ret;
147147
}
148148

149-
static struct file_operations prng_fops = {
149+
static const struct file_operations prng_fops = {
150150
.owner = THIS_MODULE,
151151
.open = &prng_open,
152152
.release = NULL,

‎arch/s390/kernel/setup.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ static void *c_next(struct seq_file *m, void *v, loff_t *pos)
917917
static void c_stop(struct seq_file *m, void *v)
918918
{
919919
}
920-
struct seq_operations cpuinfo_op = {
920+
const struct seq_operations cpuinfo_op = {
921921
.start = c_start,
922922
.next = c_next,
923923
.stop = c_stop,

‎drivers/s390/block/dasd_proc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ static void dasd_devices_stop(struct seq_file *m, void *v)
142142
{
143143
}
144144

145-
static struct seq_operations dasd_devices_seq_ops = {
145+
static const struct seq_operations dasd_devices_seq_ops = {
146146
.start = dasd_devices_start,
147147
.next = dasd_devices_next,
148148
.stop = dasd_devices_stop,

‎drivers/s390/char/tape_proc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ static void tape_proc_stop(struct seq_file *m, void *v)
9797
{
9898
}
9999

100-
static struct seq_operations tape_proc_seq = {
100+
static const struct seq_operations tape_proc_seq = {
101101
.start = tape_proc_start,
102102
.next = tape_proc_next,
103103
.stop = tape_proc_stop,

‎drivers/s390/char/vmur.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ static loff_t ur_llseek(struct file *file, loff_t offset, int whence)
759759
return newpos;
760760
}
761761

762-
static struct file_operations ur_fops = {
762+
static const struct file_operations ur_fops = {
763763
.owner = THIS_MODULE,
764764
.open = ur_open,
765765
.release = ur_release,

‎drivers/s390/char/zcore.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ static loff_t zcore_lseek(struct file *file, loff_t offset, int orig)
470470
return rc;
471471
}
472472

473-
static struct file_operations zcore_fops = {
473+
static const struct file_operations zcore_fops = {
474474
.owner = THIS_MODULE,
475475
.llseek = zcore_lseek,
476476
.read = zcore_read,

‎drivers/s390/cio/blacklist.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ cio_ignore_write(struct file *file, const char __user *user_buf,
348348
return user_len;
349349
}
350350

351-
static struct seq_operations cio_ignore_proc_seq_ops = {
351+
static const struct seq_operations cio_ignore_proc_seq_ops = {
352352
.start = cio_ignore_proc_seq_start,
353353
.stop = cio_ignore_proc_seq_stop,
354354
.next = cio_ignore_proc_seq_next,

‎drivers/s390/net/qeth_proc.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ qeth_procfile_seq_show(struct seq_file *s, void *it)
146146
return 0;
147147
}
148148

149-
static struct seq_operations qeth_procfile_seq_ops = {
149+
static const struct seq_operations qeth_procfile_seq_ops = {
150150
.start = qeth_procfile_seq_start,
151151
.stop = qeth_procfile_seq_stop,
152152
.next = qeth_procfile_seq_next,
@@ -264,7 +264,7 @@ qeth_perf_procfile_seq_show(struct seq_file *s, void *it)
264264
return 0;
265265
}
266266

267-
static struct seq_operations qeth_perf_procfile_seq_ops = {
267+
static const struct seq_operations qeth_perf_procfile_seq_ops = {
268268
.start = qeth_procfile_seq_start,
269269
.stop = qeth_procfile_seq_stop,
270270
.next = qeth_procfile_seq_next,

0 commit comments

Comments
 (0)