[PATCH] mark struct file_operations const 7
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / net / core / dev.c
index 85d58d799329716faa3af946195ac852937dd1d9..cf71614dae93bf29d5211b86dc487c9e9a82faff 100644 (file)
@@ -2200,7 +2200,7 @@ static int dev_seq_open(struct inode *inode, struct file *file)
        return seq_open(file, &dev_seq_ops);
 }
 
-static struct file_operations dev_seq_fops = {
+static const struct file_operations dev_seq_fops = {
        .owner   = THIS_MODULE,
        .open    = dev_seq_open,
        .read    = seq_read,
@@ -2220,7 +2220,7 @@ static int softnet_seq_open(struct inode *inode, struct file *file)
        return seq_open(file, &softnet_seq_ops);
 }
 
-static struct file_operations softnet_seq_fops = {
+static const struct file_operations softnet_seq_fops = {
        .owner   = THIS_MODULE,
        .open    = softnet_seq_open,
        .read    = seq_read,