]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/rxrpc/proc.c
[DCCP]: Set RTO for newly created child socket
[linux-2.6-omap-h63xx.git] / net / rxrpc / proc.c
index 3b5ecd8e2401f85c9d2f14a64ec33d3ef38db14e..8551c879e45645428840a60d97a2b857cdca4b80 100644 (file)
@@ -37,7 +37,7 @@ static struct seq_operations rxrpc_proc_transports_ops = {
        .show   = rxrpc_proc_transports_show,
 };
 
-static struct file_operations rxrpc_proc_transports_fops = {
+static const struct file_operations rxrpc_proc_transports_fops = {
        .open           = rxrpc_proc_transports_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
@@ -57,7 +57,7 @@ static struct seq_operations rxrpc_proc_peers_ops = {
        .show   = rxrpc_proc_peers_show,
 };
 
-static struct file_operations rxrpc_proc_peers_fops = {
+static const struct file_operations rxrpc_proc_peers_fops = {
        .open           = rxrpc_proc_peers_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
@@ -77,7 +77,7 @@ static struct seq_operations rxrpc_proc_conns_ops = {
        .show   = rxrpc_proc_conns_show,
 };
 
-static struct file_operations rxrpc_proc_conns_fops = {
+static const struct file_operations rxrpc_proc_conns_fops = {
        .open           = rxrpc_proc_conns_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
@@ -97,7 +97,7 @@ static struct seq_operations rxrpc_proc_calls_ops = {
        .show   = rxrpc_proc_calls_show,
 };
 
-static struct file_operations rxrpc_proc_calls_fops = {
+static const struct file_operations rxrpc_proc_calls_fops = {
        .open           = rxrpc_proc_calls_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
@@ -361,7 +361,7 @@ static void rxrpc_proc_peers_stop(struct seq_file *p, void *v)
 static int rxrpc_proc_peers_show(struct seq_file *m, void *v)
 {
        struct rxrpc_peer *peer = list_entry(v, struct rxrpc_peer, proc_link);
-       signed long timeout;
+       long timeout;
 
        /* display header on line 1 */
        if (v == SEQ_START_TOKEN) {
@@ -373,8 +373,8 @@ static int rxrpc_proc_peers_show(struct seq_file *m, void *v)
        /* display one peer per line on subsequent lines */
        timeout = 0;
        if (!list_empty(&peer->timeout.link))
-               timeout = (signed long) peer->timeout.timo_jif -
-                       (signed long) jiffies;
+               timeout = (long) peer->timeout.timo_jif -
+                       (long) jiffies;
 
        seq_printf(m, "%5hu %08x %5d %5d %8ld %5Zu %7lu\n",
                   peer->trans->port,
@@ -468,7 +468,7 @@ static void rxrpc_proc_conns_stop(struct seq_file *p, void *v)
 static int rxrpc_proc_conns_show(struct seq_file *m, void *v)
 {
        struct rxrpc_connection *conn;
-       signed long timeout;
+       long timeout;
 
        conn = list_entry(v, struct rxrpc_connection, proc_link);
 
@@ -484,8 +484,8 @@ static int rxrpc_proc_conns_show(struct seq_file *m, void *v)
        /* display one conn per line on subsequent lines */
        timeout = 0;
        if (!list_empty(&conn->timeout.link))
-               timeout = (signed long) conn->timeout.timo_jif -
-                       (signed long) jiffies;
+               timeout = (long) conn->timeout.timo_jif -
+                       (long) jiffies;
 
        seq_printf(m,
                   "%5hu %08x %5hu %04hx %08x %-3.3s %08x %08x %5Zu %8ld\n",