]> git.dujemihanovic.xyz Git - linux.git/commitdiff
net: sunrpc: Remove the now superfluous sentinel elements from ctl_table array
authorJoel Granados <j.granados@samsung.com>
Wed, 1 May 2024 09:29:28 +0000 (11:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 May 2024 12:29:42 +0000 (13:29 +0100)
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>
net/sunrpc/sysctl.c
net/sunrpc/xprtrdma/svc_rdma.c
net/sunrpc/xprtrdma/transport.c
net/sunrpc/xprtsock.c

index 93941ab12549f05c38f30d426e1699eb36b59128..5f3170a1c9bbe58b4b6f3f9f0b9c6a7da8ef2679 100644 (file)
@@ -160,7 +160,6 @@ static struct ctl_table debug_table[] = {
                .mode           = 0444,
                .proc_handler   = proc_do_xprt,
        },
-       { }
 };
 
 void
index f86970733eb0a12574a2ae2bf65c12d93d0827a0..474f7a98fe9eea60808bccd478b41cd52d4b26cf 100644 (file)
@@ -209,7 +209,6 @@ static struct ctl_table svcrdma_parm_table[] = {
                .extra1         = &zero,
                .extra2         = &zero,
        },
-       { },
 };
 
 static void svc_rdma_proc_cleanup(void)
index 29b0562d62e759e11ec8ede44c2a1e715d6d5509..9a8ce5df83cad99916593f26b76dd3a01f0667b8 100644 (file)
@@ -137,7 +137,6 @@ static struct ctl_table xr_tunables_table[] = {
                .mode           = 0644,
                .proc_handler   = proc_dointvec,
        },
-       { },
 };
 
 #endif
index ce18716491c8fed0cbe234f2044e3539c3bac6a3..dfc353eea8eda3849f303166e9f79a58d727230f 100644 (file)
@@ -160,7 +160,6 @@ static struct ctl_table xs_tunables_table[] = {
                .mode           = 0644,
                .proc_handler   = proc_dointvec_jiffies,
        },
-       { },
 };
 
 /*