Skip to content

Commit ca5d1fc

Browse files
Joelgranadosdavem330
authored andcommitted
net: sunrpc: Remove the now superfluous sentinel elements from ctl_table array
This commit comes at the tail end of a greater effort to remove the empty elements at the end of the ctl_table arrays (sentinels) which will reduce the overall build time size of the kernel and run time memory bloat by ~64 bytes per sentinel (further information Link : https://lore.kernel.org/all/ZO5Yx5JFogGi%2FcBo@bombadil.infradead.org/) * Remove sentinel element from ctl_table structs. Signed-off-by: Joel Granados <j.granados@samsung.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 92bedf0 commit ca5d1fc

4 files changed

Lines changed: 0 additions & 4 deletions

File tree

net/sunrpc/sysctl.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ static struct ctl_table debug_table[] = {
160160
.mode = 0444,
161161
.proc_handler = proc_do_xprt,
162162
},
163-
{ }
164163
};
165164

166165
void

net/sunrpc/xprtrdma/svc_rdma.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ static struct ctl_table svcrdma_parm_table[] = {
209209
.extra1 = &zero,
210210
.extra2 = &zero,
211211
},
212-
{ },
213212
};
214213

215214
static void svc_rdma_proc_cleanup(void)

net/sunrpc/xprtrdma/transport.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ static struct ctl_table xr_tunables_table[] = {
137137
.mode = 0644,
138138
.proc_handler = proc_dointvec,
139139
},
140-
{ },
141140
};
142141

143142
#endif

net/sunrpc/xprtsock.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ static struct ctl_table xs_tunables_table[] = {
160160
.mode = 0644,
161161
.proc_handler = proc_dointvec_jiffies,
162162
},
163-
{ },
164163
};
165164

166165
/*

0 commit comments

Comments
 (0)