net: file_operations should be const
All instances of file_operations should be const. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
3b401a81c0
commit
5ca1b998d3
@@ -3718,7 +3718,7 @@ static int pfkey_seq_open(struct inode *inode, struct file *file)
|
||||
sizeof(struct seq_net_private));
|
||||
}
|
||||
|
||||
static struct file_operations pfkey_proc_ops = {
|
||||
static const struct file_operations pfkey_proc_ops = {
|
||||
.open = pfkey_seq_open,
|
||||
.read = seq_read,
|
||||
.llseek = seq_lseek,
|
||||
|
Reference in New Issue
Block a user