net: rds: Remove the now superfluous sentinel elements from ctl_table array
authorJoel Granados <j.granados@samsung.com>
Wed, 1 May 2024 09:29:27 +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>
Acked-by: Allison Henderson <allison.henderson@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/ib_sysctl.c
net/rds/sysctl.c
net/rds/tcp.c

index e4e41b3afce7134119dfebd1b22bf8464492a663..2af678e71e3c6431048c5be6d1ae67b9653ace9f 100644 (file)
@@ -103,7 +103,6 @@ static struct ctl_table rds_ib_sysctl_table[] = {
                .mode           = 0644,
                .proc_handler   = proc_dointvec,
        },
-       { }
 };
 
 void rds_ib_sysctl_exit(void)
index e381bbcd9cc1c37d93eb19647b2a2262d8d2bae9..025f518a434958a8371517b076a3d90f6c0dd568 100644 (file)
@@ -89,7 +89,6 @@ static struct ctl_table rds_sysctl_rds_table[] = {
                .mode           = 0644,
                .proc_handler   = proc_dointvec,
        },
-       { }
 };
 
 void rds_sysctl_exit(void)
index 2dba7505b41489d10d5a48ccb97e619eae1ff6d1..d8111ac83bb6a510d9986879d890cc7851cb3d96 100644 (file)
@@ -86,7 +86,6 @@ static struct ctl_table rds_tcp_sysctl_table[] = {
                .proc_handler   = rds_tcp_skbuf_handler,
                .extra1         = &rds_tcp_min_rcvbuf,
        },
-       { }
 };
 
 u32 rds_tcp_write_seq(struct rds_tcp_connection *tc)