diff options
Diffstat (limited to 'mm/swapfile.c')
-rw-r--r-- | mm/swapfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/swapfile.c b/mm/swapfile.c index 55242363de64..c5431072f422 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c | |||
@@ -1368,7 +1368,7 @@ static int swap_show(struct seq_file *swap, void *v) | |||
1368 | return 0; | 1368 | return 0; |
1369 | } | 1369 | } |
1370 | 1370 | ||
1371 | static struct seq_operations swaps_op = { | 1371 | static const struct seq_operations swaps_op = { |
1372 | .start = swap_start, | 1372 | .start = swap_start, |
1373 | .next = swap_next, | 1373 | .next = swap_next, |
1374 | .stop = swap_stop, | 1374 | .stop = swap_stop, |
@@ -1380,7 +1380,7 @@ static int swaps_open(struct inode *inode, struct file *file) | |||
1380 | return seq_open(file, &swaps_op); | 1380 | return seq_open(file, &swaps_op); |
1381 | } | 1381 | } |
1382 | 1382 | ||
1383 | static struct file_operations proc_swaps_operations = { | 1383 | static const struct file_operations proc_swaps_operations = { |
1384 | .open = swaps_open, | 1384 | .open = swaps_open, |
1385 | .read = seq_read, | 1385 | .read = seq_read, |
1386 | .llseek = seq_lseek, | 1386 | .llseek = seq_lseek, |