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
@@ -478,7 +478,7 @@ bail:
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
static struct file_operations debug_purgelist_fops = {
|
||||
static const struct file_operations debug_purgelist_fops = {
|
||||
.open = debug_purgelist_open,
|
||||
.release = debug_buffer_release,
|
||||
.read = debug_buffer_read,
|
||||
@@ -538,7 +538,7 @@ bail:
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
static struct file_operations debug_mle_fops = {
|
||||
static const struct file_operations debug_mle_fops = {
|
||||
.open = debug_mle_open,
|
||||
.release = debug_buffer_release,
|
||||
.read = debug_buffer_read,
|
||||
@@ -741,7 +741,7 @@ static int debug_lockres_release(struct inode *inode, struct file *file)
|
||||
return seq_release_private(inode, file);
|
||||
}
|
||||
|
||||
static struct file_operations debug_lockres_fops = {
|
||||
static const struct file_operations debug_lockres_fops = {
|
||||
.open = debug_lockres_open,
|
||||
.release = debug_lockres_release,
|
||||
.read = seq_read,
|
||||
@@ -925,7 +925,7 @@ bail:
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
static struct file_operations debug_state_fops = {
|
||||
static const struct file_operations debug_state_fops = {
|
||||
.open = debug_state_open,
|
||||
.release = debug_buffer_release,
|
||||
.read = debug_buffer_read,
|
||||
|
Reference in New Issue
Block a user