[PATCH] mark struct file_operations const 8
[linux-2.6-block.git] / net / x25 / x25_proc.c
index e0470bd8c2f9e6e8282e34285fdc82cb7e59b14b..96001f0c64fc16a8f4cd32512bb31adab912ec5f 100644 (file)
@@ -3,7 +3,7 @@
  *
  *     This is ALPHA test software. This code may break your machine,
  *     randomly fail to work with new releases, misbehave and/or generally
- *     screw up. It might even work. 
+ *     screw up. It might even work.
  *
  *     This code REQUIRES 2.4 with seq_file support
  *
@@ -62,7 +62,7 @@ static void *x25_seq_route_next(struct seq_file *seq, void *v, loff_t *pos)
        rt = v;
        if (rt->node.next != &x25_route_list)
                rt = list_entry(rt->node.next, struct x25_route, node);
-       else 
+       else
                rt = NULL;
 out:
        return rt;
@@ -88,7 +88,7 @@ static int x25_seq_route_show(struct seq_file *seq, void *v)
                   rt->dev ? rt->dev->name : "???");
 out:
        return 0;
-} 
+}
 
 static __inline__ struct sock *x25_get_socket_idx(loff_t pos)
 {
@@ -163,7 +163,7 @@ static int x25_seq_socket_show(struct seq_file *seq, void *v)
                   s->sk_socket ? SOCK_INODE(s->sk_socket)->i_ino : 0L);
 out:
        return 0;
-} 
+}
 
 static __inline__ struct x25_forward *x25_get_forward_idx(loff_t pos)
 {
@@ -270,7 +270,7 @@ static int x25_seq_forward_open(struct inode *inode, struct file *file)
        return seq_open(file, &x25_seq_forward_ops);
 }
 
-static struct file_operations x25_seq_socket_fops = {
+static const struct file_operations x25_seq_socket_fops = {
        .owner          = THIS_MODULE,
        .open           = x25_seq_socket_open,
        .read           = seq_read,
@@ -278,7 +278,7 @@ static struct file_operations x25_seq_socket_fops = {
        .release        = seq_release,
 };
 
-static struct file_operations x25_seq_route_fops = {
+static const struct file_operations x25_seq_route_fops = {
        .owner          = THIS_MODULE,
        .open           = x25_seq_route_open,
        .read           = seq_read,