const: constify remaining file_operations
[akpm@linux-foundation.org: fix KVM] Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Acked-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
1c4115e595
commit
828c09509b
@@ -275,7 +275,7 @@ static int timer_list_open(struct inode *inode, struct file *filp)
|
||||
return single_open(filp, timer_list_show, NULL);
|
||||
}
|
||||
|
||||
static struct file_operations timer_list_fops = {
|
||||
static const struct file_operations timer_list_fops = {
|
||||
.open = timer_list_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
@@ -395,7 +395,7 @@ static int tstats_open(struct inode *inode, struct file *filp)
|
||||
return single_open(filp, tstats_show, NULL);
|
||||
}
|
||||
|
||||
static struct file_operations tstats_fops = {
|
||||
static const struct file_operations tstats_fops = {
|
||||
.open = tstats_open,
|
||||
.read = seq_read,
|
||||
.write = tstats_write,
|
||||
|
Reference in New Issue
Block a user