infiniband: Remove the now superfluous sentinel element from ctl_table array
authorJoel Granados <j.granados@samsung.com>
Mon, 2 Oct 2023 08:55:25 +0000 (10:55 +0200)
committerLuis Chamberlain <mcgrof@kernel.org>
Wed, 11 Oct 2023 19:16:13 +0000 (12:16 -0700)
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 from iwcm_ctl_table and ucma_ctl_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
drivers/infiniband/core/iwcm.c
drivers/infiniband/core/ucma.c

index 2b47073c61a65e538c9b3f6e59fdcebddad2927b..0301fcad4b48bebe3378adc9e6dbd6184f4ce07f 100644 (file)
@@ -111,7 +111,6 @@ static struct ctl_table iwcm_ctl_table[] = {
                .mode           = 0644,
                .proc_handler   = proc_dointvec,
        },
-       { }
 };
 
 /*
index bf42650f125b11e565f465f1323614c84ac6bfa4..5f5ad8faf86e555995c934eddb373e2c475204bc 100644 (file)
@@ -71,7 +71,6 @@ static struct ctl_table ucma_ctl_table[] = {
                .mode           = 0644,
                .proc_handler   = proc_dointvec,
        },
-       { }
 };
 
 struct ucma_file {