mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
const: constify remaining file_operations
[[email protected]: fix KVM] Signed-off-by: Alexey Dobriyan <[email protected]> Acked-by: Mike Frysinger <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
1c4115e595
commit
828c09509b
57 changed files with 110 additions and 95 deletions
|
|
@ -1333,7 +1333,7 @@ static int __kprobes kprobes_open(struct inode *inode, struct file *filp)
|
|||
return seq_open(filp, &kprobes_seq_ops);
|
||||
}
|
||||
|
||||
static struct file_operations debugfs_kprobes_operations = {
|
||||
static const struct file_operations debugfs_kprobes_operations = {
|
||||
.open = kprobes_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
|
@ -1515,7 +1515,7 @@ static ssize_t write_enabled_file_bool(struct file *file,
|
|||
return count;
|
||||
}
|
||||
|
||||
static struct file_operations fops_kp = {
|
||||
static const struct file_operations fops_kp = {
|
||||
.read = read_enabled_file_bool,
|
||||
.write = write_enabled_file_bool,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue