mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
net: file_operations should be const
All instances of file_operations should be const. Signed-off-by: Stephen Hemminger <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
3b401a81c0
commit
5ca1b998d3
7 changed files with 14 additions and 14 deletions
|
|
@ -217,7 +217,7 @@ static int ip6mr_vif_open(struct inode *inode, struct file *file)
|
|||
sizeof(struct ipmr_vif_iter));
|
||||
}
|
||||
|
||||
static struct file_operations ip6mr_vif_fops = {
|
||||
static const struct file_operations ip6mr_vif_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = ip6mr_vif_open,
|
||||
.read = seq_read,
|
||||
|
|
@ -341,7 +341,7 @@ static int ipmr_mfc_open(struct inode *inode, struct file *file)
|
|||
sizeof(struct ipmr_mfc_iter));
|
||||
}
|
||||
|
||||
static struct file_operations ip6mr_mfc_fops = {
|
||||
static const struct file_operations ip6mr_mfc_fops = {
|
||||
.owner = THIS_MODULE,
|
||||
.open = ipmr_mfc_open,
|
||||
.read = seq_read,
|
||||
|
|
|
|||
Loading…
Reference in a new issue