Skip to content

Commit 03a4482

Browse files
Jan EngelhardtLinus Torvalds
authored andcommitted
procfs: constify function pointer tables
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Mike Frysinger <vapier@gentoo.org> Acked-By: David Howells <dhowells@redhat.com> Acked-by: Bryan Wu <bryan.wu@analog.com> Acked-by: Jesper Nilsson <jesper.nilsson@axis.com> Cc: <linux-arch@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent ec26e11 commit 03a4482

19 files changed

Lines changed: 34 additions & 34 deletions

File tree

‎arch/alpha/kernel/setup.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1471,7 +1471,7 @@ c_stop(struct seq_file *f, void *v)
14711471
{
14721472
}
14731473

1474-
struct seq_operations cpuinfo_op = {
1474+
const struct seq_operations cpuinfo_op = {
14751475
.start = c_start,
14761476
.next = c_next,
14771477
.stop = c_stop,

‎arch/blackfin/kernel/setup.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ static void c_stop(struct seq_file *m, void *v)
700700
{
701701
}
702702

703-
struct seq_operations cpuinfo_op = {
703+
const struct seq_operations cpuinfo_op = {
704704
.start = c_start,
705705
.next = c_next,
706706
.stop = c_stop,

‎arch/cris/kernel/setup.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ static void c_stop(struct seq_file *m, void *v)
180180

181181
extern int show_cpuinfo(struct seq_file *m, void *v);
182182

183-
struct seq_operations cpuinfo_op = {
183+
const struct seq_operations cpuinfo_op = {
184184
.start = c_start,
185185
.next = c_next,
186186
.stop = c_stop,

‎arch/frv/kernel/setup.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,7 @@ static void c_stop(struct seq_file *m, void *v)
11131113
{
11141114
}
11151115

1116-
struct seq_operations cpuinfo_op = {
1116+
const struct seq_operations cpuinfo_op = {
11171117
.start = c_start,
11181118
.next = c_next,
11191119
.stop = c_stop,

‎arch/h8300/kernel/setup.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ static void c_stop(struct seq_file *m, void *v)
236236
{
237237
}
238238

239-
struct seq_operations cpuinfo_op = {
239+
const struct seq_operations cpuinfo_op = {
240240
.start = c_start,
241241
.next = c_next,
242242
.stop = c_stop,

‎arch/m32r/kernel/setup.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ static void c_stop(struct seq_file *m, void *v)
369369
{
370370
}
371371

372-
struct seq_operations cpuinfo_op = {
372+
const struct seq_operations cpuinfo_op = {
373373
.start = c_start,
374374
.next = c_next,
375375
.stop = c_stop,

‎arch/m68k/kernel/setup.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ static void *c_next(struct seq_file *m, void *v, loff_t *pos)
450450
static void c_stop(struct seq_file *m, void *v)
451451
{
452452
}
453-
struct seq_operations cpuinfo_op = {
453+
const struct seq_operations cpuinfo_op = {
454454
.start = c_start,
455455
.next = c_next,
456456
.stop = c_stop,

‎arch/m68knommu/kernel/setup.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ static void c_stop(struct seq_file *m, void *v)
260260
{
261261
}
262262

263-
struct seq_operations cpuinfo_op = {
263+
const struct seq_operations cpuinfo_op = {
264264
.start = c_start,
265265
.next = c_next,
266266
.stop = c_stop,

‎arch/parisc/kernel/setup.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ c_stop (struct seq_file *m, void *v)
190190
{
191191
}
192192

193-
struct seq_operations cpuinfo_op = {
193+
const struct seq_operations cpuinfo_op = {
194194
.start = c_start,
195195
.next = c_next,
196196
.stop = c_stop,

‎arch/ppc/kernel/setup.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ static void c_stop(struct seq_file *m, void *v)
275275
{
276276
}
277277

278-
struct seq_operations cpuinfo_op = {
278+
const struct seq_operations cpuinfo_op = {
279279
.start =c_start,
280280
.next = c_next,
281281
.stop = c_stop,

0 commit comments

Comments
 (0)