Skip to content

Commit 2ffd6e1

Browse files
Jan EngelhardtRussell King
authored andcommitted
[ARM] constify function pointer tables
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent 72e7ae8 commit 2ffd6e1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎arch/arm/kernel/setup.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ static void c_stop(struct seq_file *m, void *v)
10011001
{
10021002
}
10031003

1004-
struct seq_operations cpuinfo_op = {
1004+
const struct seq_operations cpuinfo_op = {
10051005
.start = c_start,
10061006
.next = c_next,
10071007
.stop = c_stop,

‎arch/arm/mach-davinci/clock.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ static int davinci_ck_show(struct seq_file *m, void *v)
290290
return 0;
291291
}
292292

293-
static struct seq_operations davinci_ck_op = {
293+
static const struct seq_operations davinci_ck_op = {
294294
.start = davinci_ck_start,
295295
.next = davinci_ck_next,
296296
.stop = davinci_ck_stop,
@@ -302,7 +302,7 @@ static int davinci_ck_open(struct inode *inode, struct file *file)
302302
return seq_open(file, &davinci_ck_op);
303303
}
304304

305-
static struct file_operations proc_davinci_ck_operations = {
305+
static const struct file_operations proc_davinci_ck_operations = {
306306
.open = davinci_ck_open,
307307
.read = seq_read,
308308
.llseek = seq_lseek,

0 commit comments

Comments
 (0)