summaryrefslogtreecommitdiffstats
path: root/net/rxrpc/sysctl.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2016-03-09 18:22:56 -0500
committerDavid S. Miller <davem@davemloft.net>2016-03-13 15:14:57 -0400
commitdad8aff754247781514c9d38f6db89557685136d (patch)
tree59b4c7dec17b8b0714a9dd55910debf3f29ccc51 /net/rxrpc/sysctl.c
parent00e3d2ef184d005db4e14d64f5870d556183e638 (diff)
rxrpc: Replace all unsigned with unsigned int
Replace all "unsigned" types with "unsigned int" types. Reported-by: David Miller <davem@davemloft.net> Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rxrpc/sysctl.c')
-rw-r--r--net/rxrpc/sysctl.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/net/rxrpc/sysctl.c b/net/rxrpc/sysctl.c
index 093547ac2bcd..d20ed575acf4 100644
--- a/net/rxrpc/sysctl.c
+++ b/net/rxrpc/sysctl.c
@@ -15,11 +15,11 @@
15#include "ar-internal.h" 15#include "ar-internal.h"
16 16
17static struct ctl_table_header *rxrpc_sysctl_reg_table; 17static struct ctl_table_header *rxrpc_sysctl_reg_table;
18static const unsigned zero = 0; 18static const unsigned int zero = 0;
19static const unsigned one = 1; 19static const unsigned int one = 1;
20static const unsigned four = 4; 20static const unsigned int four = 4;
21static const unsigned n_65535 = 65535; 21static const unsigned int n_65535 = 65535;
22static const unsigned n_max_acks = RXRPC_MAXACKS; 22static const unsigned int n_max_acks = RXRPC_MAXACKS;
23 23
24/* 24/*
25 * RxRPC operating parameters. 25 * RxRPC operating parameters.
@@ -32,7 +32,7 @@ static struct ctl_table rxrpc_sysctl_table[] = {
32 { 32 {
33 .procname = "req_ack_delay", 33 .procname = "req_ack_delay",
34 .data = &rxrpc_requested_ack_delay, 34 .data = &rxrpc_requested_ack_delay,
35 .maxlen = sizeof(unsigned), 35 .maxlen = sizeof(unsigned int),
36 .mode = 0644, 36 .mode = 0644,
37 .proc_handler = proc_dointvec_ms_jiffies, 37 .proc_handler = proc_dointvec_ms_jiffies,
38 .extra1 = (void *)&zero, 38 .extra1 = (void *)&zero,
@@ -40,7 +40,7 @@ static struct ctl_table rxrpc_sysctl_table[] = {
40 { 40 {
41 .procname = "soft_ack_delay", 41 .procname = "soft_ack_delay",
42 .data = &rxrpc_soft_ack_delay, 42 .data = &rxrpc_soft_ack_delay,
43 .maxlen = sizeof(unsigned), 43 .maxlen = sizeof(unsigned int),
44 .mode = 0644, 44 .mode = 0644,
45 .proc_handler = proc_dointvec_ms_jiffies, 45 .proc_handler = proc_dointvec_ms_jiffies,
46 .extra1 = (void *)&one, 46 .extra1 = (void *)&one,
@@ -48,7 +48,7 @@ static struct ctl_table rxrpc_sysctl_table[] = {
48 { 48 {
49 .procname = "idle_ack_delay", 49 .procname = "idle_ack_delay",
50 .data = &rxrpc_idle_ack_delay, 50 .data = &rxrpc_idle_ack_delay,
51 .maxlen = sizeof(unsigned), 51 .maxlen = sizeof(unsigned int),
52 .mode = 0644, 52 .mode = 0644,
53 .proc_handler = proc_dointvec_ms_jiffies, 53 .proc_handler = proc_dointvec_ms_jiffies,
54 .extra1 = (void *)&one, 54 .extra1 = (void *)&one,
@@ -56,7 +56,7 @@ static struct ctl_table rxrpc_sysctl_table[] = {
56 { 56 {
57 .procname = "resend_timeout", 57 .procname = "resend_timeout",
58 .data = &rxrpc_resend_timeout, 58 .data = &rxrpc_resend_timeout,
59 .maxlen = sizeof(unsigned), 59 .maxlen = sizeof(unsigned int),
60 .mode = 0644, 60 .mode = 0644,
61 .proc_handler = proc_dointvec_ms_jiffies, 61 .proc_handler = proc_dointvec_ms_jiffies,
62 .extra1 = (void *)&one, 62 .extra1 = (void *)&one,
@@ -66,7 +66,7 @@ static struct ctl_table rxrpc_sysctl_table[] = {
66 { 66 {
67 .procname = "max_call_lifetime", 67 .procname = "max_call_lifetime",
68 .data = &rxrpc_max_call_lifetime, 68 .data = &rxrpc_max_call_lifetime,
69 .maxlen = sizeof(unsigned), 69 .maxlen = sizeof(unsigned int),
70 .mode = 0644, 70 .mode = 0644,
71 .proc_handler = proc_dointvec_jiffies, 71 .proc_handler = proc_dointvec_jiffies,
72 .extra1 = (void *)&one, 72 .extra1 = (void *)&one,
@@ -74,7 +74,7 @@ static struct ctl_table rxrpc_sysctl_table[] = {
74 { 74 {
75 .procname = "dead_call_expiry", 75 .procname = "dead_call_expiry",
76 .data = &rxrpc_dead_call_expiry, 76 .data = &rxrpc_dead_call_expiry,
77 .maxlen = sizeof(unsigned), 77 .maxlen = sizeof(unsigned int),
78 .mode = 0644, 78 .mode = 0644,
79 .proc_handler = proc_dointvec_jiffies, 79 .proc_handler = proc_dointvec_jiffies,
80 .extra1 = (void *)&one, 80 .extra1 = (void *)&one,
@@ -84,7 +84,7 @@ static struct ctl_table rxrpc_sysctl_table[] = {
84 { 84 {
85 .procname = "connection_expiry", 85 .procname = "connection_expiry",
86 .data = &rxrpc_connection_expiry, 86 .data = &rxrpc_connection_expiry,
87 .maxlen = sizeof(unsigned), 87 .maxlen = sizeof(unsigned int),
88 .mode = 0644, 88 .mode = 0644,
89 .proc_handler = proc_dointvec_minmax, 89 .proc_handler = proc_dointvec_minmax,
90 .extra1 = (void *)&one, 90 .extra1 = (void *)&one,
@@ -92,7 +92,7 @@ static struct ctl_table rxrpc_sysctl_table[] = {
92 { 92 {
93 .procname = "transport_expiry", 93 .procname = "transport_expiry",
94 .data = &rxrpc_transport_expiry, 94 .data = &rxrpc_transport_expiry,
95 .maxlen = sizeof(unsigned), 95 .maxlen = sizeof(unsigned int),
96 .mode = 0644, 96 .mode = 0644,
97 .proc_handler = proc_dointvec_minmax, 97 .proc_handler = proc_dointvec_minmax,
98 .extra1 = (void *)&one, 98 .extra1 = (void *)&one,
@@ -102,7 +102,7 @@ static struct ctl_table rxrpc_sysctl_table[] = {
102 { 102 {
103 .procname = "rx_window_size", 103 .procname = "rx_window_size",
104 .data = &rxrpc_rx_window_size, 104 .data = &rxrpc_rx_window_size,
105 .maxlen = sizeof(unsigned), 105 .maxlen = sizeof(unsigned int),
106 .mode = 0644, 106 .mode = 0644,
107 .proc_handler = proc_dointvec_minmax, 107 .proc_handler = proc_dointvec_minmax,
108 .extra1 = (void *)&one, 108 .extra1 = (void *)&one,
@@ -111,7 +111,7 @@ static struct ctl_table rxrpc_sysctl_table[] = {
111 { 111 {
112 .procname = "rx_mtu", 112 .procname = "rx_mtu",
113 .data = &rxrpc_rx_mtu, 113 .data = &rxrpc_rx_mtu,
114 .maxlen = sizeof(unsigned), 114 .maxlen = sizeof(unsigned int),
115 .mode = 0644, 115 .mode = 0644,
116 .proc_handler = proc_dointvec_minmax, 116 .proc_handler = proc_dointvec_minmax,
117 .extra1 = (void *)&one, 117 .extra1 = (void *)&one,
@@ -120,7 +120,7 @@ static struct ctl_table rxrpc_sysctl_table[] = {
120 { 120 {
121 .procname = "rx_jumbo_max", 121 .procname = "rx_jumbo_max",
122 .data = &rxrpc_rx_jumbo_max, 122 .data = &rxrpc_rx_jumbo_max,
123 .maxlen = sizeof(unsigned), 123 .maxlen = sizeof(unsigned int),
124 .mode = 0644, 124 .mode = 0644,
125 .proc_handler = proc_dointvec_minmax, 125 .proc_handler = proc_dointvec_minmax,
126 .extra1 = (void *)&one, 126 .extra1 = (void *)&one,