diff options
author | Joe Perches <joe@perches.com> | 2013-06-12 02:04:25 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-13 05:36:09 -0400 |
commit | fe2c6338fd2c6f383c4d4164262f35c8f3708e1f (patch) | |
tree | 491431ce95f0bda453b054748e3552fa6450c21c /net/rds | |
parent | 194f4a6df2a92c3d0bc65a85facfbc2433b25d06 (diff) |
net: Convert uses of typedef ctl_table to struct ctl_table
Reduce the uses of this unnecessary typedef.
Done via perl script:
$ git grep --name-only -w ctl_table net | \
xargs perl -p -i -e '\
sub trim { my ($local) = @_; $local =~ s/(^\s+|\s+$)//g; return $local; } \
s/\b(?<!struct\s)ctl_table\b(\s*\*\s*|\s+\w+)/"struct ctl_table " . trim($1)/ge'
Reflow the modified lines that now exceed 80 columns.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds')
-rw-r--r-- | net/rds/ib_sysctl.c | 2 | ||||
-rw-r--r-- | net/rds/iw_sysctl.c | 2 | ||||
-rw-r--r-- | net/rds/sysctl.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/net/rds/ib_sysctl.c b/net/rds/ib_sysctl.c index 7e643bafb4af..e4e41b3afce7 100644 --- a/net/rds/ib_sysctl.c +++ b/net/rds/ib_sysctl.c | |||
@@ -61,7 +61,7 @@ static unsigned long rds_ib_sysctl_max_unsig_wr_max = 64; | |||
61 | */ | 61 | */ |
62 | unsigned int rds_ib_sysctl_flow_control = 0; | 62 | unsigned int rds_ib_sysctl_flow_control = 0; |
63 | 63 | ||
64 | static ctl_table rds_ib_sysctl_table[] = { | 64 | static struct ctl_table rds_ib_sysctl_table[] = { |
65 | { | 65 | { |
66 | .procname = "max_send_wr", | 66 | .procname = "max_send_wr", |
67 | .data = &rds_ib_sysctl_max_send_wr, | 67 | .data = &rds_ib_sysctl_max_send_wr, |
diff --git a/net/rds/iw_sysctl.c b/net/rds/iw_sysctl.c index 5d5ebd576f3f..89c91515ed0c 100644 --- a/net/rds/iw_sysctl.c +++ b/net/rds/iw_sysctl.c | |||
@@ -55,7 +55,7 @@ static unsigned long rds_iw_sysctl_max_unsig_bytes_max = ~0UL; | |||
55 | 55 | ||
56 | unsigned int rds_iw_sysctl_flow_control = 1; | 56 | unsigned int rds_iw_sysctl_flow_control = 1; |
57 | 57 | ||
58 | static ctl_table rds_iw_sysctl_table[] = { | 58 | static struct ctl_table rds_iw_sysctl_table[] = { |
59 | { | 59 | { |
60 | .procname = "max_send_wr", | 60 | .procname = "max_send_wr", |
61 | .data = &rds_iw_sysctl_max_send_wr, | 61 | .data = &rds_iw_sysctl_max_send_wr, |
diff --git a/net/rds/sysctl.c b/net/rds/sysctl.c index 907214b4c4d0..b5cb2aa08f33 100644 --- a/net/rds/sysctl.c +++ b/net/rds/sysctl.c | |||
@@ -49,7 +49,7 @@ unsigned int rds_sysctl_max_unacked_bytes = (16 << 20); | |||
49 | 49 | ||
50 | unsigned int rds_sysctl_ping_enable = 1; | 50 | unsigned int rds_sysctl_ping_enable = 1; |
51 | 51 | ||
52 | static ctl_table rds_sysctl_rds_table[] = { | 52 | static struct ctl_table rds_sysctl_rds_table[] = { |
53 | { | 53 | { |
54 | .procname = "reconnect_min_delay_ms", | 54 | .procname = "reconnect_min_delay_ms", |
55 | .data = &rds_sysctl_reconnect_min_jiffies, | 55 | .data = &rds_sysctl_reconnect_min_jiffies, |