[IPSEC]: Fix length check in xfrm_parse_spi
[pandora-kernel.git] / net / irda / discovery.c
index 789478b..af0cea7 100644 (file)
@@ -395,7 +395,7 @@ static int discovery_seq_show(struct seq_file *seq, void *v)
        return 0;
 }
 
-static struct seq_operations discovery_seq_ops = {
+static const struct seq_operations discovery_seq_ops = {
        .start  = discovery_seq_start,
        .next   = discovery_seq_next,
        .stop   = discovery_seq_stop,
@@ -409,7 +409,7 @@ static int discovery_seq_open(struct inode *inode, struct file *file)
        return seq_open(file, &discovery_seq_ops);
 }
 
-struct file_operations discovery_seq_fops = {
+const struct file_operations discovery_seq_fops = {
        .owner          = THIS_MODULE,
        .open           = discovery_seq_open,
        .read           = seq_read,