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
@@ -134,7 +134,7 @@ static int pzl_open(struct inode *inode, struct file *file)
|
||||
return single_open(file, pzl_print, inode->i_private);
|
||||
}
|
||||
|
||||
static struct file_operations di_fops = {
|
||||
static const struct file_operations di_fops = {
|
||||
.open = di_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@@ -142,7 +142,7 @@ static struct file_operations di_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
};
|
||||
|
||||
static struct file_operations asl_fops = {
|
||||
static const struct file_operations asl_fops = {
|
||||
.open = asl_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
@@ -150,7 +150,7 @@ static struct file_operations asl_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
};
|
||||
|
||||
static struct file_operations pzl_fops = {
|
||||
static const struct file_operations pzl_fops = {
|
||||
.open = pzl_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
Reference in New Issue
Block a user