mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
194f4a6df2
commit
fe2c6338fd
32 changed files with 86 additions and 85 deletions
|
|
@ -61,7 +61,7 @@ static unsigned long rds_ib_sysctl_max_unsig_wr_max = 64;
|
|||
*/
|
||||
unsigned int rds_ib_sysctl_flow_control = 0;
|
||||
|
||||
static ctl_table rds_ib_sysctl_table[] = {
|
||||
static struct ctl_table rds_ib_sysctl_table[] = {
|
||||
{
|
||||
.procname = "max_send_wr",
|
||||
.data = &rds_ib_sysctl_max_send_wr,
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ static unsigned long rds_iw_sysctl_max_unsig_bytes_max = ~0UL;
|
|||
|
||||
unsigned int rds_iw_sysctl_flow_control = 1;
|
||||
|
||||
static ctl_table rds_iw_sysctl_table[] = {
|
||||
static struct ctl_table rds_iw_sysctl_table[] = {
|
||||
{
|
||||
.procname = "max_send_wr",
|
||||
.data = &rds_iw_sysctl_max_send_wr,
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ unsigned int rds_sysctl_max_unacked_bytes = (16 << 20);
|
|||
|
||||
unsigned int rds_sysctl_ping_enable = 1;
|
||||
|
||||
static ctl_table rds_sysctl_rds_table[] = {
|
||||
static struct ctl_table rds_sysctl_rds_table[] = {
|
||||
{
|
||||
.procname = "reconnect_min_delay_ms",
|
||||
.data = &rds_sysctl_reconnect_min_jiffies,
|
||||
|
|
|
|||
Loading…
Reference in a new issue