diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-09-01 15:25:05 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-02 04:03:53 -0400 |
commit | 5ca1b998d33c39819fca2b675d80c4469e705f2d (patch) | |
tree | fbe882f3908b6b57ae3fe54d13abb0067538276d /net/ipv6 | |
parent | 3b401a81c0d50ea9c718cf837f62cc2e6e79cc30 (diff) |
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>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/ip6mr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c index d2df837892d2..5c8d73730c75 100644 --- a/net/ipv6/ip6mr.c +++ b/net/ipv6/ip6mr.c | |||
@@ -217,7 +217,7 @@ static int ip6mr_vif_open(struct inode *inode, struct file *file) | |||
217 | sizeof(struct ipmr_vif_iter)); | 217 | sizeof(struct ipmr_vif_iter)); |
218 | } | 218 | } |
219 | 219 | ||
220 | static struct file_operations ip6mr_vif_fops = { | 220 | static const struct file_operations ip6mr_vif_fops = { |
221 | .owner = THIS_MODULE, | 221 | .owner = THIS_MODULE, |
222 | .open = ip6mr_vif_open, | 222 | .open = ip6mr_vif_open, |
223 | .read = seq_read, | 223 | .read = seq_read, |
@@ -341,7 +341,7 @@ static int ipmr_mfc_open(struct inode *inode, struct file *file) | |||
341 | sizeof(struct ipmr_mfc_iter)); | 341 | sizeof(struct ipmr_mfc_iter)); |
342 | } | 342 | } |
343 | 343 | ||
344 | static struct file_operations ip6mr_mfc_fops = { | 344 | static const struct file_operations ip6mr_mfc_fops = { |
345 | .owner = THIS_MODULE, | 345 | .owner = THIS_MODULE, |
346 | .open = ipmr_mfc_open, | 346 | .open = ipmr_mfc_open, |
347 | .read = seq_read, | 347 | .read = seq_read, |