All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 00/15] sysctl: Remove sentinel elements from drivers
@ 2023-10-02  8:55 ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-kernel, xen-devel, linux-serial, linux-scsi,
	linuxppc-dev, linux-rdma, openipmi-developer, netdev, linux-raid,
	linux-hyperv, intel-gfx, dri-devel

From: Joel Granados <j.granados@samsung.com>

What?
These commits remove the sentinel element (last empty element) from the
sysctl arrays of all the files under the "drivers/" directory that use a
sysctl array for registration. The merging of the preparation patches
(in https://lore.kernel.org/all/ZO5Yx5JFogGi%2FcBo@bombadil.infradead.org/)
to mainline allows us to just remove sentinel elements without changing
behavior (more info here [1]).

These commits are part of a bigger set (here
https://github.com/Joelgranados/linux/tree/tag/sysctl_remove_empty_elem_V4)
that remove the ctl_table sentinel. Make the review process easier by
chunking the commits into manageable pieces. Each chunk can be reviewed
separately without noise from parallel sets.

Now that the architecture chunk has been mostly reviewed [6], we send
the "drivers/" directory. Once this one is done, it will be follwed by
"fs/*", "kernel/*", "net/*" and miscellaneous. The final set will remove
the unneeded check for ->procname == NULL.

Why?
By removing the sysctl sentinel elements we avoid kernel bloat as
ctl_table arrays get moved out of kernel/sysctl.c into their own
respective subsystems. This move was started long ago to avoid merge
conflicts; the sentinel removal bit came after Mathew Wilcox suggested
it to avoid bloating the kernel by one element as arrays moved out. This
patchset will reduce the overall build time size of the kernel and run
time memory bloat by about ~64 bytes per declared ctl_table array. I
have consolidated some links that shed light on the history of this
effort [2].

Testing:
* Ran sysctl selftests (./tools/testing/selftests/sysctl/sysctl.sh)
* Ran this through 0-day with no errors or warnings

Size saving after removing all sentinels:
  These are the bytes that we save after removing all the sentinels
  (this plus all the other chunks). I included them to get an idea of
  how much memory we are talking about.
    * bloat-o-meter:
        - The "yesall" configuration results save 9158 bytes
          https://lore.kernel.org/all/20230621091000.424843-1-j.granados@samsung.com/
        - The "tiny" config + CONFIG_SYSCTL save 1215 bytes
          https://lore.kernel.org/all/20230809105006.1198165-1-j.granados@samsung.com/
    * memory usage:
        In memory savings are measured to be 7296 bytes. (here is how to
        measure [3])

Size saving after this patchset:
    * bloat-o-meter
        - The "yesall" config saves 2432 bytes [4]
        - The "tiny" config saves 64 bytes [5]
    * memory usage:
        In this case there were no bytes saved because I do not have any
        of the drivers in the patch. To measure it comment the printk in
        `new_dir` and uncomment the if conditional in `new_links` [3].

---
Changes in v2:
- Left the dangling comma in the ctl_table arrays.
- Link to v1: https://lore.kernel.org/r/20230928-jag-sysctl_remove_empty_elem_drivers-v1-0-e59120fca9f9@samsung.com

Comments/feedback greatly appreciated

Best

Joel

[1]
We are able to remove a sentinel table without behavioral change by
introducing a table_size argument in the same place where procname is
checked for NULL. The idea is for it to keep stopping when it hits
->procname == NULL, while the sentinel is still present. And when the
sentinel is removed, it will stop on the table_size. You can go to 
(https://lore.kernel.org/all/20230809105006.1198165-1-j.granados@samsung.com/)
for more information.

[2]
Links Related to the ctl_table sentinel removal:
* Good summary from Luis sent with the "pull request" for the
  preparation patches.
  https://lore.kernel.org/all/ZO5Yx5JFogGi%2FcBo@bombadil.infradead.org/
* Another very good summary from Luis.
  https://lore.kernel.org/all/ZMFizKFkVxUFtSqa@bombadil.infradead.org/
* This is a patch set that replaces register_sysctl_table with register_sysctl
  https://lore.kernel.org/all/20230302204612.782387-1-mcgrof@kernel.org/
* Patch set to deprecate register_sysctl_paths()
  https://lore.kernel.org/all/20230302202826.776286-1-mcgrof@kernel.org/
* Here there is an explicit expectation for the removal of the sentinel element.
  https://lore.kernel.org/all/20230321130908.6972-1-frank.li@vivo.com
* The "ARRAY_SIZE" approach was mentioned (proposed?) in this thread
  https://lore.kernel.org/all/20220220060626.15885-1-tangmeng@uniontech.com

[3]
To measure the in memory savings apply this on top of this patchset.

"
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c
index c88854df0b62..e0073a627bac 100644
--- a/fs/proc/proc_sysctl.c
+++ b/fs/proc/proc_sysctl.c
@@ -976,6 +976,8 @@ static struct ctl_dir *new_dir(struct ctl_table_set *set,
        table[0].procname = new_name;
        table[0].mode = S_IFDIR|S_IRUGO|S_IXUGO;
        init_header(&new->header, set->dir.header.root, set, node, table, 1);
+       // Counts additional sentinel used for each new dir.
+       printk("%ld sysctl saved mem kzalloc \n", sizeof(struct ctl_table));

        return new;
 }
@@ -1199,6 +1201,9 @@ static struct ctl_table_header *new_links(struct ctl_dir *dir, struct ctl_table_
                link_name += len;
                link++;
        }
+       // Counts additional sentinel used for each new registration
+       //if ((head->ctl_table + head->ctl_table_size)->procname)
+               printk("%ld sysctl saved mem kzalloc \n", sizeof(struct ctl_table));
        init_header(links, dir->header.root, dir->header.set, node, link_table,
                    head->ctl_table_size);
        links->nreg = nr_entries;
"
and then run the following bash script in the kernel:

accum=0
for n in $(dmesg | grep kzalloc | awk '{print $3}') ; do
    echo $n
    accum=$(calc "$accum + $n")
done
echo $accum

[4]
add/remove: 0/0 grow/shrink: 0/21 up/down: 0/-2432 (-2432)
Function                                     old     new   delta
xpc_sys_xpc_hb                               192     128     -64
xpc_sys_xpc                                  128      64     -64
vrf_table                                    128      64     -64
ucma_ctl_table                               128      64     -64
tty_table                                    192     128     -64
sg_sysctls                                   128      64     -64
scsi_table                                   128      64     -64
random_table                                 448     384     -64
raid_table                                   192     128     -64
oa_table                                     192     128     -64
mac_hid_files                                256     192     -64
iwcm_ctl_table                               128      64     -64
ipmi_table                                   128      64     -64
hv_ctl_table                                 128      64     -64
hpet_table                                   128      64     -64
firmware_config_table                        192     128     -64
cdrom_table                                  448     384     -64
balloon_table                                128      64     -64
parport_sysctl_template                      912     720    -192
parport_default_sysctl_table                 584     136    -448
parport_device_sysctl_template               776     136    -640
Total: Before=429940038, After=429937606, chg -0.00%

[5]
add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-64 (-64)
Function                                     old     new   delta
random_table                                 448     384     -64
Total: Before=1885527, After=1885463, chg -0.00%

[6] https://lore.kernel.org/all/20230913-jag-sysctl_remove_empty_elem_arch-v2-0-d1bd13a29bae@samsung.com/

Signed-off-by: Joel Granados <j.granados@samsung.com>

To: Luis Chamberlain <mcgrof@kernel.org>
To: willy@infradead.org
To: josh@joshtriplett.org
To: Kees Cook <keescook@chromium.org>
To: Phillip Potter <phil@philpotter.co.uk>
To: Clemens Ladisch <clemens@ladisch.de>
To: Arnd Bergmann <arnd@arndb.de>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Juergen Gross <jgross@suse.com>
To: Stefano Stabellini <sstabellini@kernel.org>
To: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
To: Jiri Slaby <jirislaby@kernel.org>
To: "James E.J. Bottomley" <jejb@linux.ibm.com>
To: "Martin K. Petersen" <martin.petersen@oracle.com>
To: Doug Gilbert <dgilbert@interlog.com>
To: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
To: Jason Gunthorpe <jgg@ziepe.ca>
To: Leon Romanovsky <leon@kernel.org>
To: Corey Minyard <minyard@acm.org>
To: Theodore Ts'o <tytso@mit.edu>
To: "Jason A. Donenfeld" <Jason@zx2c4.com>
To: David Ahern <dsahern@kernel.org>
To: "David S. Miller" <davem@davemloft.net>
To: Eric Dumazet <edumazet@google.com>
To: Jakub Kicinski <kuba@kernel.org>
To: Paolo Abeni <pabeni@redhat.com>
To: Robin Holt <robinmholt@gmail.com>
To: Steve Wahl <steve.wahl@hpe.com>
To: Russ Weight <russell.h.weight@intel.com>
To: "Rafael J. Wysocki" <rafael@kernel.org>
To: Song Liu <song@kernel.org>
To: "K. Y. Srinivasan" <kys@microsoft.com>
To: Haiyang Zhang <haiyangz@microsoft.com>
To: Wei Liu <wei.liu@kernel.org>
To: Dexuan Cui <decui@microsoft.com>
To: Jani Nikula <jani.nikula@linux.intel.com>
To: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
To: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: David Airlie <airlied@gmail.com>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: linux-kernel@vger.kernel.org
Cc: xen-devel@lists.xenproject.org
Cc: linux-serial@vger.kernel.org
Cc: linux-scsi@vger.kernel.org
Cc: linuxppc-dev@lists.ozlabs.org
Cc: linux-rdma@vger.kernel.org
Cc: openipmi-developer@lists.sourceforge.net
Cc: netdev@vger.kernel.org
Cc: linux-raid@vger.kernel.org
Cc: linux-hyperv@vger.kernel.org
Cc: intel-gfx@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org

---

---
Joel Granados (15):
      cdrom: Remove now superfluous sentinel element from ctl_table array
      hpet: Remove now superfluous sentinel element from ctl_table array
      xen: Remove now superfluous sentinel element from ctl_table array
      tty: Remove now superfluous sentinel element from ctl_table array
      scsi: Remove now superfluous sentinel element from ctl_table array
      parport: Remove the now superfluous sentinel element from ctl_table array
      macintosh: Remove the now superfluous sentinel element from ctl_table array
      infiniband: Remove the now superfluous sentinel element from ctl_table array
      char-misc: Remove the now superfluous sentinel element from ctl_table array
      vrf: Remove the now superfluous sentinel element from ctl_table array
      sgi-xp: Remove the now superfluous sentinel element from ctl_table array
      fw loader: Remove the now superfluous sentinel element from ctl_table array
      raid: Remove now superfluous sentinel element from ctl_table array
      Drivers: hv: Remove now superfluous sentinel element from ctl_table array
      intel drm: Remove now superfluous sentinel element from ctl_table array

 drivers/base/firmware_loader/fallback_table.c |  1 -
 drivers/cdrom/cdrom.c                         |  1 -
 drivers/char/hpet.c                           |  1 -
 drivers/char/ipmi/ipmi_poweroff.c             |  1 -
 drivers/char/random.c                         |  1 -
 drivers/gpu/drm/i915/i915_perf.c              |  1 -
 drivers/hv/hv_common.c                        |  1 -
 drivers/infiniband/core/iwcm.c                |  1 -
 drivers/infiniband/core/ucma.c                |  1 -
 drivers/macintosh/mac_hid.c                   |  1 -
 drivers/md/md.c                               |  1 -
 drivers/misc/sgi-xp/xpc_main.c                |  2 --
 drivers/net/vrf.c                             |  1 -
 drivers/parport/procfs.c                      | 28 +++++++++++----------------
 drivers/scsi/scsi_sysctl.c                    |  1 -
 drivers/scsi/sg.c                             |  1 -
 drivers/tty/tty_io.c                          |  1 -
 drivers/xen/balloon.c                         |  1 -
 18 files changed, 11 insertions(+), 35 deletions(-)
---
base-commit: 0e945134b680040b8613e962f586d91b6d40292d
change-id: 20230927-jag-sysctl_remove_empty_elem_drivers-f034962a0d8c

Best regards,
-- 
Joel Granados <j.granados@samsung.com>


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 00/15] sysctl: Remove sentinel elements from drivers
@ 2023-10-02  8:55 ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-hyperv, linux-scsi, linux-rdma, netdev,
	intel-gfx, linux-kernel, dri-devel, linux-raid, linux-serial,
	xen-devel, openipmi-developer, linuxppc-dev

From: Joel Granados <j.granados@samsung.com>

What?
These commits remove the sentinel element (last empty element) from the
sysctl arrays of all the files under the "drivers/" directory that use a
sysctl array for registration. The merging of the preparation patches
(in https://lore.kernel.org/all/ZO5Yx5JFogGi%2FcBo@bombadil.infradead.org/)
to mainline allows us to just remove sentinel elements without changing
behavior (more info here [1]).

These commits are part of a bigger set (here
https://github.com/Joelgranados/linux/tree/tag/sysctl_remove_empty_elem_V4)
that remove the ctl_table sentinel. Make the review process easier by
chunking the commits into manageable pieces. Each chunk can be reviewed
separately without noise from parallel sets.

Now that the architecture chunk has been mostly reviewed [6], we send
the "drivers/" directory. Once this one is done, it will be follwed by
"fs/*", "kernel/*", "net/*" and miscellaneous. The final set will remove
the unneeded check for ->procname == NULL.

Why?
By removing the sysctl sentinel elements we avoid kernel bloat as
ctl_table arrays get moved out of kernel/sysctl.c into their own
respective subsystems. This move was started long ago to avoid merge
conflicts; the sentinel removal bit came after Mathew Wilcox suggested
it to avoid bloating the kernel by one element as arrays moved out. This
patchset will reduce the overall build time size of the kernel and run
time memory bloat by about ~64 bytes per declared ctl_table array. I
have consolidated some links that shed light on the history of this
effort [2].

Testing:
* Ran sysctl selftests (./tools/testing/selftests/sysctl/sysctl.sh)
* Ran this through 0-day with no errors or warnings

Size saving after removing all sentinels:
  These are the bytes that we save after removing all the sentinels
  (this plus all the other chunks). I included them to get an idea of
  how much memory we are talking about.
    * bloat-o-meter:
        - The "yesall" configuration results save 9158 bytes
          https://lore.kernel.org/all/20230621091000.424843-1-j.granados@samsung.com/
        - The "tiny" config + CONFIG_SYSCTL save 1215 bytes
          https://lore.kernel.org/all/20230809105006.1198165-1-j.granados@samsung.com/
    * memory usage:
        In memory savings are measured to be 7296 bytes. (here is how to
        measure [3])

Size saving after this patchset:
    * bloat-o-meter
        - The "yesall" config saves 2432 bytes [4]
        - The "tiny" config saves 64 bytes [5]
    * memory usage:
        In this case there were no bytes saved because I do not have any
        of the drivers in the patch. To measure it comment the printk in
        `new_dir` and uncomment the if conditional in `new_links` [3].

---
Changes in v2:
- Left the dangling comma in the ctl_table arrays.
- Link to v1: https://lore.kernel.org/r/20230928-jag-sysctl_remove_empty_elem_drivers-v1-0-e59120fca9f9@samsung.com

Comments/feedback greatly appreciated

Best

Joel

[1]
We are able to remove a sentinel table without behavioral change by
introducing a table_size argument in the same place where procname is
checked for NULL. The idea is for it to keep stopping when it hits
->procname == NULL, while the sentinel is still present. And when the
sentinel is removed, it will stop on the table_size. You can go to 
(https://lore.kernel.org/all/20230809105006.1198165-1-j.granados@samsung.com/)
for more information.

[2]
Links Related to the ctl_table sentinel removal:
* Good summary from Luis sent with the "pull request" for the
  preparation patches.
  https://lore.kernel.org/all/ZO5Yx5JFogGi%2FcBo@bombadil.infradead.org/
* Another very good summary from Luis.
  https://lore.kernel.org/all/ZMFizKFkVxUFtSqa@bombadil.infradead.org/
* This is a patch set that replaces register_sysctl_table with register_sysctl
  https://lore.kernel.org/all/20230302204612.782387-1-mcgrof@kernel.org/
* Patch set to deprecate register_sysctl_paths()
  https://lore.kernel.org/all/20230302202826.776286-1-mcgrof@kernel.org/
* Here there is an explicit expectation for the removal of the sentinel element.
  https://lore.kernel.org/all/20230321130908.6972-1-frank.li@vivo.com
* The "ARRAY_SIZE" approach was mentioned (proposed?) in this thread
  https://lore.kernel.org/all/20220220060626.15885-1-tangmeng@uniontech.com

[3]
To measure the in memory savings apply this on top of this patchset.

"
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c
index c88854df0b62..e0073a627bac 100644
--- a/fs/proc/proc_sysctl.c
+++ b/fs/proc/proc_sysctl.c
@@ -976,6 +976,8 @@ static struct ctl_dir *new_dir(struct ctl_table_set *set,
        table[0].procname = new_name;
        table[0].mode = S_IFDIR|S_IRUGO|S_IXUGO;
        init_header(&new->header, set->dir.header.root, set, node, table, 1);
+       // Counts additional sentinel used for each new dir.
+       printk("%ld sysctl saved mem kzalloc \n", sizeof(struct ctl_table));

        return new;
 }
@@ -1199,6 +1201,9 @@ static struct ctl_table_header *new_links(struct ctl_dir *dir, struct ctl_table_
                link_name += len;
                link++;
        }
+       // Counts additional sentinel used for each new registration
+       //if ((head->ctl_table + head->ctl_table_size)->procname)
+               printk("%ld sysctl saved mem kzalloc \n", sizeof(struct ctl_table));
        init_header(links, dir->header.root, dir->header.set, node, link_table,
                    head->ctl_table_size);
        links->nreg = nr_entries;
"
and then run the following bash script in the kernel:

accum=0
for n in $(dmesg | grep kzalloc | awk '{print $3}') ; do
    echo $n
    accum=$(calc "$accum + $n")
done
echo $accum

[4]
add/remove: 0/0 grow/shrink: 0/21 up/down: 0/-2432 (-2432)
Function                                     old     new   delta
xpc_sys_xpc_hb                               192     128     -64
xpc_sys_xpc                                  128      64     -64
vrf_table                                    128      64     -64
ucma_ctl_table                               128      64     -64
tty_table                                    192     128     -64
sg_sysctls                                   128      64     -64
scsi_table                                   128      64     -64
random_table                                 448     384     -64
raid_table                                   192     128     -64
oa_table                                     192     128     -64
mac_hid_files                                256     192     -64
iwcm_ctl_table                               128      64     -64
ipmi_table                                   128      64     -64
hv_ctl_table                                 128      64     -64
hpet_table                                   128      64     -64
firmware_config_table                        192     128     -64
cdrom_table                                  448     384     -64
balloon_table                                128      64     -64
parport_sysctl_template                      912     720    -192
parport_default_sysctl_table                 584     136    -448
parport_device_sysctl_template               776     136    -640
Total: Before=429940038, After=429937606, chg -0.00%

[5]
add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-64 (-64)
Function                                     old     new   delta
random_table                                 448     384     -64
Total: Before=1885527, After=1885463, chg -0.00%

[6] https://lore.kernel.org/all/20230913-jag-sysctl_remove_empty_elem_arch-v2-0-d1bd13a29bae@samsung.com/

Signed-off-by: Joel Granados <j.granados@samsung.com>

To: Luis Chamberlain <mcgrof@kernel.org>
To: willy@infradead.org
To: josh@joshtriplett.org
To: Kees Cook <keescook@chromium.org>
To: Phillip Potter <phil@philpotter.co.uk>
To: Clemens Ladisch <clemens@ladisch.de>
To: Arnd Bergmann <arnd@arndb.de>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Juergen Gross <jgross@suse.com>
To: Stefano Stabellini <sstabellini@kernel.org>
To: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
To: Jiri Slaby <jirislaby@kernel.org>
To: "James E.J. Bottomley" <jejb@linux.ibm.com>
To: "Martin K. Petersen" <martin.petersen@oracle.com>
To: Doug Gilbert <dgilbert@interlog.com>
To: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
To: Jason Gunthorpe <jgg@ziepe.ca>
To: Leon Romanovsky <leon@kernel.org>
To: Corey Minyard <minyard@acm.org>
To: Theodore Ts'o <tytso@mit.edu>
To: "Jason A. Donenfeld" <Jason@zx2c4.com>
To: David Ahern <dsahern@kernel.org>
To: "David S. Miller" <davem@davemloft.net>
To: Eric Dumazet <edumazet@google.com>
To: Jakub Kicinski <kuba@kernel.org>
To: Paolo Abeni <pabeni@redhat.com>
To: Robin Holt <robinmholt@gmail.com>
To: Steve Wahl <steve.wahl@hpe.com>
To: Russ Weight <russell.h.weight@intel.com>
To: "Rafael J. Wysocki" <rafael@kernel.org>
To: Song Liu <song@kernel.org>
To: "K. Y. Srinivasan" <kys@microsoft.com>
To: Haiyang Zhang <haiyangz@microsoft.com>
To: Wei Liu <wei.liu@kernel.org>
To: Dexuan Cui <decui@microsoft.com>
To: Jani Nikula <jani.nikula@linux.intel.com>
To: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
To: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: David Airlie <airlied@gmail.com>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: linux-kernel@vger.kernel.org
Cc: xen-devel@lists.xenproject.org
Cc: linux-serial@vger.kernel.org
Cc: linux-scsi@vger.kernel.org
Cc: linuxppc-dev@lists.ozlabs.org
Cc: linux-rdma@vger.kernel.org
Cc: openipmi-developer@lists.sourceforge.net
Cc: netdev@vger.kernel.org
Cc: linux-raid@vger.kernel.org
Cc: linux-hyperv@vger.kernel.org
Cc: intel-gfx@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org

---

---
Joel Granados (15):
      cdrom: Remove now superfluous sentinel element from ctl_table array
      hpet: Remove now superfluous sentinel element from ctl_table array
      xen: Remove now superfluous sentinel element from ctl_table array
      tty: Remove now superfluous sentinel element from ctl_table array
      scsi: Remove now superfluous sentinel element from ctl_table array
      parport: Remove the now superfluous sentinel element from ctl_table array
      macintosh: Remove the now superfluous sentinel element from ctl_table array
      infiniband: Remove the now superfluous sentinel element from ctl_table array
      char-misc: Remove the now superfluous sentinel element from ctl_table array
      vrf: Remove the now superfluous sentinel element from ctl_table array
      sgi-xp: Remove the now superfluous sentinel element from ctl_table array
      fw loader: Remove the now superfluous sentinel element from ctl_table array
      raid: Remove now superfluous sentinel element from ctl_table array
      Drivers: hv: Remove now superfluous sentinel element from ctl_table array
      intel drm: Remove now superfluous sentinel element from ctl_table array

 drivers/base/firmware_loader/fallback_table.c |  1 -
 drivers/cdrom/cdrom.c                         |  1 -
 drivers/char/hpet.c                           |  1 -
 drivers/char/ipmi/ipmi_poweroff.c             |  1 -
 drivers/char/random.c                         |  1 -
 drivers/gpu/drm/i915/i915_perf.c              |  1 -
 drivers/hv/hv_common.c                        |  1 -
 drivers/infiniband/core/iwcm.c                |  1 -
 drivers/infiniband/core/ucma.c                |  1 -
 drivers/macintosh/mac_hid.c                   |  1 -
 drivers/md/md.c                               |  1 -
 drivers/misc/sgi-xp/xpc_main.c                |  2 --
 drivers/net/vrf.c                             |  1 -
 drivers/parport/procfs.c                      | 28 +++++++++++----------------
 drivers/scsi/scsi_sysctl.c                    |  1 -
 drivers/scsi/sg.c                             |  1 -
 drivers/tty/tty_io.c                          |  1 -
 drivers/xen/balloon.c                         |  1 -
 18 files changed, 11 insertions(+), 35 deletions(-)
---
base-commit: 0e945134b680040b8613e962f586d91b6d40292d
change-id: 20230927-jag-sysctl_remove_empty_elem_drivers-f034962a0d8c

Best regards,
-- 
Joel Granados <j.granados@samsung.com>


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [Intel-gfx] [PATCH v2 00/15] sysctl: Remove sentinel elements from drivers
@ 2023-10-02  8:55 ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-hyperv, linux-scsi, linux-rdma, netdev,
	intel-gfx, linux-kernel, dri-devel, linux-raid, linux-serial,
	xen-devel, openipmi-developer, linuxppc-dev

From: Joel Granados <j.granados@samsung.com>

What?
These commits remove the sentinel element (last empty element) from the
sysctl arrays of all the files under the "drivers/" directory that use a
sysctl array for registration. The merging of the preparation patches
(in https://lore.kernel.org/all/ZO5Yx5JFogGi%2FcBo@bombadil.infradead.org/)
to mainline allows us to just remove sentinel elements without changing
behavior (more info here [1]).

These commits are part of a bigger set (here
https://github.com/Joelgranados/linux/tree/tag/sysctl_remove_empty_elem_V4)
that remove the ctl_table sentinel. Make the review process easier by
chunking the commits into manageable pieces. Each chunk can be reviewed
separately without noise from parallel sets.

Now that the architecture chunk has been mostly reviewed [6], we send
the "drivers/" directory. Once this one is done, it will be follwed by
"fs/*", "kernel/*", "net/*" and miscellaneous. The final set will remove
the unneeded check for ->procname == NULL.

Why?
By removing the sysctl sentinel elements we avoid kernel bloat as
ctl_table arrays get moved out of kernel/sysctl.c into their own
respective subsystems. This move was started long ago to avoid merge
conflicts; the sentinel removal bit came after Mathew Wilcox suggested
it to avoid bloating the kernel by one element as arrays moved out. This
patchset will reduce the overall build time size of the kernel and run
time memory bloat by about ~64 bytes per declared ctl_table array. I
have consolidated some links that shed light on the history of this
effort [2].

Testing:
* Ran sysctl selftests (./tools/testing/selftests/sysctl/sysctl.sh)
* Ran this through 0-day with no errors or warnings

Size saving after removing all sentinels:
  These are the bytes that we save after removing all the sentinels
  (this plus all the other chunks). I included them to get an idea of
  how much memory we are talking about.
    * bloat-o-meter:
        - The "yesall" configuration results save 9158 bytes
          https://lore.kernel.org/all/20230621091000.424843-1-j.granados@samsung.com/
        - The "tiny" config + CONFIG_SYSCTL save 1215 bytes
          https://lore.kernel.org/all/20230809105006.1198165-1-j.granados@samsung.com/
    * memory usage:
        In memory savings are measured to be 7296 bytes. (here is how to
        measure [3])

Size saving after this patchset:
    * bloat-o-meter
        - The "yesall" config saves 2432 bytes [4]
        - The "tiny" config saves 64 bytes [5]
    * memory usage:
        In this case there were no bytes saved because I do not have any
        of the drivers in the patch. To measure it comment the printk in
        `new_dir` and uncomment the if conditional in `new_links` [3].

---
Changes in v2:
- Left the dangling comma in the ctl_table arrays.
- Link to v1: https://lore.kernel.org/r/20230928-jag-sysctl_remove_empty_elem_drivers-v1-0-e59120fca9f9@samsung.com

Comments/feedback greatly appreciated

Best

Joel

[1]
We are able to remove a sentinel table without behavioral change by
introducing a table_size argument in the same place where procname is
checked for NULL. The idea is for it to keep stopping when it hits
->procname == NULL, while the sentinel is still present. And when the
sentinel is removed, it will stop on the table_size. You can go to 
(https://lore.kernel.org/all/20230809105006.1198165-1-j.granados@samsung.com/)
for more information.

[2]
Links Related to the ctl_table sentinel removal:
* Good summary from Luis sent with the "pull request" for the
  preparation patches.
  https://lore.kernel.org/all/ZO5Yx5JFogGi%2FcBo@bombadil.infradead.org/
* Another very good summary from Luis.
  https://lore.kernel.org/all/ZMFizKFkVxUFtSqa@bombadil.infradead.org/
* This is a patch set that replaces register_sysctl_table with register_sysctl
  https://lore.kernel.org/all/20230302204612.782387-1-mcgrof@kernel.org/
* Patch set to deprecate register_sysctl_paths()
  https://lore.kernel.org/all/20230302202826.776286-1-mcgrof@kernel.org/
* Here there is an explicit expectation for the removal of the sentinel element.
  https://lore.kernel.org/all/20230321130908.6972-1-frank.li@vivo.com
* The "ARRAY_SIZE" approach was mentioned (proposed?) in this thread
  https://lore.kernel.org/all/20220220060626.15885-1-tangmeng@uniontech.com

[3]
To measure the in memory savings apply this on top of this patchset.

"
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c
index c88854df0b62..e0073a627bac 100644
--- a/fs/proc/proc_sysctl.c
+++ b/fs/proc/proc_sysctl.c
@@ -976,6 +976,8 @@ static struct ctl_dir *new_dir(struct ctl_table_set *set,
        table[0].procname = new_name;
        table[0].mode = S_IFDIR|S_IRUGO|S_IXUGO;
        init_header(&new->header, set->dir.header.root, set, node, table, 1);
+       // Counts additional sentinel used for each new dir.
+       printk("%ld sysctl saved mem kzalloc \n", sizeof(struct ctl_table));

        return new;
 }
@@ -1199,6 +1201,9 @@ static struct ctl_table_header *new_links(struct ctl_dir *dir, struct ctl_table_
                link_name += len;
                link++;
        }
+       // Counts additional sentinel used for each new registration
+       //if ((head->ctl_table + head->ctl_table_size)->procname)
+               printk("%ld sysctl saved mem kzalloc \n", sizeof(struct ctl_table));
        init_header(links, dir->header.root, dir->header.set, node, link_table,
                    head->ctl_table_size);
        links->nreg = nr_entries;
"
and then run the following bash script in the kernel:

accum=0
for n in $(dmesg | grep kzalloc | awk '{print $3}') ; do
    echo $n
    accum=$(calc "$accum + $n")
done
echo $accum

[4]
add/remove: 0/0 grow/shrink: 0/21 up/down: 0/-2432 (-2432)
Function                                     old     new   delta
xpc_sys_xpc_hb                               192     128     -64
xpc_sys_xpc                                  128      64     -64
vrf_table                                    128      64     -64
ucma_ctl_table                               128      64     -64
tty_table                                    192     128     -64
sg_sysctls                                   128      64     -64
scsi_table                                   128      64     -64
random_table                                 448     384     -64
raid_table                                   192     128     -64
oa_table                                     192     128     -64
mac_hid_files                                256     192     -64
iwcm_ctl_table                               128      64     -64
ipmi_table                                   128      64     -64
hv_ctl_table                                 128      64     -64
hpet_table                                   128      64     -64
firmware_config_table                        192     128     -64
cdrom_table                                  448     384     -64
balloon_table                                128      64     -64
parport_sysctl_template                      912     720    -192
parport_default_sysctl_table                 584     136    -448
parport_device_sysctl_template               776     136    -640
Total: Before=429940038, After=429937606, chg -0.00%

[5]
add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-64 (-64)
Function                                     old     new   delta
random_table                                 448     384     -64
Total: Before=1885527, After=1885463, chg -0.00%

[6] https://lore.kernel.org/all/20230913-jag-sysctl_remove_empty_elem_arch-v2-0-d1bd13a29bae@samsung.com/

Signed-off-by: Joel Granados <j.granados@samsung.com>

To: Luis Chamberlain <mcgrof@kernel.org>
To: willy@infradead.org
To: josh@joshtriplett.org
To: Kees Cook <keescook@chromium.org>
To: Phillip Potter <phil@philpotter.co.uk>
To: Clemens Ladisch <clemens@ladisch.de>
To: Arnd Bergmann <arnd@arndb.de>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Juergen Gross <jgross@suse.com>
To: Stefano Stabellini <sstabellini@kernel.org>
To: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
To: Jiri Slaby <jirislaby@kernel.org>
To: "James E.J. Bottomley" <jejb@linux.ibm.com>
To: "Martin K. Petersen" <martin.petersen@oracle.com>
To: Doug Gilbert <dgilbert@interlog.com>
To: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
To: Jason Gunthorpe <jgg@ziepe.ca>
To: Leon Romanovsky <leon@kernel.org>
To: Corey Minyard <minyard@acm.org>
To: Theodore Ts'o <tytso@mit.edu>
To: "Jason A. Donenfeld" <Jason@zx2c4.com>
To: David Ahern <dsahern@kernel.org>
To: "David S. Miller" <davem@davemloft.net>
To: Eric Dumazet <edumazet@google.com>
To: Jakub Kicinski <kuba@kernel.org>
To: Paolo Abeni <pabeni@redhat.com>
To: Robin Holt <robinmholt@gmail.com>
To: Steve Wahl <steve.wahl@hpe.com>
To: Russ Weight <russell.h.weight@intel.com>
To: "Rafael J. Wysocki" <rafael@kernel.org>
To: Song Liu <song@kernel.org>
To: "K. Y. Srinivasan" <kys@microsoft.com>
To: Haiyang Zhang <haiyangz@microsoft.com>
To: Wei Liu <wei.liu@kernel.org>
To: Dexuan Cui <decui@microsoft.com>
To: Jani Nikula <jani.nikula@linux.intel.com>
To: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
To: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: David Airlie <airlied@gmail.com>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: linux-kernel@vger.kernel.org
Cc: xen-devel@lists.xenproject.org
Cc: linux-serial@vger.kernel.org
Cc: linux-scsi@vger.kernel.org
Cc: linuxppc-dev@lists.ozlabs.org
Cc: linux-rdma@vger.kernel.org
Cc: openipmi-developer@lists.sourceforge.net
Cc: netdev@vger.kernel.org
Cc: linux-raid@vger.kernel.org
Cc: linux-hyperv@vger.kernel.org
Cc: intel-gfx@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org

---

---
Joel Granados (15):
      cdrom: Remove now superfluous sentinel element from ctl_table array
      hpet: Remove now superfluous sentinel element from ctl_table array
      xen: Remove now superfluous sentinel element from ctl_table array
      tty: Remove now superfluous sentinel element from ctl_table array
      scsi: Remove now superfluous sentinel element from ctl_table array
      parport: Remove the now superfluous sentinel element from ctl_table array
      macintosh: Remove the now superfluous sentinel element from ctl_table array
      infiniband: Remove the now superfluous sentinel element from ctl_table array
      char-misc: Remove the now superfluous sentinel element from ctl_table array
      vrf: Remove the now superfluous sentinel element from ctl_table array
      sgi-xp: Remove the now superfluous sentinel element from ctl_table array
      fw loader: Remove the now superfluous sentinel element from ctl_table array
      raid: Remove now superfluous sentinel element from ctl_table array
      Drivers: hv: Remove now superfluous sentinel element from ctl_table array
      intel drm: Remove now superfluous sentinel element from ctl_table array

 drivers/base/firmware_loader/fallback_table.c |  1 -
 drivers/cdrom/cdrom.c                         |  1 -
 drivers/char/hpet.c                           |  1 -
 drivers/char/ipmi/ipmi_poweroff.c             |  1 -
 drivers/char/random.c                         |  1 -
 drivers/gpu/drm/i915/i915_perf.c              |  1 -
 drivers/hv/hv_common.c                        |  1 -
 drivers/infiniband/core/iwcm.c                |  1 -
 drivers/infiniband/core/ucma.c                |  1 -
 drivers/macintosh/mac_hid.c                   |  1 -
 drivers/md/md.c                               |  1 -
 drivers/misc/sgi-xp/xpc_main.c                |  2 --
 drivers/net/vrf.c                             |  1 -
 drivers/parport/procfs.c                      | 28 +++++++++++----------------
 drivers/scsi/scsi_sysctl.c                    |  1 -
 drivers/scsi/sg.c                             |  1 -
 drivers/tty/tty_io.c                          |  1 -
 drivers/xen/balloon.c                         |  1 -
 18 files changed, 11 insertions(+), 35 deletions(-)
---
base-commit: 0e945134b680040b8613e962f586d91b6d40292d
change-id: 20230927-jag-sysctl_remove_empty_elem_drivers-f034962a0d8c

Best regards,
-- 
Joel Granados <j.granados@samsung.com>


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 00/15] sysctl: Remove sentinel elements from drivers
@ 2023-10-02  8:55 ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-kernel, xen-devel, linux-serial, linux-scsi,
	linuxppc-dev, linux-rdma, openipmi-developer, netdev, linux-raid,
	linux-hyperv, intel-gfx, dri-devel

What?
These commits remove the sentinel element (last empty element) from the
sysctl arrays of all the files under the "drivers/" directory that use a
sysctl array for registration. The merging of the preparation patches
(in https://lore.kernel.org/all/ZO5Yx5JFogGi%2FcBo@bombadil.infradead.org/)
to mainline allows us to just remove sentinel elements without changing
behavior (more info here [1]).

These commits are part of a bigger set (here
https://github.com/Joelgranados/linux/tree/tag/sysctl_remove_empty_elem_V4)
that remove the ctl_table sentinel. Make the review process easier by
chunking the commits into manageable pieces. Each chunk can be reviewed
separately without noise from parallel sets.

Now that the architecture chunk has been mostly reviewed [6], we send
the "drivers/" directory. Once this one is done, it will be follwed by
"fs/*", "kernel/*", "net/*" and miscellaneous. The final set will remove
the unneeded check for ->procname == NULL.

Why?
By removing the sysctl sentinel elements we avoid kernel bloat as
ctl_table arrays get moved out of kernel/sysctl.c into their own
respective subsystems. This move was started long ago to avoid merge
conflicts; the sentinel removal bit came after Mathew Wilcox suggested
it to avoid bloating the kernel by one element as arrays moved out. This
patchset will reduce the overall build time size of the kernel and run
time memory bloat by about ~64 bytes per declared ctl_table array. I
have consolidated some links that shed light on the history of this
effort [2].

Testing:
* Ran sysctl selftests (./tools/testing/selftests/sysctl/sysctl.sh)
* Ran this through 0-day with no errors or warnings

Size saving after removing all sentinels:
  These are the bytes that we save after removing all the sentinels
  (this plus all the other chunks). I included them to get an idea of
  how much memory we are talking about.
    * bloat-o-meter:
        - The "yesall" configuration results save 9158 bytes
          https://lore.kernel.org/all/20230621091000.424843-1-j.granados@samsung.com/
        - The "tiny" config + CONFIG_SYSCTL save 1215 bytes
          https://lore.kernel.org/all/20230809105006.1198165-1-j.granados@samsung.com/
    * memory usage:
        In memory savings are measured to be 7296 bytes. (here is how to
        measure [3])

Size saving after this patchset:
    * bloat-o-meter
        - The "yesall" config saves 2432 bytes [4]
        - The "tiny" config saves 64 bytes [5]
    * memory usage:
        In this case there were no bytes saved because I do not have any
        of the drivers in the patch. To measure it comment the printk in
        `new_dir` and uncomment the if conditional in `new_links` [3].

---
Changes in v2:
- Left the dangling comma in the ctl_table arrays.
- Link to v1: https://lore.kernel.org/r/20230928-jag-sysctl_remove_empty_elem_drivers-v1-0-e59120fca9f9@samsung.com

Comments/feedback greatly appreciated

Best

Joel

[1]
We are able to remove a sentinel table without behavioral change by
introducing a table_size argument in the same place where procname is
checked for NULL. The idea is for it to keep stopping when it hits
->procname == NULL, while the sentinel is still present. And when the
sentinel is removed, it will stop on the table_size. You can go to 
(https://lore.kernel.org/all/20230809105006.1198165-1-j.granados@samsung.com/)
for more information.

[2]
Links Related to the ctl_table sentinel removal:
* Good summary from Luis sent with the "pull request" for the
  preparation patches.
  https://lore.kernel.org/all/ZO5Yx5JFogGi%2FcBo@bombadil.infradead.org/
* Another very good summary from Luis.
  https://lore.kernel.org/all/ZMFizKFkVxUFtSqa@bombadil.infradead.org/
* This is a patch set that replaces register_sysctl_table with register_sysctl
  https://lore.kernel.org/all/20230302204612.782387-1-mcgrof@kernel.org/
* Patch set to deprecate register_sysctl_paths()
  https://lore.kernel.org/all/20230302202826.776286-1-mcgrof@kernel.org/
* Here there is an explicit expectation for the removal of the sentinel element.
  https://lore.kernel.org/all/20230321130908.6972-1-frank.li@vivo.com
* The "ARRAY_SIZE" approach was mentioned (proposed?) in this thread
  https://lore.kernel.org/all/20220220060626.15885-1-tangmeng@uniontech.com

[3]
To measure the in memory savings apply this on top of this patchset.

"
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c
index c88854df0b62..e0073a627bac 100644
--- a/fs/proc/proc_sysctl.c
+++ b/fs/proc/proc_sysctl.c
@@ -976,6 +976,8 @@ static struct ctl_dir *new_dir(struct ctl_table_set *set,
        table[0].procname = new_name;
        table[0].mode = S_IFDIR|S_IRUGO|S_IXUGO;
        init_header(&new->header, set->dir.header.root, set, node, table, 1);
+       // Counts additional sentinel used for each new dir.
+       printk("%ld sysctl saved mem kzalloc \n", sizeof(struct ctl_table));

        return new;
 }
@@ -1199,6 +1201,9 @@ static struct ctl_table_header *new_links(struct ctl_dir *dir, struct ctl_table_
                link_name += len;
                link++;
        }
+       // Counts additional sentinel used for each new registration
+       //if ((head->ctl_table + head->ctl_table_size)->procname)
+               printk("%ld sysctl saved mem kzalloc \n", sizeof(struct ctl_table));
        init_header(links, dir->header.root, dir->header.set, node, link_table,
                    head->ctl_table_size);
        links->nreg = nr_entries;
"
and then run the following bash script in the kernel:

accum=0
for n in $(dmesg | grep kzalloc | awk '{print $3}') ; do
    echo $n
    accum=$(calc "$accum + $n")
done
echo $accum

[4]
add/remove: 0/0 grow/shrink: 0/21 up/down: 0/-2432 (-2432)
Function                                     old     new   delta
xpc_sys_xpc_hb                               192     128     -64
xpc_sys_xpc                                  128      64     -64
vrf_table                                    128      64     -64
ucma_ctl_table                               128      64     -64
tty_table                                    192     128     -64
sg_sysctls                                   128      64     -64
scsi_table                                   128      64     -64
random_table                                 448     384     -64
raid_table                                   192     128     -64
oa_table                                     192     128     -64
mac_hid_files                                256     192     -64
iwcm_ctl_table                               128      64     -64
ipmi_table                                   128      64     -64
hv_ctl_table                                 128      64     -64
hpet_table                                   128      64     -64
firmware_config_table                        192     128     -64
cdrom_table                                  448     384     -64
balloon_table                                128      64     -64
parport_sysctl_template                      912     720    -192
parport_default_sysctl_table                 584     136    -448
parport_device_sysctl_template               776     136    -640
Total: Before=429940038, After=429937606, chg -0.00%

[5]
add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-64 (-64)
Function                                     old     new   delta
random_table                                 448     384     -64
Total: Before=1885527, After=1885463, chg -0.00%

[6] https://lore.kernel.org/all/20230913-jag-sysctl_remove_empty_elem_arch-v2-0-d1bd13a29bae@samsung.com/

Signed-off-by: Joel Granados <j.granados@samsung.com>

To: Luis Chamberlain <mcgrof@kernel.org>
To: willy@infradead.org
To: josh@joshtriplett.org
To: Kees Cook <keescook@chromium.org>
To: Phillip Potter <phil@philpotter.co.uk>
To: Clemens Ladisch <clemens@ladisch.de>
To: Arnd Bergmann <arnd@arndb.de>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Juergen Gross <jgross@suse.com>
To: Stefano Stabellini <sstabellini@kernel.org>
To: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
To: Jiri Slaby <jirislaby@kernel.org>
To: "James E.J. Bottomley" <jejb@linux.ibm.com>
To: "Martin K. Petersen" <martin.petersen@oracle.com>
To: Doug Gilbert <dgilbert@interlog.com>
To: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
To: Jason Gunthorpe <jgg@ziepe.ca>
To: Leon Romanovsky <leon@kernel.org>
To: Corey Minyard <minyard@acm.org>
To: Theodore Ts'o <tytso@mit.edu>
To: "Jason A. Donenfeld" <Jason@zx2c4.com>
To: David Ahern <dsahern@kernel.org>
To: "David S. Miller" <davem@davemloft.net>
To: Eric Dumazet <edumazet@google.com>
To: Jakub Kicinski <kuba@kernel.org>
To: Paolo Abeni <pabeni@redhat.com>
To: Robin Holt <robinmholt@gmail.com>
To: Steve Wahl <steve.wahl@hpe.com>
To: Russ Weight <russell.h.weight@intel.com>
To: "Rafael J. Wysocki" <rafael@kernel.org>
To: Song Liu <song@kernel.org>
To: "K. Y. Srinivasan" <kys@microsoft.com>
To: Haiyang Zhang <haiyangz@microsoft.com>
To: Wei Liu <wei.liu@kernel.org>
To: Dexuan Cui <decui@microsoft.com>
To: Jani Nikula <jani.nikula@linux.intel.com>
To: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
To: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: David Airlie <airlied@gmail.com>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: linux-kernel@vger.kernel.org
Cc: xen-devel@lists.xenproject.org
Cc: linux-serial@vger.kernel.org
Cc: linux-scsi@vger.kernel.org
Cc: linuxppc-dev@lists.ozlabs.org
Cc: linux-rdma@vger.kernel.org
Cc: openipmi-developer@lists.sourceforge.net
Cc: netdev@vger.kernel.org
Cc: linux-raid@vger.kernel.org
Cc: linux-hyperv@vger.kernel.org
Cc: intel-gfx@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org

---

---
Joel Granados (15):
      cdrom: Remove now superfluous sentinel element from ctl_table array
      hpet: Remove now superfluous sentinel element from ctl_table array
      xen: Remove now superfluous sentinel element from ctl_table array
      tty: Remove now superfluous sentinel element from ctl_table array
      scsi: Remove now superfluous sentinel element from ctl_table array
      parport: Remove the now superfluous sentinel element from ctl_table array
      macintosh: Remove the now superfluous sentinel element from ctl_table array
      infiniband: Remove the now superfluous sentinel element from ctl_table array
      char-misc: Remove the now superfluous sentinel element from ctl_table array
      vrf: Remove the now superfluous sentinel element from ctl_table array
      sgi-xp: Remove the now superfluous sentinel element from ctl_table array
      fw loader: Remove the now superfluous sentinel element from ctl_table array
      raid: Remove now superfluous sentinel element from ctl_table array
      Drivers: hv: Remove now superfluous sentinel element from ctl_table array
      intel drm: Remove now superfluous sentinel element from ctl_table array

 drivers/base/firmware_loader/fallback_table.c |  1 -
 drivers/cdrom/cdrom.c                         |  1 -
 drivers/char/hpet.c                           |  1 -
 drivers/char/ipmi/ipmi_poweroff.c             |  1 -
 drivers/char/random.c                         |  1 -
 drivers/gpu/drm/i915/i915_perf.c              |  1 -
 drivers/hv/hv_common.c                        |  1 -
 drivers/infiniband/core/iwcm.c                |  1 -
 drivers/infiniband/core/ucma.c                |  1 -
 drivers/macintosh/mac_hid.c                   |  1 -
 drivers/md/md.c                               |  1 -
 drivers/misc/sgi-xp/xpc_main.c                |  2 --
 drivers/net/vrf.c                             |  1 -
 drivers/parport/procfs.c                      | 28 +++++++++++----------------
 drivers/scsi/scsi_sysctl.c                    |  1 -
 drivers/scsi/sg.c                             |  1 -
 drivers/tty/tty_io.c                          |  1 -
 drivers/xen/balloon.c                         |  1 -
 18 files changed, 11 insertions(+), 35 deletions(-)
---
base-commit: 0e945134b680040b8613e962f586d91b6d40292d
change-id: 20230927-jag-sysctl_remove_empty_elem_drivers-f034962a0d8c

Best regards,
-- 
Joel Granados <j.granados@samsung.com>


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 01/15] cdrom: Remove now superfluous sentinel element from ctl_table array
  2023-10-02  8:55 ` Joel Granados via B4 Relay
  (?)
  (?)
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  -1 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-kernel, xen-devel, linux-serial, linux-scsi,
	linuxppc-dev, linux-rdma, openipmi-developer, netdev, linux-raid,
	linux-hyperv, intel-gfx, dri-devel

From: Joel Granados <j.granados@samsung.com>

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 cdrom_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/cdrom/cdrom.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/cdrom/cdrom.c b/drivers/cdrom/cdrom.c
index cc2839805983..a5e07270e0d4 100644
--- a/drivers/cdrom/cdrom.c
+++ b/drivers/cdrom/cdrom.c
@@ -3655,7 +3655,6 @@ static struct ctl_table cdrom_table[] = {
 		.mode		= 0644,
 		.proc_handler	= cdrom_sysctl_handler
 	},
-	{ }
 };
 static struct ctl_table_header *cdrom_sysctl_header;
 

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 01/15] cdrom: Remove now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-hyperv, linux-scsi, linux-rdma, netdev,
	intel-gfx, linux-kernel, dri-devel, linux-raid, linux-serial,
	xen-devel, openipmi-developer, linuxppc-dev

From: Joel Granados <j.granados@samsung.com>

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 cdrom_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/cdrom/cdrom.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/cdrom/cdrom.c b/drivers/cdrom/cdrom.c
index cc2839805983..a5e07270e0d4 100644
--- a/drivers/cdrom/cdrom.c
+++ b/drivers/cdrom/cdrom.c
@@ -3655,7 +3655,6 @@ static struct ctl_table cdrom_table[] = {
 		.mode		= 0644,
 		.proc_handler	= cdrom_sysctl_handler
 	},
-	{ }
 };
 static struct ctl_table_header *cdrom_sysctl_header;
 

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [Intel-gfx] [PATCH v2 01/15] cdrom: Remove now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-hyperv, linux-scsi, linux-rdma, netdev,
	intel-gfx, linux-kernel, dri-devel, linux-raid, linux-serial,
	xen-devel, openipmi-developer, linuxppc-dev

From: Joel Granados <j.granados@samsung.com>

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 cdrom_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/cdrom/cdrom.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/cdrom/cdrom.c b/drivers/cdrom/cdrom.c
index cc2839805983..a5e07270e0d4 100644
--- a/drivers/cdrom/cdrom.c
+++ b/drivers/cdrom/cdrom.c
@@ -3655,7 +3655,6 @@ static struct ctl_table cdrom_table[] = {
 		.mode		= 0644,
 		.proc_handler	= cdrom_sysctl_handler
 	},
-	{ }
 };
 static struct ctl_table_header *cdrom_sysctl_header;
 

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 01/15] cdrom: Remove now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-kernel, xen-devel, linux-serial, linux-scsi,
	linuxppc-dev, linux-rdma, openipmi-developer, netdev, linux-raid,
	linux-hyperv, intel-gfx, dri-devel

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 cdrom_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/cdrom/cdrom.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/cdrom/cdrom.c b/drivers/cdrom/cdrom.c
index cc2839805983..a5e07270e0d4 100644
--- a/drivers/cdrom/cdrom.c
+++ b/drivers/cdrom/cdrom.c
@@ -3655,7 +3655,6 @@ static struct ctl_table cdrom_table[] = {
 		.mode		= 0644,
 		.proc_handler	= cdrom_sysctl_handler
 	},
-	{ }
 };
 static struct ctl_table_header *cdrom_sysctl_header;
 

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 02/15] hpet: Remove now superfluous sentinel element from ctl_table array
  2023-10-02  8:55 ` Joel Granados via B4 Relay
  (?)
  (?)
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  -1 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-kernel, xen-devel, linux-serial, linux-scsi,
	linuxppc-dev, linux-rdma, openipmi-developer, netdev, linux-raid,
	linux-hyperv, intel-gfx, dri-devel

From: Joel Granados <j.granados@samsung.com>

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 the last empty element from hpet_table.

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/char/hpet.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c
index ee71376f174b..f09c79081b01 100644
--- a/drivers/char/hpet.c
+++ b/drivers/char/hpet.c
@@ -728,7 +728,6 @@ static struct ctl_table hpet_table[] = {
 	 .mode = 0644,
 	 .proc_handler = proc_dointvec,
 	 },
-	{}
 };
 
 static struct ctl_table_header *sysctl_header;

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 02/15] hpet: Remove now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-hyperv, linux-scsi, linux-rdma, netdev,
	intel-gfx, linux-kernel, dri-devel, linux-raid, linux-serial,
	xen-devel, openipmi-developer, linuxppc-dev

From: Joel Granados <j.granados@samsung.com>

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 the last empty element from hpet_table.

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/char/hpet.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c
index ee71376f174b..f09c79081b01 100644
--- a/drivers/char/hpet.c
+++ b/drivers/char/hpet.c
@@ -728,7 +728,6 @@ static struct ctl_table hpet_table[] = {
 	 .mode = 0644,
 	 .proc_handler = proc_dointvec,
 	 },
-	{}
 };
 
 static struct ctl_table_header *sysctl_header;

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [Intel-gfx] [PATCH v2 02/15] hpet: Remove now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-hyperv, linux-scsi, linux-rdma, netdev,
	intel-gfx, linux-kernel, dri-devel, linux-raid, linux-serial,
	xen-devel, openipmi-developer, linuxppc-dev

From: Joel Granados <j.granados@samsung.com>

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 the last empty element from hpet_table.

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/char/hpet.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c
index ee71376f174b..f09c79081b01 100644
--- a/drivers/char/hpet.c
+++ b/drivers/char/hpet.c
@@ -728,7 +728,6 @@ static struct ctl_table hpet_table[] = {
 	 .mode = 0644,
 	 .proc_handler = proc_dointvec,
 	 },
-	{}
 };
 
 static struct ctl_table_header *sysctl_header;

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 02/15] hpet: Remove now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-kernel, xen-devel, linux-serial, linux-scsi,
	linuxppc-dev, linux-rdma, openipmi-developer, netdev, linux-raid,
	linux-hyperv, intel-gfx, dri-devel

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 the last empty element from hpet_table.

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/char/hpet.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c
index ee71376f174b..f09c79081b01 100644
--- a/drivers/char/hpet.c
+++ b/drivers/char/hpet.c
@@ -728,7 +728,6 @@ static struct ctl_table hpet_table[] = {
 	 .mode = 0644,
 	 .proc_handler = proc_dointvec,
 	 },
-	{}
 };
 
 static struct ctl_table_header *sysctl_header;

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 03/15] xen: Remove now superfluous sentinel element from ctl_table array
  2023-10-02  8:55 ` Joel Granados via B4 Relay
  (?)
  (?)
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  -1 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-kernel, xen-devel, linux-serial, linux-scsi,
	linuxppc-dev, linux-rdma, openipmi-developer, netdev, linux-raid,
	linux-hyperv, intel-gfx, dri-devel

From: Joel Granados <j.granados@samsung.com>

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 balloon_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/xen/balloon.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/xen/balloon.c b/drivers/xen/balloon.c
index 586a1673459e..976c6cdf9ee6 100644
--- a/drivers/xen/balloon.c
+++ b/drivers/xen/balloon.c
@@ -94,7 +94,6 @@ static struct ctl_table balloon_table[] = {
 		.extra1         = SYSCTL_ZERO,
 		.extra2         = SYSCTL_ONE,
 	},
-	{ }
 };
 
 #else

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 03/15] xen: Remove now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-hyperv, linux-scsi, linux-rdma, netdev,
	intel-gfx, linux-kernel, dri-devel, linux-raid, linux-serial,
	xen-devel, openipmi-developer, linuxppc-dev

From: Joel Granados <j.granados@samsung.com>

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 balloon_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/xen/balloon.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/xen/balloon.c b/drivers/xen/balloon.c
index 586a1673459e..976c6cdf9ee6 100644
--- a/drivers/xen/balloon.c
+++ b/drivers/xen/balloon.c
@@ -94,7 +94,6 @@ static struct ctl_table balloon_table[] = {
 		.extra1         = SYSCTL_ZERO,
 		.extra2         = SYSCTL_ONE,
 	},
-	{ }
 };
 
 #else

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [Intel-gfx] [PATCH v2 03/15] xen: Remove now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-hyperv, linux-scsi, linux-rdma, netdev,
	intel-gfx, linux-kernel, dri-devel, linux-raid, linux-serial,
	xen-devel, openipmi-developer, linuxppc-dev

From: Joel Granados <j.granados@samsung.com>

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 balloon_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/xen/balloon.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/xen/balloon.c b/drivers/xen/balloon.c
index 586a1673459e..976c6cdf9ee6 100644
--- a/drivers/xen/balloon.c
+++ b/drivers/xen/balloon.c
@@ -94,7 +94,6 @@ static struct ctl_table balloon_table[] = {
 		.extra1         = SYSCTL_ZERO,
 		.extra2         = SYSCTL_ONE,
 	},
-	{ }
 };
 
 #else

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 03/15] xen: Remove now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-kernel, xen-devel, linux-serial, linux-scsi,
	linuxppc-dev, linux-rdma, openipmi-developer, netdev, linux-raid,
	linux-hyperv, intel-gfx, dri-devel

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 balloon_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/xen/balloon.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/xen/balloon.c b/drivers/xen/balloon.c
index 586a1673459e..976c6cdf9ee6 100644
--- a/drivers/xen/balloon.c
+++ b/drivers/xen/balloon.c
@@ -94,7 +94,6 @@ static struct ctl_table balloon_table[] = {
 		.extra1         = SYSCTL_ZERO,
 		.extra2         = SYSCTL_ONE,
 	},
-	{ }
 };
 
 #else

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 04/15] tty: Remove now superfluous sentinel element from ctl_table array
  2023-10-02  8:55 ` Joel Granados via B4 Relay
  (?)
  (?)
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  -1 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-kernel, xen-devel, linux-serial, linux-scsi,
	linuxppc-dev, linux-rdma, openipmi-developer, netdev, linux-raid,
	linux-hyperv, intel-gfx, dri-devel

From: Joel Granados <j.granados@samsung.com>

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 tty_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/tty/tty_io.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c
index 8a94e5a43c6d..b3ae062912f5 100644
--- a/drivers/tty/tty_io.c
+++ b/drivers/tty/tty_io.c
@@ -3608,7 +3608,6 @@ static struct ctl_table tty_table[] = {
 		.extra1		= SYSCTL_ZERO,
 		.extra2		= SYSCTL_ONE,
 	},
-	{ }
 };
 
 /*

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 04/15] tty: Remove now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-hyperv, linux-scsi, linux-rdma, netdev,
	intel-gfx, linux-kernel, dri-devel, linux-raid, linux-serial,
	xen-devel, openipmi-developer, linuxppc-dev

From: Joel Granados <j.granados@samsung.com>

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 tty_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/tty/tty_io.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c
index 8a94e5a43c6d..b3ae062912f5 100644
--- a/drivers/tty/tty_io.c
+++ b/drivers/tty/tty_io.c
@@ -3608,7 +3608,6 @@ static struct ctl_table tty_table[] = {
 		.extra1		= SYSCTL_ZERO,
 		.extra2		= SYSCTL_ONE,
 	},
-	{ }
 };
 
 /*

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [Intel-gfx] [PATCH v2 04/15] tty: Remove now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-hyperv, linux-scsi, linux-rdma, netdev,
	intel-gfx, linux-kernel, dri-devel, linux-raid, linux-serial,
	xen-devel, openipmi-developer, linuxppc-dev

From: Joel Granados <j.granados@samsung.com>

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 tty_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/tty/tty_io.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c
index 8a94e5a43c6d..b3ae062912f5 100644
--- a/drivers/tty/tty_io.c
+++ b/drivers/tty/tty_io.c
@@ -3608,7 +3608,6 @@ static struct ctl_table tty_table[] = {
 		.extra1		= SYSCTL_ZERO,
 		.extra2		= SYSCTL_ONE,
 	},
-	{ }
 };
 
 /*

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 04/15] tty: Remove now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-kernel, xen-devel, linux-serial, linux-scsi,
	linuxppc-dev, linux-rdma, openipmi-developer, netdev, linux-raid,
	linux-hyperv, intel-gfx, dri-devel

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 tty_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/tty/tty_io.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c
index 8a94e5a43c6d..b3ae062912f5 100644
--- a/drivers/tty/tty_io.c
+++ b/drivers/tty/tty_io.c
@@ -3608,7 +3608,6 @@ static struct ctl_table tty_table[] = {
 		.extra1		= SYSCTL_ZERO,
 		.extra2		= SYSCTL_ONE,
 	},
-	{ }
 };
 
 /*

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 05/15] scsi: Remove now superfluous sentinel element from ctl_table array
  2023-10-02  8:55 ` Joel Granados via B4 Relay
  (?)
  (?)
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  -1 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-kernel, xen-devel, linux-serial, linux-scsi,
	linuxppc-dev, linux-rdma, openipmi-developer, netdev, linux-raid,
	linux-hyperv, intel-gfx, dri-devel

From: Joel Granados <j.granados@samsung.com>

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 scsi_table and sg_sysctls.

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/scsi/scsi_sysctl.c | 1 -
 drivers/scsi/sg.c          | 1 -
 2 files changed, 2 deletions(-)

diff --git a/drivers/scsi/scsi_sysctl.c b/drivers/scsi/scsi_sysctl.c
index 7f0914ea168f..093774d77534 100644
--- a/drivers/scsi/scsi_sysctl.c
+++ b/drivers/scsi/scsi_sysctl.c
@@ -18,7 +18,6 @@ static struct ctl_table scsi_table[] = {
 	  .maxlen	= sizeof(scsi_logging_level),
 	  .mode		= 0644,
 	  .proc_handler	= proc_dointvec },
-	{ }
 };
 
 static struct ctl_table_header *scsi_table_header;
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c
index 0d8afffd1683..86210e4dd0d3 100644
--- a/drivers/scsi/sg.c
+++ b/drivers/scsi/sg.c
@@ -1650,7 +1650,6 @@ static struct ctl_table sg_sysctls[] = {
 		.mode		= 0444,
 		.proc_handler	= proc_dointvec,
 	},
-	{}
 };
 
 static struct ctl_table_header *hdr;

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 05/15] scsi: Remove now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-hyperv, linux-scsi, linux-rdma, netdev,
	intel-gfx, linux-kernel, dri-devel, linux-raid, linux-serial,
	xen-devel, openipmi-developer, linuxppc-dev

From: Joel Granados <j.granados@samsung.com>

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 scsi_table and sg_sysctls.

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/scsi/scsi_sysctl.c | 1 -
 drivers/scsi/sg.c          | 1 -
 2 files changed, 2 deletions(-)

diff --git a/drivers/scsi/scsi_sysctl.c b/drivers/scsi/scsi_sysctl.c
index 7f0914ea168f..093774d77534 100644
--- a/drivers/scsi/scsi_sysctl.c
+++ b/drivers/scsi/scsi_sysctl.c
@@ -18,7 +18,6 @@ static struct ctl_table scsi_table[] = {
 	  .maxlen	= sizeof(scsi_logging_level),
 	  .mode		= 0644,
 	  .proc_handler	= proc_dointvec },
-	{ }
 };
 
 static struct ctl_table_header *scsi_table_header;
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c
index 0d8afffd1683..86210e4dd0d3 100644
--- a/drivers/scsi/sg.c
+++ b/drivers/scsi/sg.c
@@ -1650,7 +1650,6 @@ static struct ctl_table sg_sysctls[] = {
 		.mode		= 0444,
 		.proc_handler	= proc_dointvec,
 	},
-	{}
 };
 
 static struct ctl_table_header *hdr;

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [Intel-gfx] [PATCH v2 05/15] scsi: Remove now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-hyperv, linux-scsi, linux-rdma, netdev,
	intel-gfx, linux-kernel, dri-devel, linux-raid, linux-serial,
	xen-devel, openipmi-developer, linuxppc-dev

From: Joel Granados <j.granados@samsung.com>

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 scsi_table and sg_sysctls.

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/scsi/scsi_sysctl.c | 1 -
 drivers/scsi/sg.c          | 1 -
 2 files changed, 2 deletions(-)

diff --git a/drivers/scsi/scsi_sysctl.c b/drivers/scsi/scsi_sysctl.c
index 7f0914ea168f..093774d77534 100644
--- a/drivers/scsi/scsi_sysctl.c
+++ b/drivers/scsi/scsi_sysctl.c
@@ -18,7 +18,6 @@ static struct ctl_table scsi_table[] = {
 	  .maxlen	= sizeof(scsi_logging_level),
 	  .mode		= 0644,
 	  .proc_handler	= proc_dointvec },
-	{ }
 };
 
 static struct ctl_table_header *scsi_table_header;
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c
index 0d8afffd1683..86210e4dd0d3 100644
--- a/drivers/scsi/sg.c
+++ b/drivers/scsi/sg.c
@@ -1650,7 +1650,6 @@ static struct ctl_table sg_sysctls[] = {
 		.mode		= 0444,
 		.proc_handler	= proc_dointvec,
 	},
-	{}
 };
 
 static struct ctl_table_header *hdr;

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 05/15] scsi: Remove now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-kernel, xen-devel, linux-serial, linux-scsi,
	linuxppc-dev, linux-rdma, openipmi-developer, netdev, linux-raid,
	linux-hyperv, intel-gfx, dri-devel

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 scsi_table and sg_sysctls.

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/scsi/scsi_sysctl.c | 1 -
 drivers/scsi/sg.c          | 1 -
 2 files changed, 2 deletions(-)

diff --git a/drivers/scsi/scsi_sysctl.c b/drivers/scsi/scsi_sysctl.c
index 7f0914ea168f..093774d77534 100644
--- a/drivers/scsi/scsi_sysctl.c
+++ b/drivers/scsi/scsi_sysctl.c
@@ -18,7 +18,6 @@ static struct ctl_table scsi_table[] = {
 	  .maxlen	= sizeof(scsi_logging_level),
 	  .mode		= 0644,
 	  .proc_handler	= proc_dointvec },
-	{ }
 };
 
 static struct ctl_table_header *scsi_table_header;
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c
index 0d8afffd1683..86210e4dd0d3 100644
--- a/drivers/scsi/sg.c
+++ b/drivers/scsi/sg.c
@@ -1650,7 +1650,6 @@ static struct ctl_table sg_sysctls[] = {
 		.mode		= 0444,
 		.proc_handler	= proc_dointvec,
 	},
-	{}
 };
 
 static struct ctl_table_header *hdr;

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 06/15] parport: Remove the now superfluous sentinel element from ctl_table array
  2023-10-02  8:55 ` Joel Granados via B4 Relay
  (?)
  (?)
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  -1 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-kernel, xen-devel, linux-serial, linux-scsi,
	linuxppc-dev, linux-rdma, openipmi-developer, netdev, linux-raid,
	linux-hyperv, intel-gfx, dri-devel

From: Joel Granados <j.granados@samsung.com>

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 the unneeded ctl_tables that were used to register intermediate
parport directories; only the path is needed at this point. From
parport_device_sysctl_table we removed: devices_root_dir, port_dir,
parport_dir and dev_dir. From parport_default_sysctl_table we removed:
default_dir, parport_dir and dev_dir. Reduce the size by one of the
ctl_table arrays that were not removed

Assign different sizes to the vars array in parport_sysctl_table
depending on CONFIG_PARPORT_1284; this is necessary now that the sysctl
register function uses ARRAY_SIZE to calculate the elements within.
Remove the sentinel element from parport_sysctl_template,
parport_device_sysctl_table and parport_default_sysctl_table.

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/parport/procfs.c | 28 +++++++++++-----------------
 1 file changed, 11 insertions(+), 17 deletions(-)

diff --git a/drivers/parport/procfs.c b/drivers/parport/procfs.c
index 4e5b972c3e26..532d5cbbd344 100644
--- a/drivers/parport/procfs.c
+++ b/drivers/parport/procfs.c
@@ -259,8 +259,12 @@ PARPORT_MAX_SPINTIME_VALUE;
 struct parport_sysctl_table {
 	struct ctl_table_header *port_header;
 	struct ctl_table_header *devices_header;
-	struct ctl_table vars[12];
-	struct ctl_table device_dir[2];
+#ifdef CONFIG_PARPORT_1284
+	struct ctl_table vars[10];
+#else
+	struct ctl_table vars[5];
+#endif /* IEEE 1284 support */
+	struct ctl_table device_dir[1];
 };
 
 static const struct parport_sysctl_table parport_sysctl_template = {
@@ -341,7 +345,6 @@ static const struct parport_sysctl_table parport_sysctl_template = {
 			.proc_handler	= do_autoprobe
 		},
 #endif /* IEEE 1284 support */
-		{}
 	},
 	{
 		{
@@ -351,19 +354,14 @@ static const struct parport_sysctl_table parport_sysctl_template = {
 			.mode		= 0444,
 			.proc_handler	= do_active_device
 		},
-		{}
 	},
 };
 
 struct parport_device_sysctl_table
 {
 	struct ctl_table_header *sysctl_header;
-	struct ctl_table vars[2];
-	struct ctl_table device_dir[2];
-	struct ctl_table devices_root_dir[2];
-	struct ctl_table port_dir[2];
-	struct ctl_table parport_dir[2];
-	struct ctl_table dev_dir[2];
+	struct ctl_table vars[1];
+	struct ctl_table device_dir[1];
 };
 
 static const struct parport_device_sysctl_table
@@ -379,7 +377,6 @@ parport_device_sysctl_template = {
 			.extra1		= (void*) &parport_min_timeslice_value,
 			.extra2		= (void*) &parport_max_timeslice_value
 		},
-		{}
 	},
 	{
 		{
@@ -388,17 +385,13 @@ parport_device_sysctl_template = {
 			.maxlen		= 0,
 			.mode		= 0555,
 		},
-		{}
 	}
 };
 
 struct parport_default_sysctl_table
 {
 	struct ctl_table_header *sysctl_header;
-	struct ctl_table vars[3];
-	struct ctl_table default_dir[2];
-	struct ctl_table parport_dir[2];
-	struct ctl_table dev_dir[2];
+	struct ctl_table vars[2];
 };
 
 static struct parport_default_sysctl_table
@@ -423,7 +416,6 @@ parport_default_sysctl_table = {
 			.extra1		= (void*) &parport_min_spintime_value,
 			.extra2		= (void*) &parport_max_spintime_value
 		},
-		{}
 	}
 };
 
@@ -443,7 +435,9 @@ int parport_proc_register(struct parport *port)
 	t->vars[0].data = &port->spintime;
 	for (i = 0; i < 5; i++) {
 		t->vars[i].extra1 = port;
+#ifdef CONFIG_PARPORT_1284
 		t->vars[5 + i].extra2 = &port->probe_info[i];
+#endif /* IEEE 1284 support */
 	}
 
 	port_name_len = strnlen(port->name, PARPORT_NAME_MAX_LEN);

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 06/15] parport: Remove the now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-hyperv, linux-scsi, linux-rdma, netdev,
	intel-gfx, linux-kernel, dri-devel, linux-raid, linux-serial,
	xen-devel, openipmi-developer, linuxppc-dev

From: Joel Granados <j.granados@samsung.com>

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 the unneeded ctl_tables that were used to register intermediate
parport directories; only the path is needed at this point. From
parport_device_sysctl_table we removed: devices_root_dir, port_dir,
parport_dir and dev_dir. From parport_default_sysctl_table we removed:
default_dir, parport_dir and dev_dir. Reduce the size by one of the
ctl_table arrays that were not removed

Assign different sizes to the vars array in parport_sysctl_table
depending on CONFIG_PARPORT_1284; this is necessary now that the sysctl
register function uses ARRAY_SIZE to calculate the elements within.
Remove the sentinel element from parport_sysctl_template,
parport_device_sysctl_table and parport_default_sysctl_table.

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/parport/procfs.c | 28 +++++++++++-----------------
 1 file changed, 11 insertions(+), 17 deletions(-)

diff --git a/drivers/parport/procfs.c b/drivers/parport/procfs.c
index 4e5b972c3e26..532d5cbbd344 100644
--- a/drivers/parport/procfs.c
+++ b/drivers/parport/procfs.c
@@ -259,8 +259,12 @@ PARPORT_MAX_SPINTIME_VALUE;
 struct parport_sysctl_table {
 	struct ctl_table_header *port_header;
 	struct ctl_table_header *devices_header;
-	struct ctl_table vars[12];
-	struct ctl_table device_dir[2];
+#ifdef CONFIG_PARPORT_1284
+	struct ctl_table vars[10];
+#else
+	struct ctl_table vars[5];
+#endif /* IEEE 1284 support */
+	struct ctl_table device_dir[1];
 };
 
 static const struct parport_sysctl_table parport_sysctl_template = {
@@ -341,7 +345,6 @@ static const struct parport_sysctl_table parport_sysctl_template = {
 			.proc_handler	= do_autoprobe
 		},
 #endif /* IEEE 1284 support */
-		{}
 	},
 	{
 		{
@@ -351,19 +354,14 @@ static const struct parport_sysctl_table parport_sysctl_template = {
 			.mode		= 0444,
 			.proc_handler	= do_active_device
 		},
-		{}
 	},
 };
 
 struct parport_device_sysctl_table
 {
 	struct ctl_table_header *sysctl_header;
-	struct ctl_table vars[2];
-	struct ctl_table device_dir[2];
-	struct ctl_table devices_root_dir[2];
-	struct ctl_table port_dir[2];
-	struct ctl_table parport_dir[2];
-	struct ctl_table dev_dir[2];
+	struct ctl_table vars[1];
+	struct ctl_table device_dir[1];
 };
 
 static const struct parport_device_sysctl_table
@@ -379,7 +377,6 @@ parport_device_sysctl_template = {
 			.extra1		= (void*) &parport_min_timeslice_value,
 			.extra2		= (void*) &parport_max_timeslice_value
 		},
-		{}
 	},
 	{
 		{
@@ -388,17 +385,13 @@ parport_device_sysctl_template = {
 			.maxlen		= 0,
 			.mode		= 0555,
 		},
-		{}
 	}
 };
 
 struct parport_default_sysctl_table
 {
 	struct ctl_table_header *sysctl_header;
-	struct ctl_table vars[3];
-	struct ctl_table default_dir[2];
-	struct ctl_table parport_dir[2];
-	struct ctl_table dev_dir[2];
+	struct ctl_table vars[2];
 };
 
 static struct parport_default_sysctl_table
@@ -423,7 +416,6 @@ parport_default_sysctl_table = {
 			.extra1		= (void*) &parport_min_spintime_value,
 			.extra2		= (void*) &parport_max_spintime_value
 		},
-		{}
 	}
 };
 
@@ -443,7 +435,9 @@ int parport_proc_register(struct parport *port)
 	t->vars[0].data = &port->spintime;
 	for (i = 0; i < 5; i++) {
 		t->vars[i].extra1 = port;
+#ifdef CONFIG_PARPORT_1284
 		t->vars[5 + i].extra2 = &port->probe_info[i];
+#endif /* IEEE 1284 support */
 	}
 
 	port_name_len = strnlen(port->name, PARPORT_NAME_MAX_LEN);

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [Intel-gfx] [PATCH v2 06/15] parport: Remove the now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-hyperv, linux-scsi, linux-rdma, netdev,
	intel-gfx, linux-kernel, dri-devel, linux-raid, linux-serial,
	xen-devel, openipmi-developer, linuxppc-dev

From: Joel Granados <j.granados@samsung.com>

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 the unneeded ctl_tables that were used to register intermediate
parport directories; only the path is needed at this point. From
parport_device_sysctl_table we removed: devices_root_dir, port_dir,
parport_dir and dev_dir. From parport_default_sysctl_table we removed:
default_dir, parport_dir and dev_dir. Reduce the size by one of the
ctl_table arrays that were not removed

Assign different sizes to the vars array in parport_sysctl_table
depending on CONFIG_PARPORT_1284; this is necessary now that the sysctl
register function uses ARRAY_SIZE to calculate the elements within.
Remove the sentinel element from parport_sysctl_template,
parport_device_sysctl_table and parport_default_sysctl_table.

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/parport/procfs.c | 28 +++++++++++-----------------
 1 file changed, 11 insertions(+), 17 deletions(-)

diff --git a/drivers/parport/procfs.c b/drivers/parport/procfs.c
index 4e5b972c3e26..532d5cbbd344 100644
--- a/drivers/parport/procfs.c
+++ b/drivers/parport/procfs.c
@@ -259,8 +259,12 @@ PARPORT_MAX_SPINTIME_VALUE;
 struct parport_sysctl_table {
 	struct ctl_table_header *port_header;
 	struct ctl_table_header *devices_header;
-	struct ctl_table vars[12];
-	struct ctl_table device_dir[2];
+#ifdef CONFIG_PARPORT_1284
+	struct ctl_table vars[10];
+#else
+	struct ctl_table vars[5];
+#endif /* IEEE 1284 support */
+	struct ctl_table device_dir[1];
 };
 
 static const struct parport_sysctl_table parport_sysctl_template = {
@@ -341,7 +345,6 @@ static const struct parport_sysctl_table parport_sysctl_template = {
 			.proc_handler	= do_autoprobe
 		},
 #endif /* IEEE 1284 support */
-		{}
 	},
 	{
 		{
@@ -351,19 +354,14 @@ static const struct parport_sysctl_table parport_sysctl_template = {
 			.mode		= 0444,
 			.proc_handler	= do_active_device
 		},
-		{}
 	},
 };
 
 struct parport_device_sysctl_table
 {
 	struct ctl_table_header *sysctl_header;
-	struct ctl_table vars[2];
-	struct ctl_table device_dir[2];
-	struct ctl_table devices_root_dir[2];
-	struct ctl_table port_dir[2];
-	struct ctl_table parport_dir[2];
-	struct ctl_table dev_dir[2];
+	struct ctl_table vars[1];
+	struct ctl_table device_dir[1];
 };
 
 static const struct parport_device_sysctl_table
@@ -379,7 +377,6 @@ parport_device_sysctl_template = {
 			.extra1		= (void*) &parport_min_timeslice_value,
 			.extra2		= (void*) &parport_max_timeslice_value
 		},
-		{}
 	},
 	{
 		{
@@ -388,17 +385,13 @@ parport_device_sysctl_template = {
 			.maxlen		= 0,
 			.mode		= 0555,
 		},
-		{}
 	}
 };
 
 struct parport_default_sysctl_table
 {
 	struct ctl_table_header *sysctl_header;
-	struct ctl_table vars[3];
-	struct ctl_table default_dir[2];
-	struct ctl_table parport_dir[2];
-	struct ctl_table dev_dir[2];
+	struct ctl_table vars[2];
 };
 
 static struct parport_default_sysctl_table
@@ -423,7 +416,6 @@ parport_default_sysctl_table = {
 			.extra1		= (void*) &parport_min_spintime_value,
 			.extra2		= (void*) &parport_max_spintime_value
 		},
-		{}
 	}
 };
 
@@ -443,7 +435,9 @@ int parport_proc_register(struct parport *port)
 	t->vars[0].data = &port->spintime;
 	for (i = 0; i < 5; i++) {
 		t->vars[i].extra1 = port;
+#ifdef CONFIG_PARPORT_1284
 		t->vars[5 + i].extra2 = &port->probe_info[i];
+#endif /* IEEE 1284 support */
 	}
 
 	port_name_len = strnlen(port->name, PARPORT_NAME_MAX_LEN);

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 06/15] parport: Remove the now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-kernel, xen-devel, linux-serial, linux-scsi,
	linuxppc-dev, linux-rdma, openipmi-developer, netdev, linux-raid,
	linux-hyperv, intel-gfx, dri-devel

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 the unneeded ctl_tables that were used to register intermediate
parport directories; only the path is needed at this point. From
parport_device_sysctl_table we removed: devices_root_dir, port_dir,
parport_dir and dev_dir. From parport_default_sysctl_table we removed:
default_dir, parport_dir and dev_dir. Reduce the size by one of the
ctl_table arrays that were not removed

Assign different sizes to the vars array in parport_sysctl_table
depending on CONFIG_PARPORT_1284; this is necessary now that the sysctl
register function uses ARRAY_SIZE to calculate the elements within.
Remove the sentinel element from parport_sysctl_template,
parport_device_sysctl_table and parport_default_sysctl_table.

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/parport/procfs.c | 28 +++++++++++-----------------
 1 file changed, 11 insertions(+), 17 deletions(-)

diff --git a/drivers/parport/procfs.c b/drivers/parport/procfs.c
index 4e5b972c3e26..532d5cbbd344 100644
--- a/drivers/parport/procfs.c
+++ b/drivers/parport/procfs.c
@@ -259,8 +259,12 @@ PARPORT_MAX_SPINTIME_VALUE;
 struct parport_sysctl_table {
 	struct ctl_table_header *port_header;
 	struct ctl_table_header *devices_header;
-	struct ctl_table vars[12];
-	struct ctl_table device_dir[2];
+#ifdef CONFIG_PARPORT_1284
+	struct ctl_table vars[10];
+#else
+	struct ctl_table vars[5];
+#endif /* IEEE 1284 support */
+	struct ctl_table device_dir[1];
 };
 
 static const struct parport_sysctl_table parport_sysctl_template = {
@@ -341,7 +345,6 @@ static const struct parport_sysctl_table parport_sysctl_template = {
 			.proc_handler	= do_autoprobe
 		},
 #endif /* IEEE 1284 support */
-		{}
 	},
 	{
 		{
@@ -351,19 +354,14 @@ static const struct parport_sysctl_table parport_sysctl_template = {
 			.mode		= 0444,
 			.proc_handler	= do_active_device
 		},
-		{}
 	},
 };
 
 struct parport_device_sysctl_table
 {
 	struct ctl_table_header *sysctl_header;
-	struct ctl_table vars[2];
-	struct ctl_table device_dir[2];
-	struct ctl_table devices_root_dir[2];
-	struct ctl_table port_dir[2];
-	struct ctl_table parport_dir[2];
-	struct ctl_table dev_dir[2];
+	struct ctl_table vars[1];
+	struct ctl_table device_dir[1];
 };
 
 static const struct parport_device_sysctl_table
@@ -379,7 +377,6 @@ parport_device_sysctl_template = {
 			.extra1		= (void*) &parport_min_timeslice_value,
 			.extra2		= (void*) &parport_max_timeslice_value
 		},
-		{}
 	},
 	{
 		{
@@ -388,17 +385,13 @@ parport_device_sysctl_template = {
 			.maxlen		= 0,
 			.mode		= 0555,
 		},
-		{}
 	}
 };
 
 struct parport_default_sysctl_table
 {
 	struct ctl_table_header *sysctl_header;
-	struct ctl_table vars[3];
-	struct ctl_table default_dir[2];
-	struct ctl_table parport_dir[2];
-	struct ctl_table dev_dir[2];
+	struct ctl_table vars[2];
 };
 
 static struct parport_default_sysctl_table
@@ -423,7 +416,6 @@ parport_default_sysctl_table = {
 			.extra1		= (void*) &parport_min_spintime_value,
 			.extra2		= (void*) &parport_max_spintime_value
 		},
-		{}
 	}
 };
 
@@ -443,7 +435,9 @@ int parport_proc_register(struct parport *port)
 	t->vars[0].data = &port->spintime;
 	for (i = 0; i < 5; i++) {
 		t->vars[i].extra1 = port;
+#ifdef CONFIG_PARPORT_1284
 		t->vars[5 + i].extra2 = &port->probe_info[i];
+#endif /* IEEE 1284 support */
 	}
 
 	port_name_len = strnlen(port->name, PARPORT_NAME_MAX_LEN);

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 07/15] macintosh: Remove the now superfluous sentinel element from ctl_table array
  2023-10-02  8:55 ` Joel Granados via B4 Relay
  (?)
  (?)
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  -1 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-kernel, xen-devel, linux-serial, linux-scsi,
	linuxppc-dev, linux-rdma, openipmi-developer, netdev, linux-raid,
	linux-hyperv, intel-gfx, dri-devel

From: Joel Granados <j.granados@samsung.com>

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 mac_hid_files

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/macintosh/mac_hid.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/macintosh/mac_hid.c b/drivers/macintosh/mac_hid.c
index d8c4d5664145..1ae3539beff5 100644
--- a/drivers/macintosh/mac_hid.c
+++ b/drivers/macintosh/mac_hid.c
@@ -236,7 +236,6 @@ static struct ctl_table mac_hid_files[] = {
 		.mode		= 0644,
 		.proc_handler	= proc_dointvec,
 	},
-	{ }
 };
 
 static struct ctl_table_header *mac_hid_sysctl_header;

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 07/15] macintosh: Remove the now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-hyperv, linux-scsi, linux-rdma, netdev,
	intel-gfx, linux-kernel, dri-devel, linux-raid, linux-serial,
	xen-devel, openipmi-developer, linuxppc-dev

From: Joel Granados <j.granados@samsung.com>

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 mac_hid_files

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/macintosh/mac_hid.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/macintosh/mac_hid.c b/drivers/macintosh/mac_hid.c
index d8c4d5664145..1ae3539beff5 100644
--- a/drivers/macintosh/mac_hid.c
+++ b/drivers/macintosh/mac_hid.c
@@ -236,7 +236,6 @@ static struct ctl_table mac_hid_files[] = {
 		.mode		= 0644,
 		.proc_handler	= proc_dointvec,
 	},
-	{ }
 };
 
 static struct ctl_table_header *mac_hid_sysctl_header;

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [Intel-gfx] [PATCH v2 07/15] macintosh: Remove the now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-hyperv, linux-scsi, linux-rdma, netdev,
	intel-gfx, linux-kernel, dri-devel, linux-raid, linux-serial,
	xen-devel, openipmi-developer, linuxppc-dev

From: Joel Granados <j.granados@samsung.com>

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 mac_hid_files

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/macintosh/mac_hid.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/macintosh/mac_hid.c b/drivers/macintosh/mac_hid.c
index d8c4d5664145..1ae3539beff5 100644
--- a/drivers/macintosh/mac_hid.c
+++ b/drivers/macintosh/mac_hid.c
@@ -236,7 +236,6 @@ static struct ctl_table mac_hid_files[] = {
 		.mode		= 0644,
 		.proc_handler	= proc_dointvec,
 	},
-	{ }
 };
 
 static struct ctl_table_header *mac_hid_sysctl_header;

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 07/15] macintosh: Remove the now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-kernel, xen-devel, linux-serial, linux-scsi,
	linuxppc-dev, linux-rdma, openipmi-developer, netdev, linux-raid,
	linux-hyperv, intel-gfx, dri-devel

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 mac_hid_files

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/macintosh/mac_hid.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/macintosh/mac_hid.c b/drivers/macintosh/mac_hid.c
index d8c4d5664145..1ae3539beff5 100644
--- a/drivers/macintosh/mac_hid.c
+++ b/drivers/macintosh/mac_hid.c
@@ -236,7 +236,6 @@ static struct ctl_table mac_hid_files[] = {
 		.mode		= 0644,
 		.proc_handler	= proc_dointvec,
 	},
-	{ }
 };
 
 static struct ctl_table_header *mac_hid_sysctl_header;

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 08/15] infiniband: Remove the now superfluous sentinel element from ctl_table array
  2023-10-02  8:55 ` Joel Granados via B4 Relay
  (?)
  (?)
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  -1 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-kernel, xen-devel, linux-serial, linux-scsi,
	linuxppc-dev, linux-rdma, openipmi-developer, netdev, linux-raid,
	linux-hyperv, intel-gfx, dri-devel

From: Joel Granados <j.granados@samsung.com>

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>
---
 drivers/infiniband/core/iwcm.c | 1 -
 drivers/infiniband/core/ucma.c | 1 -
 2 files changed, 2 deletions(-)

diff --git a/drivers/infiniband/core/iwcm.c b/drivers/infiniband/core/iwcm.c
index 2b47073c61a6..0301fcad4b48 100644
--- a/drivers/infiniband/core/iwcm.c
+++ b/drivers/infiniband/core/iwcm.c
@@ -111,7 +111,6 @@ static struct ctl_table iwcm_ctl_table[] = {
 		.mode		= 0644,
 		.proc_handler	= proc_dointvec,
 	},
-	{ }
 };
 
 /*
diff --git a/drivers/infiniband/core/ucma.c b/drivers/infiniband/core/ucma.c
index bf42650f125b..5f5ad8faf86e 100644
--- a/drivers/infiniband/core/ucma.c
+++ b/drivers/infiniband/core/ucma.c
@@ -71,7 +71,6 @@ static struct ctl_table ucma_ctl_table[] = {
 		.mode		= 0644,
 		.proc_handler	= proc_dointvec,
 	},
-	{ }
 };
 
 struct ucma_file {

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 08/15] infiniband: Remove the now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-hyperv, linux-scsi, linux-rdma, netdev,
	intel-gfx, linux-kernel, dri-devel, linux-raid, linux-serial,
	xen-devel, openipmi-developer, linuxppc-dev

From: Joel Granados <j.granados@samsung.com>

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>
---
 drivers/infiniband/core/iwcm.c | 1 -
 drivers/infiniband/core/ucma.c | 1 -
 2 files changed, 2 deletions(-)

diff --git a/drivers/infiniband/core/iwcm.c b/drivers/infiniband/core/iwcm.c
index 2b47073c61a6..0301fcad4b48 100644
--- a/drivers/infiniband/core/iwcm.c
+++ b/drivers/infiniband/core/iwcm.c
@@ -111,7 +111,6 @@ static struct ctl_table iwcm_ctl_table[] = {
 		.mode		= 0644,
 		.proc_handler	= proc_dointvec,
 	},
-	{ }
 };
 
 /*
diff --git a/drivers/infiniband/core/ucma.c b/drivers/infiniband/core/ucma.c
index bf42650f125b..5f5ad8faf86e 100644
--- a/drivers/infiniband/core/ucma.c
+++ b/drivers/infiniband/core/ucma.c
@@ -71,7 +71,6 @@ static struct ctl_table ucma_ctl_table[] = {
 		.mode		= 0644,
 		.proc_handler	= proc_dointvec,
 	},
-	{ }
 };
 
 struct ucma_file {

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [Intel-gfx] [PATCH v2 08/15] infiniband: Remove the now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-hyperv, linux-scsi, linux-rdma, netdev,
	intel-gfx, linux-kernel, dri-devel, linux-raid, linux-serial,
	xen-devel, openipmi-developer, linuxppc-dev

From: Joel Granados <j.granados@samsung.com>

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>
---
 drivers/infiniband/core/iwcm.c | 1 -
 drivers/infiniband/core/ucma.c | 1 -
 2 files changed, 2 deletions(-)

diff --git a/drivers/infiniband/core/iwcm.c b/drivers/infiniband/core/iwcm.c
index 2b47073c61a6..0301fcad4b48 100644
--- a/drivers/infiniband/core/iwcm.c
+++ b/drivers/infiniband/core/iwcm.c
@@ -111,7 +111,6 @@ static struct ctl_table iwcm_ctl_table[] = {
 		.mode		= 0644,
 		.proc_handler	= proc_dointvec,
 	},
-	{ }
 };
 
 /*
diff --git a/drivers/infiniband/core/ucma.c b/drivers/infiniband/core/ucma.c
index bf42650f125b..5f5ad8faf86e 100644
--- a/drivers/infiniband/core/ucma.c
+++ b/drivers/infiniband/core/ucma.c
@@ -71,7 +71,6 @@ static struct ctl_table ucma_ctl_table[] = {
 		.mode		= 0644,
 		.proc_handler	= proc_dointvec,
 	},
-	{ }
 };
 
 struct ucma_file {

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 08/15] infiniband: Remove the now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-kernel, xen-devel, linux-serial, linux-scsi,
	linuxppc-dev, linux-rdma, openipmi-developer, netdev, linux-raid,
	linux-hyperv, intel-gfx, dri-devel

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>
---
 drivers/infiniband/core/iwcm.c | 1 -
 drivers/infiniband/core/ucma.c | 1 -
 2 files changed, 2 deletions(-)

diff --git a/drivers/infiniband/core/iwcm.c b/drivers/infiniband/core/iwcm.c
index 2b47073c61a6..0301fcad4b48 100644
--- a/drivers/infiniband/core/iwcm.c
+++ b/drivers/infiniband/core/iwcm.c
@@ -111,7 +111,6 @@ static struct ctl_table iwcm_ctl_table[] = {
 		.mode		= 0644,
 		.proc_handler	= proc_dointvec,
 	},
-	{ }
 };
 
 /*
diff --git a/drivers/infiniband/core/ucma.c b/drivers/infiniband/core/ucma.c
index bf42650f125b..5f5ad8faf86e 100644
--- a/drivers/infiniband/core/ucma.c
+++ b/drivers/infiniband/core/ucma.c
@@ -71,7 +71,6 @@ static struct ctl_table ucma_ctl_table[] = {
 		.mode		= 0644,
 		.proc_handler	= proc_dointvec,
 	},
-	{ }
 };
 
 struct ucma_file {

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 09/15] char-misc: Remove the now superfluous sentinel element from ctl_table array
  2023-10-02  8:55 ` Joel Granados via B4 Relay
  (?)
  (?)
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  -1 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-kernel, xen-devel, linux-serial, linux-scsi,
	linuxppc-dev, linux-rdma, openipmi-developer, netdev, linux-raid,
	linux-hyperv, intel-gfx, dri-devel

From: Joel Granados <j.granados@samsung.com>

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 impi_table and random_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/char/ipmi/ipmi_poweroff.c | 1 -
 drivers/char/random.c             | 1 -
 2 files changed, 2 deletions(-)

diff --git a/drivers/char/ipmi/ipmi_poweroff.c b/drivers/char/ipmi/ipmi_poweroff.c
index 870659d91db2..941d2dcc8c9d 100644
--- a/drivers/char/ipmi/ipmi_poweroff.c
+++ b/drivers/char/ipmi/ipmi_poweroff.c
@@ -656,7 +656,6 @@ static struct ctl_table ipmi_table[] = {
 	  .maxlen	= sizeof(poweroff_powercycle),
 	  .mode		= 0644,
 	  .proc_handler	= proc_dointvec },
-	{ }
 };
 
 static struct ctl_table_header *ipmi_table_header;
diff --git a/drivers/char/random.c b/drivers/char/random.c
index 3cb37760dfec..4a9c79391dee 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -1683,7 +1683,6 @@ static struct ctl_table random_table[] = {
 		.mode		= 0444,
 		.proc_handler	= proc_do_uuid,
 	},
-	{ }
 };
 
 /*

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 09/15] char-misc: Remove the now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-hyperv, linux-scsi, linux-rdma, netdev,
	intel-gfx, linux-kernel, dri-devel, linux-raid, linux-serial,
	xen-devel, openipmi-developer, linuxppc-dev

From: Joel Granados <j.granados@samsung.com>

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 impi_table and random_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/char/ipmi/ipmi_poweroff.c | 1 -
 drivers/char/random.c             | 1 -
 2 files changed, 2 deletions(-)

diff --git a/drivers/char/ipmi/ipmi_poweroff.c b/drivers/char/ipmi/ipmi_poweroff.c
index 870659d91db2..941d2dcc8c9d 100644
--- a/drivers/char/ipmi/ipmi_poweroff.c
+++ b/drivers/char/ipmi/ipmi_poweroff.c
@@ -656,7 +656,6 @@ static struct ctl_table ipmi_table[] = {
 	  .maxlen	= sizeof(poweroff_powercycle),
 	  .mode		= 0644,
 	  .proc_handler	= proc_dointvec },
-	{ }
 };
 
 static struct ctl_table_header *ipmi_table_header;
diff --git a/drivers/char/random.c b/drivers/char/random.c
index 3cb37760dfec..4a9c79391dee 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -1683,7 +1683,6 @@ static struct ctl_table random_table[] = {
 		.mode		= 0444,
 		.proc_handler	= proc_do_uuid,
 	},
-	{ }
 };
 
 /*

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [Intel-gfx] [PATCH v2 09/15] char-misc: Remove the now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-hyperv, linux-scsi, linux-rdma, netdev,
	intel-gfx, linux-kernel, dri-devel, linux-raid, linux-serial,
	xen-devel, openipmi-developer, linuxppc-dev

From: Joel Granados <j.granados@samsung.com>

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 impi_table and random_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/char/ipmi/ipmi_poweroff.c | 1 -
 drivers/char/random.c             | 1 -
 2 files changed, 2 deletions(-)

diff --git a/drivers/char/ipmi/ipmi_poweroff.c b/drivers/char/ipmi/ipmi_poweroff.c
index 870659d91db2..941d2dcc8c9d 100644
--- a/drivers/char/ipmi/ipmi_poweroff.c
+++ b/drivers/char/ipmi/ipmi_poweroff.c
@@ -656,7 +656,6 @@ static struct ctl_table ipmi_table[] = {
 	  .maxlen	= sizeof(poweroff_powercycle),
 	  .mode		= 0644,
 	  .proc_handler	= proc_dointvec },
-	{ }
 };
 
 static struct ctl_table_header *ipmi_table_header;
diff --git a/drivers/char/random.c b/drivers/char/random.c
index 3cb37760dfec..4a9c79391dee 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -1683,7 +1683,6 @@ static struct ctl_table random_table[] = {
 		.mode		= 0444,
 		.proc_handler	= proc_do_uuid,
 	},
-	{ }
 };
 
 /*

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 09/15] char-misc: Remove the now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-kernel, xen-devel, linux-serial, linux-scsi,
	linuxppc-dev, linux-rdma, openipmi-developer, netdev, linux-raid,
	linux-hyperv, intel-gfx, dri-devel

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 impi_table and random_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/char/ipmi/ipmi_poweroff.c | 1 -
 drivers/char/random.c             | 1 -
 2 files changed, 2 deletions(-)

diff --git a/drivers/char/ipmi/ipmi_poweroff.c b/drivers/char/ipmi/ipmi_poweroff.c
index 870659d91db2..941d2dcc8c9d 100644
--- a/drivers/char/ipmi/ipmi_poweroff.c
+++ b/drivers/char/ipmi/ipmi_poweroff.c
@@ -656,7 +656,6 @@ static struct ctl_table ipmi_table[] = {
 	  .maxlen	= sizeof(poweroff_powercycle),
 	  .mode		= 0644,
 	  .proc_handler	= proc_dointvec },
-	{ }
 };
 
 static struct ctl_table_header *ipmi_table_header;
diff --git a/drivers/char/random.c b/drivers/char/random.c
index 3cb37760dfec..4a9c79391dee 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -1683,7 +1683,6 @@ static struct ctl_table random_table[] = {
 		.mode		= 0444,
 		.proc_handler	= proc_do_uuid,
 	},
-	{ }
 };
 
 /*

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 10/15] vrf: Remove the now superfluous sentinel element from ctl_table array
  2023-10-02  8:55 ` Joel Granados via B4 Relay
  (?)
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  -1 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-kernel, xen-devel, linux-serial, linux-scsi,
	linuxppc-dev, linux-rdma, openipmi-developer, netdev, linux-raid,
	linux-hyperv, intel-gfx, dri-devel

From: Joel Granados <j.granados@samsung.com>

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 vrf_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/net/vrf.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/vrf.c b/drivers/net/vrf.c
index a3408e4e1491..db766941b78f 100644
--- a/drivers/net/vrf.c
+++ b/drivers/net/vrf.c
@@ -1963,7 +1963,6 @@ static const struct ctl_table vrf_table[] = {
 		/* set by the vrf_netns_init */
 		.extra1		= NULL,
 	},
-	{ },
 };
 
 static int vrf_netns_init_sysctl(struct net *net, struct netns_vrf *nn_vrf)

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 10/15] vrf: Remove the now superfluous sentinel element from ctl_table array
  2023-10-02  8:55 ` Joel Granados via B4 Relay
                   ` (12 preceding siblings ...)
  (?)
@ 2023-10-02  8:55 ` Joel Granados
  -1 siblings, 0 replies; 91+ messages in thread
From: Joel Granados @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-kernel, xen-devel, linux-serial, linux-scsi,
	linuxppc-dev, linux-rdma, openipmi-developer, netdev, linux-raid,
	linux-hyperv, intel-gfx, dri-devel

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 vrf_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/net/vrf.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/vrf.c b/drivers/net/vrf.c
index a3408e4e1491..db766941b78f 100644
--- a/drivers/net/vrf.c
+++ b/drivers/net/vrf.c
@@ -1963,7 +1963,6 @@ static const struct ctl_table vrf_table[] = {
 		/* set by the vrf_netns_init */
 		.extra1		= NULL,
 	},
-	{ },
 };
 
 static int vrf_netns_init_sysctl(struct net *net, struct netns_vrf *nn_vrf)

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 10/15] vrf: Remove the now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-hyperv, linux-scsi, linux-rdma, netdev,
	intel-gfx, linux-kernel, dri-devel, linux-raid, linux-serial,
	xen-devel, openipmi-developer, linuxppc-dev

From: Joel Granados <j.granados@samsung.com>

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 vrf_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/net/vrf.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/vrf.c b/drivers/net/vrf.c
index a3408e4e1491..db766941b78f 100644
--- a/drivers/net/vrf.c
+++ b/drivers/net/vrf.c
@@ -1963,7 +1963,6 @@ static const struct ctl_table vrf_table[] = {
 		/* set by the vrf_netns_init */
 		.extra1		= NULL,
 	},
-	{ },
 };
 
 static int vrf_netns_init_sysctl(struct net *net, struct netns_vrf *nn_vrf)

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [Intel-gfx] [PATCH v2 10/15] vrf: Remove the now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-hyperv, linux-scsi, linux-rdma, netdev,
	intel-gfx, linux-kernel, dri-devel, linux-raid, linux-serial,
	xen-devel, openipmi-developer, linuxppc-dev

From: Joel Granados <j.granados@samsung.com>

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 vrf_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/net/vrf.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/vrf.c b/drivers/net/vrf.c
index a3408e4e1491..db766941b78f 100644
--- a/drivers/net/vrf.c
+++ b/drivers/net/vrf.c
@@ -1963,7 +1963,6 @@ static const struct ctl_table vrf_table[] = {
 		/* set by the vrf_netns_init */
 		.extra1		= NULL,
 	},
-	{ },
 };
 
 static int vrf_netns_init_sysctl(struct net *net, struct netns_vrf *nn_vrf)

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 11/15] sgi-xp: Remove the now superfluous sentinel element from ctl_table array
  2023-10-02  8:55 ` Joel Granados via B4 Relay
  (?)
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  -1 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-kernel, xen-devel, linux-serial, linux-scsi,
	linuxppc-dev, linux-rdma, openipmi-developer, netdev, linux-raid,
	linux-hyperv, intel-gfx, dri-devel

From: Joel Granados <j.granados@samsung.com>

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 xpc_sys_xpc_hb and xpc_sys_xpc

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/misc/sgi-xp/xpc_main.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/misc/sgi-xp/xpc_main.c b/drivers/misc/sgi-xp/xpc_main.c
index 6da509d692bb..3186421e82c3 100644
--- a/drivers/misc/sgi-xp/xpc_main.c
+++ b/drivers/misc/sgi-xp/xpc_main.c
@@ -110,7 +110,6 @@ static struct ctl_table xpc_sys_xpc_hb[] = {
 	 .proc_handler = proc_dointvec_minmax,
 	 .extra1 = &xpc_hb_check_min_interval,
 	 .extra2 = &xpc_hb_check_max_interval},
-	{}
 };
 static struct ctl_table xpc_sys_xpc[] = {
 	{
@@ -121,7 +120,6 @@ static struct ctl_table xpc_sys_xpc[] = {
 	 .proc_handler = proc_dointvec_minmax,
 	 .extra1 = &xpc_disengage_min_timelimit,
 	 .extra2 = &xpc_disengage_max_timelimit},
-	{}
 };
 
 static struct ctl_table_header *xpc_sysctl;

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 11/15] sgi-xp: Remove the now superfluous sentinel element from ctl_table array
  2023-10-02  8:55 ` Joel Granados via B4 Relay
                   ` (13 preceding siblings ...)
  (?)
@ 2023-10-02  8:55 ` Joel Granados
  -1 siblings, 0 replies; 91+ messages in thread
From: Joel Granados @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-kernel, xen-devel, linux-serial, linux-scsi,
	linuxppc-dev, linux-rdma, openipmi-developer, netdev, linux-raid,
	linux-hyperv, intel-gfx, dri-devel

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 xpc_sys_xpc_hb and xpc_sys_xpc

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/misc/sgi-xp/xpc_main.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/misc/sgi-xp/xpc_main.c b/drivers/misc/sgi-xp/xpc_main.c
index 6da509d692bb..3186421e82c3 100644
--- a/drivers/misc/sgi-xp/xpc_main.c
+++ b/drivers/misc/sgi-xp/xpc_main.c
@@ -110,7 +110,6 @@ static struct ctl_table xpc_sys_xpc_hb[] = {
 	 .proc_handler = proc_dointvec_minmax,
 	 .extra1 = &xpc_hb_check_min_interval,
 	 .extra2 = &xpc_hb_check_max_interval},
-	{}
 };
 static struct ctl_table xpc_sys_xpc[] = {
 	{
@@ -121,7 +120,6 @@ static struct ctl_table xpc_sys_xpc[] = {
 	 .proc_handler = proc_dointvec_minmax,
 	 .extra1 = &xpc_disengage_min_timelimit,
 	 .extra2 = &xpc_disengage_max_timelimit},
-	{}
 };
 
 static struct ctl_table_header *xpc_sysctl;

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 11/15] sgi-xp: Remove the now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-hyperv, linux-scsi, linux-rdma, netdev,
	intel-gfx, linux-kernel, dri-devel, linux-raid, linux-serial,
	xen-devel, openipmi-developer, linuxppc-dev

From: Joel Granados <j.granados@samsung.com>

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 xpc_sys_xpc_hb and xpc_sys_xpc

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/misc/sgi-xp/xpc_main.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/misc/sgi-xp/xpc_main.c b/drivers/misc/sgi-xp/xpc_main.c
index 6da509d692bb..3186421e82c3 100644
--- a/drivers/misc/sgi-xp/xpc_main.c
+++ b/drivers/misc/sgi-xp/xpc_main.c
@@ -110,7 +110,6 @@ static struct ctl_table xpc_sys_xpc_hb[] = {
 	 .proc_handler = proc_dointvec_minmax,
 	 .extra1 = &xpc_hb_check_min_interval,
 	 .extra2 = &xpc_hb_check_max_interval},
-	{}
 };
 static struct ctl_table xpc_sys_xpc[] = {
 	{
@@ -121,7 +120,6 @@ static struct ctl_table xpc_sys_xpc[] = {
 	 .proc_handler = proc_dointvec_minmax,
 	 .extra1 = &xpc_disengage_min_timelimit,
 	 .extra2 = &xpc_disengage_max_timelimit},
-	{}
 };
 
 static struct ctl_table_header *xpc_sysctl;

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [Intel-gfx] [PATCH v2 11/15] sgi-xp: Remove the now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-hyperv, linux-scsi, linux-rdma, netdev,
	intel-gfx, linux-kernel, dri-devel, linux-raid, linux-serial,
	xen-devel, openipmi-developer, linuxppc-dev

From: Joel Granados <j.granados@samsung.com>

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 xpc_sys_xpc_hb and xpc_sys_xpc

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/misc/sgi-xp/xpc_main.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/misc/sgi-xp/xpc_main.c b/drivers/misc/sgi-xp/xpc_main.c
index 6da509d692bb..3186421e82c3 100644
--- a/drivers/misc/sgi-xp/xpc_main.c
+++ b/drivers/misc/sgi-xp/xpc_main.c
@@ -110,7 +110,6 @@ static struct ctl_table xpc_sys_xpc_hb[] = {
 	 .proc_handler = proc_dointvec_minmax,
 	 .extra1 = &xpc_hb_check_min_interval,
 	 .extra2 = &xpc_hb_check_max_interval},
-	{}
 };
 static struct ctl_table xpc_sys_xpc[] = {
 	{
@@ -121,7 +120,6 @@ static struct ctl_table xpc_sys_xpc[] = {
 	 .proc_handler = proc_dointvec_minmax,
 	 .extra1 = &xpc_disengage_min_timelimit,
 	 .extra2 = &xpc_disengage_max_timelimit},
-	{}
 };
 
 static struct ctl_table_header *xpc_sysctl;

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 12/15] fw loader: Remove the now superfluous sentinel element from ctl_table array
  2023-10-02  8:55 ` Joel Granados via B4 Relay
  (?)
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  -1 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-kernel, xen-devel, linux-serial, linux-scsi,
	linuxppc-dev, linux-rdma, openipmi-developer, netdev, linux-raid,
	linux-hyperv, intel-gfx, dri-devel

From: Joel Granados <j.granados@samsung.com>

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 firmware_config_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/base/firmware_loader/fallback_table.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/base/firmware_loader/fallback_table.c b/drivers/base/firmware_loader/fallback_table.c
index e5ac098d0742..8432ab2c3b3c 100644
--- a/drivers/base/firmware_loader/fallback_table.c
+++ b/drivers/base/firmware_loader/fallback_table.c
@@ -44,7 +44,6 @@ static struct ctl_table firmware_config_table[] = {
 		.extra1		= SYSCTL_ZERO,
 		.extra2		= SYSCTL_ONE,
 	},
-	{ }
 };
 
 static struct ctl_table_header *firmware_config_sysct_table_header;

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 12/15] fw loader: Remove the now superfluous sentinel element from ctl_table array
  2023-10-02  8:55 ` Joel Granados via B4 Relay
                   ` (15 preceding siblings ...)
  (?)
@ 2023-10-02  8:55 ` Joel Granados
  -1 siblings, 0 replies; 91+ messages in thread
From: Joel Granados @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-kernel, xen-devel, linux-serial, linux-scsi,
	linuxppc-dev, linux-rdma, openipmi-developer, netdev, linux-raid,
	linux-hyperv, intel-gfx, dri-devel

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 firmware_config_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/base/firmware_loader/fallback_table.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/base/firmware_loader/fallback_table.c b/drivers/base/firmware_loader/fallback_table.c
index e5ac098d0742..8432ab2c3b3c 100644
--- a/drivers/base/firmware_loader/fallback_table.c
+++ b/drivers/base/firmware_loader/fallback_table.c
@@ -44,7 +44,6 @@ static struct ctl_table firmware_config_table[] = {
 		.extra1		= SYSCTL_ZERO,
 		.extra2		= SYSCTL_ONE,
 	},
-	{ }
 };
 
 static struct ctl_table_header *firmware_config_sysct_table_header;

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 12/15] fw loader: Remove the now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-hyperv, linux-scsi, linux-rdma, netdev,
	intel-gfx, linux-kernel, dri-devel, linux-raid, linux-serial,
	xen-devel, openipmi-developer, linuxppc-dev

From: Joel Granados <j.granados@samsung.com>

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 firmware_config_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/base/firmware_loader/fallback_table.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/base/firmware_loader/fallback_table.c b/drivers/base/firmware_loader/fallback_table.c
index e5ac098d0742..8432ab2c3b3c 100644
--- a/drivers/base/firmware_loader/fallback_table.c
+++ b/drivers/base/firmware_loader/fallback_table.c
@@ -44,7 +44,6 @@ static struct ctl_table firmware_config_table[] = {
 		.extra1		= SYSCTL_ZERO,
 		.extra2		= SYSCTL_ONE,
 	},
-	{ }
 };
 
 static struct ctl_table_header *firmware_config_sysct_table_header;

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [Intel-gfx] [PATCH v2 12/15] fw loader: Remove the now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-hyperv, linux-scsi, linux-rdma, netdev,
	intel-gfx, linux-kernel, dri-devel, linux-raid, linux-serial,
	xen-devel, openipmi-developer, linuxppc-dev

From: Joel Granados <j.granados@samsung.com>

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 firmware_config_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/base/firmware_loader/fallback_table.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/base/firmware_loader/fallback_table.c b/drivers/base/firmware_loader/fallback_table.c
index e5ac098d0742..8432ab2c3b3c 100644
--- a/drivers/base/firmware_loader/fallback_table.c
+++ b/drivers/base/firmware_loader/fallback_table.c
@@ -44,7 +44,6 @@ static struct ctl_table firmware_config_table[] = {
 		.extra1		= SYSCTL_ZERO,
 		.extra2		= SYSCTL_ONE,
 	},
-	{ }
 };
 
 static struct ctl_table_header *firmware_config_sysct_table_header;

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 13/15] raid: Remove now superfluous sentinel element from ctl_table array
  2023-10-02  8:55 ` Joel Granados via B4 Relay
  (?)
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  -1 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-kernel, xen-devel, linux-serial, linux-scsi,
	linuxppc-dev, linux-rdma, openipmi-developer, netdev, linux-raid,
	linux-hyperv, intel-gfx, dri-devel

From: Joel Granados <j.granados@samsung.com>

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 raid_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/md/md.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/md/md.c b/drivers/md/md.c
index a104a025084d..3bdff9e03188 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -305,7 +305,6 @@ static struct ctl_table raid_table[] = {
 		.mode		= S_IRUGO|S_IWUSR,
 		.proc_handler	= proc_dointvec,
 	},
-	{ }
 };
 
 static int start_readonly;

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 13/15] raid: Remove now superfluous sentinel element from ctl_table array
  2023-10-02  8:55 ` Joel Granados via B4 Relay
                   ` (18 preceding siblings ...)
  (?)
@ 2023-10-02  8:55 ` Joel Granados
  -1 siblings, 0 replies; 91+ messages in thread
From: Joel Granados @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-kernel, xen-devel, linux-serial, linux-scsi,
	linuxppc-dev, linux-rdma, openipmi-developer, netdev, linux-raid,
	linux-hyperv, intel-gfx, dri-devel

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 raid_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/md/md.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/md/md.c b/drivers/md/md.c
index a104a025084d..3bdff9e03188 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -305,7 +305,6 @@ static struct ctl_table raid_table[] = {
 		.mode		= S_IRUGO|S_IWUSR,
 		.proc_handler	= proc_dointvec,
 	},
-	{ }
 };
 
 static int start_readonly;

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 13/15] raid: Remove now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-hyperv, linux-scsi, linux-rdma, netdev,
	intel-gfx, linux-kernel, dri-devel, linux-raid, linux-serial,
	xen-devel, openipmi-developer, linuxppc-dev

From: Joel Granados <j.granados@samsung.com>

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 raid_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/md/md.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/md/md.c b/drivers/md/md.c
index a104a025084d..3bdff9e03188 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -305,7 +305,6 @@ static struct ctl_table raid_table[] = {
 		.mode		= S_IRUGO|S_IWUSR,
 		.proc_handler	= proc_dointvec,
 	},
-	{ }
 };
 
 static int start_readonly;

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [Intel-gfx] [PATCH v2 13/15] raid: Remove now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-hyperv, linux-scsi, linux-rdma, netdev,
	intel-gfx, linux-kernel, dri-devel, linux-raid, linux-serial,
	xen-devel, openipmi-developer, linuxppc-dev

From: Joel Granados <j.granados@samsung.com>

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 raid_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/md/md.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/md/md.c b/drivers/md/md.c
index a104a025084d..3bdff9e03188 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -305,7 +305,6 @@ static struct ctl_table raid_table[] = {
 		.mode		= S_IRUGO|S_IWUSR,
 		.proc_handler	= proc_dointvec,
 	},
-	{ }
 };
 
 static int start_readonly;

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 14/15] Drivers: hv: Remove now superfluous sentinel element from ctl_table array
  2023-10-02  8:55 ` Joel Granados via B4 Relay
  (?)
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  -1 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-kernel, xen-devel, linux-serial, linux-scsi,
	linuxppc-dev, linux-rdma, openipmi-developer, netdev, linux-raid,
	linux-hyperv, intel-gfx, dri-devel

From: Joel Granados <j.granados@samsung.com>

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 hv_ctl_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/hv/hv_common.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/hv/hv_common.c b/drivers/hv/hv_common.c
index ccad7bca3fd3..4372f5d146ab 100644
--- a/drivers/hv/hv_common.c
+++ b/drivers/hv/hv_common.c
@@ -148,7 +148,6 @@ static struct ctl_table hv_ctl_table[] = {
 		.extra1		= SYSCTL_ZERO,
 		.extra2		= SYSCTL_ONE
 	},
-	{}
 };
 
 static int hv_die_panic_notify_crash(struct notifier_block *self,

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 14/15] Drivers: hv: Remove now superfluous sentinel element from ctl_table array
  2023-10-02  8:55 ` Joel Granados via B4 Relay
                   ` (20 preceding siblings ...)
  (?)
@ 2023-10-02  8:55 ` Joel Granados
  -1 siblings, 0 replies; 91+ messages in thread
From: Joel Granados @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-kernel, xen-devel, linux-serial, linux-scsi,
	linuxppc-dev, linux-rdma, openipmi-developer, netdev, linux-raid,
	linux-hyperv, intel-gfx, dri-devel

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 hv_ctl_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/hv/hv_common.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/hv/hv_common.c b/drivers/hv/hv_common.c
index ccad7bca3fd3..4372f5d146ab 100644
--- a/drivers/hv/hv_common.c
+++ b/drivers/hv/hv_common.c
@@ -148,7 +148,6 @@ static struct ctl_table hv_ctl_table[] = {
 		.extra1		= SYSCTL_ZERO,
 		.extra2		= SYSCTL_ONE
 	},
-	{}
 };
 
 static int hv_die_panic_notify_crash(struct notifier_block *self,

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 14/15] Drivers: hv: Remove now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-hyperv, linux-scsi, linux-rdma, netdev,
	intel-gfx, linux-kernel, dri-devel, linux-raid, linux-serial,
	xen-devel, openipmi-developer, linuxppc-dev

From: Joel Granados <j.granados@samsung.com>

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 hv_ctl_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/hv/hv_common.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/hv/hv_common.c b/drivers/hv/hv_common.c
index ccad7bca3fd3..4372f5d146ab 100644
--- a/drivers/hv/hv_common.c
+++ b/drivers/hv/hv_common.c
@@ -148,7 +148,6 @@ static struct ctl_table hv_ctl_table[] = {
 		.extra1		= SYSCTL_ZERO,
 		.extra2		= SYSCTL_ONE
 	},
-	{}
 };
 
 static int hv_die_panic_notify_crash(struct notifier_block *self,

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [Intel-gfx] [PATCH v2 14/15] Drivers: hv: Remove now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-hyperv, linux-scsi, linux-rdma, netdev,
	intel-gfx, linux-kernel, dri-devel, linux-raid, linux-serial,
	xen-devel, openipmi-developer, linuxppc-dev

From: Joel Granados <j.granados@samsung.com>

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 hv_ctl_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/hv/hv_common.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/hv/hv_common.c b/drivers/hv/hv_common.c
index ccad7bca3fd3..4372f5d146ab 100644
--- a/drivers/hv/hv_common.c
+++ b/drivers/hv/hv_common.c
@@ -148,7 +148,6 @@ static struct ctl_table hv_ctl_table[] = {
 		.extra1		= SYSCTL_ZERO,
 		.extra2		= SYSCTL_ONE
 	},
-	{}
 };
 
 static int hv_die_panic_notify_crash(struct notifier_block *self,

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 15/15] intel drm: Remove now superfluous sentinel element from ctl_table array
  2023-10-02  8:55 ` Joel Granados via B4 Relay
  (?)
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  -1 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-kernel, xen-devel, linux-serial, linux-scsi,
	linuxppc-dev, linux-rdma, openipmi-developer, netdev, linux-raid,
	linux-hyperv, intel-gfx, dri-devel

From: Joel Granados <j.granados@samsung.com>

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 oa_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/gpu/drm/i915/i915_perf.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/i915_perf.c b/drivers/gpu/drm/i915/i915_perf.c
index 04bc1f4a1115..23e769aa214c 100644
--- a/drivers/gpu/drm/i915/i915_perf.c
+++ b/drivers/gpu/drm/i915/i915_perf.c
@@ -4896,7 +4896,6 @@ static struct ctl_table oa_table[] = {
 	 .extra1 = SYSCTL_ZERO,
 	 .extra2 = &oa_sample_rate_hard_limit,
 	 },
-	{}
 };
 
 static u32 num_perf_groups_per_gt(struct intel_gt *gt)

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 15/15] intel drm: Remove now superfluous sentinel element from ctl_table array
  2023-10-02  8:55 ` Joel Granados via B4 Relay
                   ` (21 preceding siblings ...)
  (?)
@ 2023-10-02  8:55 ` Joel Granados
  -1 siblings, 0 replies; 91+ messages in thread
From: Joel Granados @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-kernel, xen-devel, linux-serial, linux-scsi,
	linuxppc-dev, linux-rdma, openipmi-developer, netdev, linux-raid,
	linux-hyperv, intel-gfx, dri-devel

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 oa_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/gpu/drm/i915/i915_perf.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/i915_perf.c b/drivers/gpu/drm/i915/i915_perf.c
index 04bc1f4a1115..23e769aa214c 100644
--- a/drivers/gpu/drm/i915/i915_perf.c
+++ b/drivers/gpu/drm/i915/i915_perf.c
@@ -4896,7 +4896,6 @@ static struct ctl_table oa_table[] = {
 	 .extra1 = SYSCTL_ZERO,
 	 .extra2 = &oa_sample_rate_hard_limit,
 	 },
-	{}
 };
 
 static u32 num_perf_groups_per_gt(struct intel_gt *gt)

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [PATCH v2 15/15] intel drm: Remove now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-hyperv, linux-scsi, linux-rdma, netdev,
	intel-gfx, linux-kernel, dri-devel, linux-raid, linux-serial,
	xen-devel, openipmi-developer, linuxppc-dev

From: Joel Granados <j.granados@samsung.com>

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 oa_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/gpu/drm/i915/i915_perf.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/i915_perf.c b/drivers/gpu/drm/i915/i915_perf.c
index 04bc1f4a1115..23e769aa214c 100644
--- a/drivers/gpu/drm/i915/i915_perf.c
+++ b/drivers/gpu/drm/i915/i915_perf.c
@@ -4896,7 +4896,6 @@ static struct ctl_table oa_table[] = {
 	 .extra1 = SYSCTL_ZERO,
 	 .extra2 = &oa_sample_rate_hard_limit,
 	 },
-	{}
 };
 
 static u32 num_perf_groups_per_gt(struct intel_gt *gt)

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* [Intel-gfx] [PATCH v2 15/15] intel drm: Remove now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:55   ` Joel Granados via B4 Relay
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados via B4 Relay @ 2023-10-02  8:55 UTC (permalink / raw)
  To: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: Joel Granados, linux-hyperv, linux-scsi, linux-rdma, netdev,
	intel-gfx, linux-kernel, dri-devel, linux-raid, linux-serial,
	xen-devel, openipmi-developer, linuxppc-dev

From: Joel Granados <j.granados@samsung.com>

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 oa_table

Signed-off-by: Joel Granados <j.granados@samsung.com>
---
 drivers/gpu/drm/i915/i915_perf.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/i915_perf.c b/drivers/gpu/drm/i915/i915_perf.c
index 04bc1f4a1115..23e769aa214c 100644
--- a/drivers/gpu/drm/i915/i915_perf.c
+++ b/drivers/gpu/drm/i915/i915_perf.c
@@ -4896,7 +4896,6 @@ static struct ctl_table oa_table[] = {
 	 .extra1 = SYSCTL_ZERO,
 	 .extra2 = &oa_sample_rate_hard_limit,
 	 },
-	{}
 };
 
 static u32 num_perf_groups_per_gt(struct intel_gt *gt)

-- 
2.30.2


^ permalink raw reply related	[flat|nested] 91+ messages in thread

* Re: [PATCH v2 04/15] tty: Remove now superfluous sentinel element from ctl_table array
  2023-10-02  8:55   ` Joel Granados via B4 Relay
  (?)
@ 2023-10-02  8:58     ` Jiri Slaby
  -1 siblings, 0 replies; 91+ messages in thread
From: Jiri Slaby @ 2023-10-02  8:58 UTC (permalink / raw)
  To: j.granados, Luis Chamberlain, willy, josh, Kees Cook,
	Phillip Potter, Clemens Ladisch, Arnd Bergmann,
	Greg Kroah-Hartman, Juergen Gross, Stefano Stabellini,
	Oleksandr Tyshchenko, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: linux-kernel, xen-devel, linux-serial, linux-scsi, linuxppc-dev,
	linux-rdma, openipmi-developer, netdev, linux-raid, linux-hyperv,
	intel-gfx, dri-devel

On 02. 10. 23, 10:55, Joel Granados via B4 Relay wrote:
> From: Joel Granados <j.granados@samsung.com>
> 
> 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 tty_table
> 
> Signed-off-by: Joel Granados <j.granados@samsung.com>

Reviewed-by: Jiri Slaby <jirislaby@kernel.org>

thanks,
-- 
js
suse labs


^ permalink raw reply	[flat|nested] 91+ messages in thread

* Re: [PATCH v2 04/15] tty: Remove now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:58     ` Jiri Slaby
  0 siblings, 0 replies; 91+ messages in thread
From: Jiri Slaby @ 2023-10-02  8:58 UTC (permalink / raw)
  To: j.granados, Luis Chamberlain, willy, josh, Kees Cook,
	Phillip Potter, Clemens Ladisch, Arnd Bergmann,
	Greg Kroah-Hartman, Juergen Gross, Stefano Stabellini,
	Oleksandr Tyshchenko, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: linux-hyperv, linux-scsi, linux-rdma, netdev, intel-gfx,
	linux-kernel, dri-devel, linux-raid, linux-serial, xen-devel,
	openipmi-developer, linuxppc-dev

On 02. 10. 23, 10:55, Joel Granados via B4 Relay wrote:
> From: Joel Granados <j.granados@samsung.com>
> 
> 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 tty_table
> 
> Signed-off-by: Joel Granados <j.granados@samsung.com>

Reviewed-by: Jiri Slaby <jirislaby@kernel.org>

thanks,
-- 
js
suse labs


^ permalink raw reply	[flat|nested] 91+ messages in thread

* Re: [Intel-gfx] [PATCH v2 04/15] tty: Remove now superfluous sentinel element from ctl_table array
@ 2023-10-02  8:58     ` Jiri Slaby
  0 siblings, 0 replies; 91+ messages in thread
From: Jiri Slaby @ 2023-10-02  8:58 UTC (permalink / raw)
  To: j.granados, Luis Chamberlain, willy, josh, Kees Cook,
	Phillip Potter, Clemens Ladisch, Arnd Bergmann,
	Greg Kroah-Hartman, Juergen Gross, Stefano Stabellini,
	Oleksandr Tyshchenko, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter
  Cc: linux-hyperv, linux-scsi, linux-rdma, netdev, intel-gfx,
	linux-kernel, dri-devel, linux-raid, linux-serial, xen-devel,
	openipmi-developer, linuxppc-dev

On 02. 10. 23, 10:55, Joel Granados via B4 Relay wrote:
> From: Joel Granados <j.granados@samsung.com>
> 
> 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 tty_table
> 
> Signed-off-by: Joel Granados <j.granados@samsung.com>

Reviewed-by: Jiri Slaby <jirislaby@kernel.org>

thanks,
-- 
js
suse labs


^ permalink raw reply	[flat|nested] 91+ messages in thread

* Re: [PATCH v2 00/15] sysctl: Remove sentinel elements from drivers
  2023-10-02  8:55 ` Joel Granados via B4 Relay
@ 2023-10-02 12:27   ` Christophe Leroy
  -1 siblings, 0 replies; 91+ messages in thread
From: Christophe Leroy @ 2023-10-02 12:27 UTC (permalink / raw)
  To: j.granados, Luis Chamberlain, willy, josh, Kees Cook,
	Phillip Potter, Clemens Ladisch, Arnd Bergmann,
	Greg Kroah-Hartman, Juergen Gross, Stefano Stabellini,
	Oleksandr Tyshchenko, Jiri Slaby, James E.J. Bottomley,
	Martin K. Petersen, Doug Gilbert, Sudip Mukherjee,
	Jason Gunthorpe, Leon Romanovsky, Corey Minyard,
	Theodore Ts'o, Jason A. Donenfeld, David Ahern,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Robin Holt, Steve Wahl, Russ Weight, Rafael J. Wysocki, Song Liu,
	K. Y. Srinivasan, Haiyang Zhang, Wei Liu, Dexuan Cui,
	Jani Nikula, Joonas Lahtinen, Rodrigo Vivi, Tvrtko Ursulin,
	David Airlie, Daniel Vetter
  Cc: linux-hyperv, linux-scsi, linux-rdma, netdev, intel-gfx,
	linux-kernel, dri-devel, linux-raid, linux-serial, xen-devel,
	openipmi-developer, linuxppc-dev



Le 02/10/2023 à 10:55, Joel Granados via B4 Relay a écrit :
> From: Joel Granados <j.granados@samsung.com>
> 
> What?
> These commits remove the sentinel element (last empty element) from the
> sysctl arrays of all the files under the "drivers/" directory that use a
> sysctl array for registration. The merging of the preparation patches
> (in https://lore.kernel.org/all/ZO5Yx5JFogGi%2FcBo@bombadil.infradead.org/)
> to mainline allows us to just remove sentinel elements without changing
> behavior (more info here [1]).
> 
> These commits are part of a bigger set (here
> https://github.com/Joelgranados/linux/tree/tag/sysctl_remove_empty_elem_V4)
> that remove the ctl_table sentinel. Make the review process easier by
> chunking the commits into manageable pieces. Each chunk can be reviewed
> separately without noise from parallel sets.
> 
> Now that the architecture chunk has been mostly reviewed [6], we send
> the "drivers/" directory. Once this one is done, it will be follwed by
> "fs/*", "kernel/*", "net/*" and miscellaneous. The final set will remove
> the unneeded check for ->procname == NULL.
> 
> Why?
> By removing the sysctl sentinel elements we avoid kernel bloat as
> ctl_table arrays get moved out of kernel/sysctl.c into their own
> respective subsystems. This move was started long ago to avoid merge
> conflicts; the sentinel removal bit came after Mathew Wilcox suggested
> it to avoid bloating the kernel by one element as arrays moved out. This
> patchset will reduce the overall build time size of the kernel and run
> time memory bloat by about ~64 bytes per declared ctl_table array. I
> have consolidated some links that shed light on the history of this
> effort [2].
> 
> Testing:
> * Ran sysctl selftests (./tools/testing/selftests/sysctl/sysctl.sh)
> * Ran this through 0-day with no errors or warnings
> 
> Size saving after removing all sentinels:
>    These are the bytes that we save after removing all the sentinels
>    (this plus all the other chunks). I included them to get an idea of
>    how much memory we are talking about.
>      * bloat-o-meter:
>          - The "yesall" configuration results save 9158 bytes
>            https://lore.kernel.org/all/20230621091000.424843-1-j.granados@samsung.com/
>          - The "tiny" config + CONFIG_SYSCTL save 1215 bytes
>            https://lore.kernel.org/all/20230809105006.1198165-1-j.granados@samsung.com/
>      * memory usage:
>          In memory savings are measured to be 7296 bytes. (here is how to
>          measure [3])
> 
> Size saving after this patchset:
>      * bloat-o-meter
>          - The "yesall" config saves 2432 bytes [4]
>          - The "tiny" config saves 64 bytes [5]
>      * memory usage:
>          In this case there were no bytes saved because I do not have any
>          of the drivers in the patch. To measure it comment the printk in
>          `new_dir` and uncomment the if conditional in `new_links` [3].
> 
> ---
> Changes in v2:
> - Left the dangling comma in the ctl_table arrays.
> - Link to v1: https://lore.kernel.org/r/20230928-jag-sysctl_remove_empty_elem_drivers-v1-0-e59120fca9f9@samsung.com
> 
> Comments/feedback greatly appreciated

Same problem on powerpc CI tests, all boot target failed, most of them 
with similar OOPS, see 
https://patchwork.ozlabs.org/project/linuxppc-dev/patch/20231002-jag-sysctl_remove_empty_elem_drivers-v2-15-02dd0d46f71e@samsung.com/

What is strange is that I pushed your series into my github account, and 
got no failure, see https://github.com/chleroy/linux/actions/runs/6378951278

Christophe

> 
> Best
> 
> Joel
> 
> [1]
> We are able to remove a sentinel table without behavioral change by
> introducing a table_size argument in the same place where procname is
> checked for NULL. The idea is for it to keep stopping when it hits
> ->procname == NULL, while the sentinel is still present. And when the
> sentinel is removed, it will stop on the table_size. You can go to
> (https://lore.kernel.org/all/20230809105006.1198165-1-j.granados@samsung.com/)
> for more information.
> 
> [2]
> Links Related to the ctl_table sentinel removal:
> * Good summary from Luis sent with the "pull request" for the
>    preparation patches.
>    https://lore.kernel.org/all/ZO5Yx5JFogGi%2FcBo@bombadil.infradead.org/
> * Another very good summary from Luis.
>    https://lore.kernel.org/all/ZMFizKFkVxUFtSqa@bombadil.infradead.org/
> * This is a patch set that replaces register_sysctl_table with register_sysctl
>    https://lore.kernel.org/all/20230302204612.782387-1-mcgrof@kernel.org/
> * Patch set to deprecate register_sysctl_paths()
>    https://lore.kernel.org/all/20230302202826.776286-1-mcgrof@kernel.org/
> * Here there is an explicit expectation for the removal of the sentinel element.
>    https://lore.kernel.org/all/20230321130908.6972-1-frank.li@vivo.com
> * The "ARRAY_SIZE" approach was mentioned (proposed?) in this thread
>    https://lore.kernel.org/all/20220220060626.15885-1-tangmeng@uniontech.com
> 
> [3]
> To measure the in memory savings apply this on top of this patchset.
> 
> "
> diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c
> index c88854df0b62..e0073a627bac 100644
> --- a/fs/proc/proc_sysctl.c
> +++ b/fs/proc/proc_sysctl.c
> @@ -976,6 +976,8 @@ static struct ctl_dir *new_dir(struct ctl_table_set *set,
>          table[0].procname = new_name;
>          table[0].mode = S_IFDIR|S_IRUGO|S_IXUGO;
>          init_header(&new->header, set->dir.header.root, set, node, table, 1);
> +       // Counts additional sentinel used for each new dir.
> +       printk("%ld sysctl saved mem kzalloc \n", sizeof(struct ctl_table));
> 
>          return new;
>   }
> @@ -1199,6 +1201,9 @@ static struct ctl_table_header *new_links(struct ctl_dir *dir, struct ctl_table_
>                  link_name += len;
>                  link++;
>          }
> +       // Counts additional sentinel used for each new registration
> +       //if ((head->ctl_table + head->ctl_table_size)->procname)
> +               printk("%ld sysctl saved mem kzalloc \n", sizeof(struct ctl_table));
>          init_header(links, dir->header.root, dir->header.set, node, link_table,
>                      head->ctl_table_size);
>          links->nreg = nr_entries;
> "
> and then run the following bash script in the kernel:
> 
> accum=0
> for n in $(dmesg | grep kzalloc | awk '{print $3}') ; do
>      echo $n
>      accum=$(calc "$accum + $n")
> done
> echo $accum
> 
> [4]
> add/remove: 0/0 grow/shrink: 0/21 up/down: 0/-2432 (-2432)
> Function                                     old     new   delta
> xpc_sys_xpc_hb                               192     128     -64
> xpc_sys_xpc                                  128      64     -64
> vrf_table                                    128      64     -64
> ucma_ctl_table                               128      64     -64
> tty_table                                    192     128     -64
> sg_sysctls                                   128      64     -64
> scsi_table                                   128      64     -64
> random_table                                 448     384     -64
> raid_table                                   192     128     -64
> oa_table                                     192     128     -64
> mac_hid_files                                256     192     -64
> iwcm_ctl_table                               128      64     -64
> ipmi_table                                   128      64     -64
> hv_ctl_table                                 128      64     -64
> hpet_table                                   128      64     -64
> firmware_config_table                        192     128     -64
> cdrom_table                                  448     384     -64
> balloon_table                                128      64     -64
> parport_sysctl_template                      912     720    -192
> parport_default_sysctl_table                 584     136    -448
> parport_device_sysctl_template               776     136    -640
> Total: Before=429940038, After=429937606, chg -0.00%
> 
> [5]
> add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-64 (-64)
> Function                                     old     new   delta
> random_table                                 448     384     -64
> Total: Before=1885527, After=1885463, chg -0.00%
> 
> [6] https://lore.kernel.org/all/20230913-jag-sysctl_remove_empty_elem_arch-v2-0-d1bd13a29bae@samsung.com/
> 
> Signed-off-by: Joel Granados <j.granados@samsung.com>
> 
> To: Luis Chamberlain <mcgrof@kernel.org>
> To: willy@infradead.org
> To: josh@joshtriplett.org
> To: Kees Cook <keescook@chromium.org>
> To: Phillip Potter <phil@philpotter.co.uk>
> To: Clemens Ladisch <clemens@ladisch.de>
> To: Arnd Bergmann <arnd@arndb.de>
> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> To: Juergen Gross <jgross@suse.com>
> To: Stefano Stabellini <sstabellini@kernel.org>
> To: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
> To: Jiri Slaby <jirislaby@kernel.org>
> To: "James E.J. Bottomley" <jejb@linux.ibm.com>
> To: "Martin K. Petersen" <martin.petersen@oracle.com>
> To: Doug Gilbert <dgilbert@interlog.com>
> To: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
> To: Jason Gunthorpe <jgg@ziepe.ca>
> To: Leon Romanovsky <leon@kernel.org>
> To: Corey Minyard <minyard@acm.org>
> To: Theodore Ts'o <tytso@mit.edu>
> To: "Jason A. Donenfeld" <Jason@zx2c4.com>
> To: David Ahern <dsahern@kernel.org>
> To: "David S. Miller" <davem@davemloft.net>
> To: Eric Dumazet <edumazet@google.com>
> To: Jakub Kicinski <kuba@kernel.org>
> To: Paolo Abeni <pabeni@redhat.com>
> To: Robin Holt <robinmholt@gmail.com>
> To: Steve Wahl <steve.wahl@hpe.com>
> To: Russ Weight <russell.h.weight@intel.com>
> To: "Rafael J. Wysocki" <rafael@kernel.org>
> To: Song Liu <song@kernel.org>
> To: "K. Y. Srinivasan" <kys@microsoft.com>
> To: Haiyang Zhang <haiyangz@microsoft.com>
> To: Wei Liu <wei.liu@kernel.org>
> To: Dexuan Cui <decui@microsoft.com>
> To: Jani Nikula <jani.nikula@linux.intel.com>
> To: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
> To: Rodrigo Vivi <rodrigo.vivi@intel.com>
> To: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
> To: David Airlie <airlied@gmail.com>
> To: Daniel Vetter <daniel@ffwll.ch>
> Cc: linux-kernel@vger.kernel.org
> Cc: xen-devel@lists.xenproject.org
> Cc: linux-serial@vger.kernel.org
> Cc: linux-scsi@vger.kernel.org
> Cc: linuxppc-dev@lists.ozlabs.org
> Cc: linux-rdma@vger.kernel.org
> Cc: openipmi-developer@lists.sourceforge.net
> Cc: netdev@vger.kernel.org
> Cc: linux-raid@vger.kernel.org
> Cc: linux-hyperv@vger.kernel.org
> Cc: intel-gfx@lists.freedesktop.org
> Cc: dri-devel@lists.freedesktop.org
> 
> ---
> 
> ---
> Joel Granados (15):
>        cdrom: Remove now superfluous sentinel element from ctl_table array
>        hpet: Remove now superfluous sentinel element from ctl_table array
>        xen: Remove now superfluous sentinel element from ctl_table array
>        tty: Remove now superfluous sentinel element from ctl_table array
>        scsi: Remove now superfluous sentinel element from ctl_table array
>        parport: Remove the now superfluous sentinel element from ctl_table array
>        macintosh: Remove the now superfluous sentinel element from ctl_table array
>        infiniband: Remove the now superfluous sentinel element from ctl_table array
>        char-misc: Remove the now superfluous sentinel element from ctl_table array
>        vrf: Remove the now superfluous sentinel element from ctl_table array
>        sgi-xp: Remove the now superfluous sentinel element from ctl_table array
>        fw loader: Remove the now superfluous sentinel element from ctl_table array
>        raid: Remove now superfluous sentinel element from ctl_table array
>        Drivers: hv: Remove now superfluous sentinel element from ctl_table array
>        intel drm: Remove now superfluous sentinel element from ctl_table array
> 
>   drivers/base/firmware_loader/fallback_table.c |  1 -
>   drivers/cdrom/cdrom.c                         |  1 -
>   drivers/char/hpet.c                           |  1 -
>   drivers/char/ipmi/ipmi_poweroff.c             |  1 -
>   drivers/char/random.c                         |  1 -
>   drivers/gpu/drm/i915/i915_perf.c              |  1 -
>   drivers/hv/hv_common.c                        |  1 -
>   drivers/infiniband/core/iwcm.c                |  1 -
>   drivers/infiniband/core/ucma.c                |  1 -
>   drivers/macintosh/mac_hid.c                   |  1 -
>   drivers/md/md.c                               |  1 -
>   drivers/misc/sgi-xp/xpc_main.c                |  2 --
>   drivers/net/vrf.c                             |  1 -
>   drivers/parport/procfs.c                      | 28 +++++++++++----------------
>   drivers/scsi/scsi_sysctl.c                    |  1 -
>   drivers/scsi/sg.c                             |  1 -
>   drivers/tty/tty_io.c                          |  1 -
>   drivers/xen/balloon.c                         |  1 -
>   18 files changed, 11 insertions(+), 35 deletions(-)
> ---
> base-commit: 0e945134b680040b8613e962f586d91b6d40292d
> change-id: 20230927-jag-sysctl_remove_empty_elem_drivers-f034962a0d8c
> 
> Best regards,

^ permalink raw reply	[flat|nested] 91+ messages in thread

* Re: [Intel-gfx] [PATCH v2 00/15] sysctl: Remove sentinel elements from drivers
@ 2023-10-02 12:27   ` Christophe Leroy
  0 siblings, 0 replies; 91+ messages in thread
From: Christophe Leroy @ 2023-10-02 12:27 UTC (permalink / raw)
  To: j.granados, Luis Chamberlain, willy, josh, Kees Cook,
	Phillip Potter, Clemens Ladisch, Arnd Bergmann,
	Greg Kroah-Hartman, Juergen Gross, Stefano Stabellini,
	Oleksandr Tyshchenko, Jiri Slaby, James E.J. Bottomley,
	Martin K. Petersen, Doug Gilbert, Sudip Mukherjee,
	Jason Gunthorpe, Leon Romanovsky, Corey Minyard,
	Theodore Ts'o, Jason A. Donenfeld, David Ahern,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Robin Holt, Steve Wahl, Russ Weight, Rafael J. Wysocki, Song Liu,
	K. Y. Srinivasan, Haiyang Zhang, Wei Liu, Dexuan Cui,
	Jani Nikula, Joonas Lahtinen, Rodrigo Vivi, Tvrtko Ursulin,
	David Airlie, Daniel Vetter
  Cc: linux-hyperv, linux-scsi, linux-rdma, netdev, intel-gfx,
	linux-kernel, dri-devel, linux-raid, linux-serial, xen-devel,
	openipmi-developer, linuxppc-dev



Le 02/10/2023 à 10:55, Joel Granados via B4 Relay a écrit :
> From: Joel Granados <j.granados@samsung.com>
> 
> What?
> These commits remove the sentinel element (last empty element) from the
> sysctl arrays of all the files under the "drivers/" directory that use a
> sysctl array for registration. The merging of the preparation patches
> (in https://lore.kernel.org/all/ZO5Yx5JFogGi%2FcBo@bombadil.infradead.org/)
> to mainline allows us to just remove sentinel elements without changing
> behavior (more info here [1]).
> 
> These commits are part of a bigger set (here
> https://github.com/Joelgranados/linux/tree/tag/sysctl_remove_empty_elem_V4)
> that remove the ctl_table sentinel. Make the review process easier by
> chunking the commits into manageable pieces. Each chunk can be reviewed
> separately without noise from parallel sets.
> 
> Now that the architecture chunk has been mostly reviewed [6], we send
> the "drivers/" directory. Once this one is done, it will be follwed by
> "fs/*", "kernel/*", "net/*" and miscellaneous. The final set will remove
> the unneeded check for ->procname == NULL.
> 
> Why?
> By removing the sysctl sentinel elements we avoid kernel bloat as
> ctl_table arrays get moved out of kernel/sysctl.c into their own
> respective subsystems. This move was started long ago to avoid merge
> conflicts; the sentinel removal bit came after Mathew Wilcox suggested
> it to avoid bloating the kernel by one element as arrays moved out. This
> patchset will reduce the overall build time size of the kernel and run
> time memory bloat by about ~64 bytes per declared ctl_table array. I
> have consolidated some links that shed light on the history of this
> effort [2].
> 
> Testing:
> * Ran sysctl selftests (./tools/testing/selftests/sysctl/sysctl.sh)
> * Ran this through 0-day with no errors or warnings
> 
> Size saving after removing all sentinels:
>    These are the bytes that we save after removing all the sentinels
>    (this plus all the other chunks). I included them to get an idea of
>    how much memory we are talking about.
>      * bloat-o-meter:
>          - The "yesall" configuration results save 9158 bytes
>            https://lore.kernel.org/all/20230621091000.424843-1-j.granados@samsung.com/
>          - The "tiny" config + CONFIG_SYSCTL save 1215 bytes
>            https://lore.kernel.org/all/20230809105006.1198165-1-j.granados@samsung.com/
>      * memory usage:
>          In memory savings are measured to be 7296 bytes. (here is how to
>          measure [3])
> 
> Size saving after this patchset:
>      * bloat-o-meter
>          - The "yesall" config saves 2432 bytes [4]
>          - The "tiny" config saves 64 bytes [5]
>      * memory usage:
>          In this case there were no bytes saved because I do not have any
>          of the drivers in the patch. To measure it comment the printk in
>          `new_dir` and uncomment the if conditional in `new_links` [3].
> 
> ---
> Changes in v2:
> - Left the dangling comma in the ctl_table arrays.
> - Link to v1: https://lore.kernel.org/r/20230928-jag-sysctl_remove_empty_elem_drivers-v1-0-e59120fca9f9@samsung.com
> 
> Comments/feedback greatly appreciated

Same problem on powerpc CI tests, all boot target failed, most of them 
with similar OOPS, see 
https://patchwork.ozlabs.org/project/linuxppc-dev/patch/20231002-jag-sysctl_remove_empty_elem_drivers-v2-15-02dd0d46f71e@samsung.com/

What is strange is that I pushed your series into my github account, and 
got no failure, see https://github.com/chleroy/linux/actions/runs/6378951278

Christophe

> 
> Best
> 
> Joel
> 
> [1]
> We are able to remove a sentinel table without behavioral change by
> introducing a table_size argument in the same place where procname is
> checked for NULL. The idea is for it to keep stopping when it hits
> ->procname == NULL, while the sentinel is still present. And when the
> sentinel is removed, it will stop on the table_size. You can go to
> (https://lore.kernel.org/all/20230809105006.1198165-1-j.granados@samsung.com/)
> for more information.
> 
> [2]
> Links Related to the ctl_table sentinel removal:
> * Good summary from Luis sent with the "pull request" for the
>    preparation patches.
>    https://lore.kernel.org/all/ZO5Yx5JFogGi%2FcBo@bombadil.infradead.org/
> * Another very good summary from Luis.
>    https://lore.kernel.org/all/ZMFizKFkVxUFtSqa@bombadil.infradead.org/
> * This is a patch set that replaces register_sysctl_table with register_sysctl
>    https://lore.kernel.org/all/20230302204612.782387-1-mcgrof@kernel.org/
> * Patch set to deprecate register_sysctl_paths()
>    https://lore.kernel.org/all/20230302202826.776286-1-mcgrof@kernel.org/
> * Here there is an explicit expectation for the removal of the sentinel element.
>    https://lore.kernel.org/all/20230321130908.6972-1-frank.li@vivo.com
> * The "ARRAY_SIZE" approach was mentioned (proposed?) in this thread
>    https://lore.kernel.org/all/20220220060626.15885-1-tangmeng@uniontech.com
> 
> [3]
> To measure the in memory savings apply this on top of this patchset.
> 
> "
> diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c
> index c88854df0b62..e0073a627bac 100644
> --- a/fs/proc/proc_sysctl.c
> +++ b/fs/proc/proc_sysctl.c
> @@ -976,6 +976,8 @@ static struct ctl_dir *new_dir(struct ctl_table_set *set,
>          table[0].procname = new_name;
>          table[0].mode = S_IFDIR|S_IRUGO|S_IXUGO;
>          init_header(&new->header, set->dir.header.root, set, node, table, 1);
> +       // Counts additional sentinel used for each new dir.
> +       printk("%ld sysctl saved mem kzalloc \n", sizeof(struct ctl_table));
> 
>          return new;
>   }
> @@ -1199,6 +1201,9 @@ static struct ctl_table_header *new_links(struct ctl_dir *dir, struct ctl_table_
>                  link_name += len;
>                  link++;
>          }
> +       // Counts additional sentinel used for each new registration
> +       //if ((head->ctl_table + head->ctl_table_size)->procname)
> +               printk("%ld sysctl saved mem kzalloc \n", sizeof(struct ctl_table));
>          init_header(links, dir->header.root, dir->header.set, node, link_table,
>                      head->ctl_table_size);
>          links->nreg = nr_entries;
> "
> and then run the following bash script in the kernel:
> 
> accum=0
> for n in $(dmesg | grep kzalloc | awk '{print $3}') ; do
>      echo $n
>      accum=$(calc "$accum + $n")
> done
> echo $accum
> 
> [4]
> add/remove: 0/0 grow/shrink: 0/21 up/down: 0/-2432 (-2432)
> Function                                     old     new   delta
> xpc_sys_xpc_hb                               192     128     -64
> xpc_sys_xpc                                  128      64     -64
> vrf_table                                    128      64     -64
> ucma_ctl_table                               128      64     -64
> tty_table                                    192     128     -64
> sg_sysctls                                   128      64     -64
> scsi_table                                   128      64     -64
> random_table                                 448     384     -64
> raid_table                                   192     128     -64
> oa_table                                     192     128     -64
> mac_hid_files                                256     192     -64
> iwcm_ctl_table                               128      64     -64
> ipmi_table                                   128      64     -64
> hv_ctl_table                                 128      64     -64
> hpet_table                                   128      64     -64
> firmware_config_table                        192     128     -64
> cdrom_table                                  448     384     -64
> balloon_table                                128      64     -64
> parport_sysctl_template                      912     720    -192
> parport_default_sysctl_table                 584     136    -448
> parport_device_sysctl_template               776     136    -640
> Total: Before=429940038, After=429937606, chg -0.00%
> 
> [5]
> add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-64 (-64)
> Function                                     old     new   delta
> random_table                                 448     384     -64
> Total: Before=1885527, After=1885463, chg -0.00%
> 
> [6] https://lore.kernel.org/all/20230913-jag-sysctl_remove_empty_elem_arch-v2-0-d1bd13a29bae@samsung.com/
> 
> Signed-off-by: Joel Granados <j.granados@samsung.com>
> 
> To: Luis Chamberlain <mcgrof@kernel.org>
> To: willy@infradead.org
> To: josh@joshtriplett.org
> To: Kees Cook <keescook@chromium.org>
> To: Phillip Potter <phil@philpotter.co.uk>
> To: Clemens Ladisch <clemens@ladisch.de>
> To: Arnd Bergmann <arnd@arndb.de>
> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> To: Juergen Gross <jgross@suse.com>
> To: Stefano Stabellini <sstabellini@kernel.org>
> To: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
> To: Jiri Slaby <jirislaby@kernel.org>
> To: "James E.J. Bottomley" <jejb@linux.ibm.com>
> To: "Martin K. Petersen" <martin.petersen@oracle.com>
> To: Doug Gilbert <dgilbert@interlog.com>
> To: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
> To: Jason Gunthorpe <jgg@ziepe.ca>
> To: Leon Romanovsky <leon@kernel.org>
> To: Corey Minyard <minyard@acm.org>
> To: Theodore Ts'o <tytso@mit.edu>
> To: "Jason A. Donenfeld" <Jason@zx2c4.com>
> To: David Ahern <dsahern@kernel.org>
> To: "David S. Miller" <davem@davemloft.net>
> To: Eric Dumazet <edumazet@google.com>
> To: Jakub Kicinski <kuba@kernel.org>
> To: Paolo Abeni <pabeni@redhat.com>
> To: Robin Holt <robinmholt@gmail.com>
> To: Steve Wahl <steve.wahl@hpe.com>
> To: Russ Weight <russell.h.weight@intel.com>
> To: "Rafael J. Wysocki" <rafael@kernel.org>
> To: Song Liu <song@kernel.org>
> To: "K. Y. Srinivasan" <kys@microsoft.com>
> To: Haiyang Zhang <haiyangz@microsoft.com>
> To: Wei Liu <wei.liu@kernel.org>
> To: Dexuan Cui <decui@microsoft.com>
> To: Jani Nikula <jani.nikula@linux.intel.com>
> To: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
> To: Rodrigo Vivi <rodrigo.vivi@intel.com>
> To: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
> To: David Airlie <airlied@gmail.com>
> To: Daniel Vetter <daniel@ffwll.ch>
> Cc: linux-kernel@vger.kernel.org
> Cc: xen-devel@lists.xenproject.org
> Cc: linux-serial@vger.kernel.org
> Cc: linux-scsi@vger.kernel.org
> Cc: linuxppc-dev@lists.ozlabs.org
> Cc: linux-rdma@vger.kernel.org
> Cc: openipmi-developer@lists.sourceforge.net
> Cc: netdev@vger.kernel.org
> Cc: linux-raid@vger.kernel.org
> Cc: linux-hyperv@vger.kernel.org
> Cc: intel-gfx@lists.freedesktop.org
> Cc: dri-devel@lists.freedesktop.org
> 
> ---
> 
> ---
> Joel Granados (15):
>        cdrom: Remove now superfluous sentinel element from ctl_table array
>        hpet: Remove now superfluous sentinel element from ctl_table array
>        xen: Remove now superfluous sentinel element from ctl_table array
>        tty: Remove now superfluous sentinel element from ctl_table array
>        scsi: Remove now superfluous sentinel element from ctl_table array
>        parport: Remove the now superfluous sentinel element from ctl_table array
>        macintosh: Remove the now superfluous sentinel element from ctl_table array
>        infiniband: Remove the now superfluous sentinel element from ctl_table array
>        char-misc: Remove the now superfluous sentinel element from ctl_table array
>        vrf: Remove the now superfluous sentinel element from ctl_table array
>        sgi-xp: Remove the now superfluous sentinel element from ctl_table array
>        fw loader: Remove the now superfluous sentinel element from ctl_table array
>        raid: Remove now superfluous sentinel element from ctl_table array
>        Drivers: hv: Remove now superfluous sentinel element from ctl_table array
>        intel drm: Remove now superfluous sentinel element from ctl_table array
> 
>   drivers/base/firmware_loader/fallback_table.c |  1 -
>   drivers/cdrom/cdrom.c                         |  1 -
>   drivers/char/hpet.c                           |  1 -
>   drivers/char/ipmi/ipmi_poweroff.c             |  1 -
>   drivers/char/random.c                         |  1 -
>   drivers/gpu/drm/i915/i915_perf.c              |  1 -
>   drivers/hv/hv_common.c                        |  1 -
>   drivers/infiniband/core/iwcm.c                |  1 -
>   drivers/infiniband/core/ucma.c                |  1 -
>   drivers/macintosh/mac_hid.c                   |  1 -
>   drivers/md/md.c                               |  1 -
>   drivers/misc/sgi-xp/xpc_main.c                |  2 --
>   drivers/net/vrf.c                             |  1 -
>   drivers/parport/procfs.c                      | 28 +++++++++++----------------
>   drivers/scsi/scsi_sysctl.c                    |  1 -
>   drivers/scsi/sg.c                             |  1 -
>   drivers/tty/tty_io.c                          |  1 -
>   drivers/xen/balloon.c                         |  1 -
>   18 files changed, 11 insertions(+), 35 deletions(-)
> ---
> base-commit: 0e945134b680040b8613e962f586d91b6d40292d
> change-id: 20230927-jag-sysctl_remove_empty_elem_drivers-f034962a0d8c
> 
> Best regards,

^ permalink raw reply	[flat|nested] 91+ messages in thread

* Re: [PATCH v2 10/15] vrf: Remove the now superfluous sentinel element from ctl_table array
       [not found] ` <651a84ff.050a0220.51ca9.2e91SMTPIN_ADDED_BROKEN@mx.google.com>
  2023-10-02 14:17     ` David Ahern
@ 2023-10-02 14:17     ` David Ahern
  0 siblings, 0 replies; 91+ messages in thread
From: David Ahern @ 2023-10-02 14:17 UTC (permalink / raw)
  To: j.granados, Luis Chamberlain, willy, josh, Kees Cook,
	Phillip Potter, Clemens Ladisch, Arnd Bergmann,
	Greg Kroah-Hartman, Juergen Gross, Stefano Stabellini,
	Oleksandr Tyshchenko, Jiri Slaby, James E.J. Bottomley,
	Martin K. Petersen, Doug Gilbert, Sudip Mukherjee,
	Jason Gunthorpe, Leon Romanovsky, Corey Minyard,
	Theodore Ts'o, Jason A. Donenfeld, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Robin Holt,
	Steve Wahl, Russ Weight, Rafael J. Wysocki, Song Liu,
	K. Y. Srinivasan, Haiyang Zhang, Wei Liu, Dexuan Cui,
	Jani Nikula, Joonas Lahtinen, Rodrigo Vivi, Tvrtko Ursulin,
	David Airlie, Daniel Vetter
  Cc: linux-kernel, xen-devel, linux-serial, linux-scsi, linuxppc-dev,
	linux-rdma, openipmi-developer, netdev, linux-raid, linux-hyperv,
	intel-gfx, dri-devel

On 10/2/23 2:55 AM, Joel Granados via B4 Relay wrote:
> From: Joel Granados <j.granados@samsung.com>
> 
> 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 vrf_table
> 
> Signed-off-by: Joel Granados <j.granados@samsung.com>
> ---
>  drivers/net/vrf.c | 1 -
>  1 file changed, 1 deletion(-)
> 

Reviewed-by: David Ahern <dsahern@kernel.org>



^ permalink raw reply	[flat|nested] 91+ messages in thread

* Re: [PATCH v2 10/15] vrf: Remove the now superfluous sentinel element from ctl_table array
@ 2023-10-02 14:17     ` David Ahern
  0 siblings, 0 replies; 91+ messages in thread
From: David Ahern @ 2023-10-02 14:17 UTC (permalink / raw)
  To: j.granados, Luis Chamberlain, willy, josh, Kees Cook,
	Phillip Potter, Clemens Ladisch, Arnd Bergmann,
	Greg Kroah-Hartman, Juergen Gross, Stefano Stabellini,
	Oleksandr Tyshchenko, Jiri Slaby, James E.J. Bottomley,
	Martin K. Petersen, Doug Gilbert, Sudip Mukherjee,
	Jason Gunthorpe, Leon Romanovsky, Corey Minyard,
	Theodore Ts'o, Jason A. Donenfeld, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Robin Holt,
	Steve Wahl, Russ Weight, Rafael J. Wysocki, Song Liu,
	K. Y. Srinivasan, Haiyang Zhang, Wei Liu, Dexuan Cui,
	Jani Nikula, Joonas Lahtinen, Rodrigo Vivi, Tvrtko Ursulin,
	David Airlie, Daniel Vetter
  Cc: linux-hyperv, linux-scsi, linux-rdma, netdev, intel-gfx,
	linux-kernel, dri-devel, linux-raid, linux-serial, xen-devel,
	openipmi-developer, linuxppc-dev

On 10/2/23 2:55 AM, Joel Granados via B4 Relay wrote:
> From: Joel Granados <j.granados@samsung.com>
> 
> 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 vrf_table
> 
> Signed-off-by: Joel Granados <j.granados@samsung.com>
> ---
>  drivers/net/vrf.c | 1 -
>  1 file changed, 1 deletion(-)
> 

Reviewed-by: David Ahern <dsahern@kernel.org>



^ permalink raw reply	[flat|nested] 91+ messages in thread

* Re: [Intel-gfx] [PATCH v2 10/15] vrf: Remove the now superfluous sentinel element from ctl_table array
@ 2023-10-02 14:17     ` David Ahern
  0 siblings, 0 replies; 91+ messages in thread
From: David Ahern @ 2023-10-02 14:17 UTC (permalink / raw)
  To: j.granados, Luis Chamberlain, willy, josh, Kees Cook,
	Phillip Potter, Clemens Ladisch, Arnd Bergmann,
	Greg Kroah-Hartman, Juergen Gross, Stefano Stabellini,
	Oleksandr Tyshchenko, Jiri Slaby, James E.J. Bottomley,
	Martin K. Petersen, Doug Gilbert, Sudip Mukherjee,
	Jason Gunthorpe, Leon Romanovsky, Corey Minyard,
	Theodore Ts'o, Jason A. Donenfeld, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Robin Holt,
	Steve Wahl, Russ Weight, Rafael J. Wysocki, Song Liu,
	K. Y. Srinivasan, Haiyang Zhang, Wei Liu, Dexuan Cui,
	Jani Nikula, Joonas Lahtinen, Rodrigo Vivi, Tvrtko Ursulin,
	David Airlie, Daniel Vetter
  Cc: linux-hyperv, linux-scsi, linux-rdma, netdev, intel-gfx,
	linux-kernel, dri-devel, linux-raid, linux-serial, xen-devel,
	openipmi-developer, linuxppc-dev

On 10/2/23 2:55 AM, Joel Granados via B4 Relay wrote:
> From: Joel Granados <j.granados@samsung.com>
> 
> 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 vrf_table
> 
> Signed-off-by: Joel Granados <j.granados@samsung.com>
> ---
>  drivers/net/vrf.c | 1 -
>  1 file changed, 1 deletion(-)
> 

Reviewed-by: David Ahern <dsahern@kernel.org>



^ permalink raw reply	[flat|nested] 91+ messages in thread

* Re: [PATCH v2 11/15] sgi-xp: Remove the now superfluous sentinel element from ctl_table array
       [not found] ` <=?utf-8?q?=3C20231002-jag-sysctl=5Fremove=5Fempty=5Felem=5Fdrive?=>
  2023-10-02 14:33     ` Steve Wahl
  (?)
@ 2023-10-02 14:33     ` Steve Wahl
  0 siblings, 0 replies; 91+ messages in thread
From: Steve Wahl @ 2023-10-02 14:33 UTC (permalink / raw)
  To: j.granados
  Cc: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter, linux-kernel,
	xen-devel, linux-serial, linux-scsi, linuxppc-dev, linux-rdma,
	openipmi-developer, netdev, linux-raid, linux-hyperv, intel-gfx,
	dri-devel

On Mon, Oct 02, 2023 at 10:55:28AM +0200, Joel Granados via B4 Relay wrote:
> From: Joel Granados <j.granados@samsung.com>
> 
> 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 xpc_sys_xpc_hb and xpc_sys_xpc
> 
> Signed-off-by: Joel Granados <j.granados@samsung.com>
> ---
>  drivers/misc/sgi-xp/xpc_main.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/misc/sgi-xp/xpc_main.c b/drivers/misc/sgi-xp/xpc_main.c
> index 6da509d692bb..3186421e82c3 100644
> --- a/drivers/misc/sgi-xp/xpc_main.c
> +++ b/drivers/misc/sgi-xp/xpc_main.c
> @@ -110,7 +110,6 @@ static struct ctl_table xpc_sys_xpc_hb[] = {
>  	 .proc_handler = proc_dointvec_minmax,
>  	 .extra1 = &xpc_hb_check_min_interval,
>  	 .extra2 = &xpc_hb_check_max_interval},
> -	{}
>  };
>  static struct ctl_table xpc_sys_xpc[] = {
>  	{
> @@ -121,7 +120,6 @@ static struct ctl_table xpc_sys_xpc[] = {
>  	 .proc_handler = proc_dointvec_minmax,
>  	 .extra1 = &xpc_disengage_min_timelimit,
>  	 .extra2 = &xpc_disengage_max_timelimit},
> -	{}
>  };
>  
>  static struct ctl_table_header *xpc_sysctl;
> 
> -- 
> 2.30.2
> 

Reviewed-by: Steve Wahl <steve.wahl@hpe.com>

-- 
Steve Wahl, Hewlett Packard Enterprise

^ permalink raw reply	[flat|nested] 91+ messages in thread

* Re: [PATCH v2 11/15] sgi-xp: Remove the now superfluous sentinel element from ctl_table array
@ 2023-10-02 14:33     ` Steve Wahl
  0 siblings, 0 replies; 91+ messages in thread
From: Steve Wahl @ 2023-10-02 14:33 UTC (permalink / raw)
  To: j.granados
  Cc: Jason A. Donenfeld, Steve Wahl, Joonas Lahtinen, Clemens Ladisch,
	linux-hyperv, dri-devel, Phillip Potter, Song Liu, Eric Dumazet,
	K. Y. Srinivasan, Jiri Slaby, Russ Weight, Wei Liu,
	Stefano Stabellini, Corey Minyard, Leon Romanovsky, linux-rdma,
	David Airlie, Rafael J. Wysocki, Dexuan Cui, willy,
	Jason Gunthorpe, linux-serial, Doug Gilbert, Jakub Kicinski,
	Paolo Abeni, Haiyang Zhang, Kees Cook, Arnd Bergmann,
	linux-kernel, James E.J. Bottomley, intel-gfx, josh, Jani Nikula,
	linux-raid, Rodrigo Vivi, xen-devel, openipmi-developer,
	Juergen Gross, Tvrtko Ursulin, Theodore Ts'o, linux-scsi,
	Martin K. Petersen, Greg Kroah-Hartman, David Ahern, Robin Holt,
	David S. Miller, Oleksandr Tyshchenko, Luis Chamberlain,
	Daniel Vetter, netdev, linuxppc-dev, Sudip Mukherjee

On Mon, Oct 02, 2023 at 10:55:28AM +0200, Joel Granados via B4 Relay wrote:
> From: Joel Granados <j.granados@samsung.com>
> 
> 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 xpc_sys_xpc_hb and xpc_sys_xpc
> 
> Signed-off-by: Joel Granados <j.granados@samsung.com>
> ---
>  drivers/misc/sgi-xp/xpc_main.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/misc/sgi-xp/xpc_main.c b/drivers/misc/sgi-xp/xpc_main.c
> index 6da509d692bb..3186421e82c3 100644
> --- a/drivers/misc/sgi-xp/xpc_main.c
> +++ b/drivers/misc/sgi-xp/xpc_main.c
> @@ -110,7 +110,6 @@ static struct ctl_table xpc_sys_xpc_hb[] = {
>  	 .proc_handler = proc_dointvec_minmax,
>  	 .extra1 = &xpc_hb_check_min_interval,
>  	 .extra2 = &xpc_hb_check_max_interval},
> -	{}
>  };
>  static struct ctl_table xpc_sys_xpc[] = {
>  	{
> @@ -121,7 +120,6 @@ static struct ctl_table xpc_sys_xpc[] = {
>  	 .proc_handler = proc_dointvec_minmax,
>  	 .extra1 = &xpc_disengage_min_timelimit,
>  	 .extra2 = &xpc_disengage_max_timelimit},
> -	{}
>  };
>  
>  static struct ctl_table_header *xpc_sysctl;
> 
> -- 
> 2.30.2
> 

Reviewed-by: Steve Wahl <steve.wahl@hpe.com>

-- 
Steve Wahl, Hewlett Packard Enterprise

^ permalink raw reply	[flat|nested] 91+ messages in thread

* Re: [PATCH v2 11/15] sgi-xp: Remove the now superfluous sentinel element from ctl_table array
@ 2023-10-02 14:33     ` Steve Wahl
  0 siblings, 0 replies; 91+ messages in thread
From: Steve Wahl @ 2023-10-02 14:33 UTC (permalink / raw)
  To: j.granados
  Cc: Jason A. Donenfeld, Steve Wahl, Clemens Ladisch, linux-hyperv,
	dri-devel, Phillip Potter, Song Liu, Eric Dumazet,
	K. Y. Srinivasan, Jiri Slaby, Russ Weight, Wei Liu,
	Stefano Stabellini, Corey Minyard, Leon Romanovsky, linux-rdma,
	Rafael J. Wysocki, Dexuan Cui, willy, Jason Gunthorpe,
	linux-serial, Doug Gilbert, Jakub Kicinski, Paolo Abeni,
	Haiyang Zhang, Kees Cook, Arnd Bergmann, linux-kernel,
	James E.J. Bottomley, intel-gfx, josh, linux-raid, Rodrigo Vivi,
	xen-devel, openipmi-developer, Juergen Gross, Tvrtko Ursulin,
	Theodore Ts'o, linux-scsi, Martin K. Petersen,
	Greg Kroah-Hartman, David Ahern, Robin Holt, David S. Miller,
	Oleksandr Tyshchenko, Luis Chamberlain, netdev, linuxppc-dev,
	Sudip Mukherjee

On Mon, Oct 02, 2023 at 10:55:28AM +0200, Joel Granados via B4 Relay wrote:
> From: Joel Granados <j.granados@samsung.com>
> 
> 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 xpc_sys_xpc_hb and xpc_sys_xpc
> 
> Signed-off-by: Joel Granados <j.granados@samsung.com>
> ---
>  drivers/misc/sgi-xp/xpc_main.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/misc/sgi-xp/xpc_main.c b/drivers/misc/sgi-xp/xpc_main.c
> index 6da509d692bb..3186421e82c3 100644
> --- a/drivers/misc/sgi-xp/xpc_main.c
> +++ b/drivers/misc/sgi-xp/xpc_main.c
> @@ -110,7 +110,6 @@ static struct ctl_table xpc_sys_xpc_hb[] = {
>  	 .proc_handler = proc_dointvec_minmax,
>  	 .extra1 = &xpc_hb_check_min_interval,
>  	 .extra2 = &xpc_hb_check_max_interval},
> -	{}
>  };
>  static struct ctl_table xpc_sys_xpc[] = {
>  	{
> @@ -121,7 +120,6 @@ static struct ctl_table xpc_sys_xpc[] = {
>  	 .proc_handler = proc_dointvec_minmax,
>  	 .extra1 = &xpc_disengage_min_timelimit,
>  	 .extra2 = &xpc_disengage_max_timelimit},
> -	{}
>  };
>  
>  static struct ctl_table_header *xpc_sysctl;
> 
> -- 
> 2.30.2
> 

Reviewed-by: Steve Wahl <steve.wahl@hpe.com>

-- 
Steve Wahl, Hewlett Packard Enterprise

^ permalink raw reply	[flat|nested] 91+ messages in thread

* Re: [Intel-gfx] [PATCH v2 11/15] sgi-xp: Remove the now superfluous sentinel element from ctl_table array
@ 2023-10-02 14:33     ` Steve Wahl
  0 siblings, 0 replies; 91+ messages in thread
From: Steve Wahl @ 2023-10-02 14:33 UTC (permalink / raw)
  To: j.granados
  Cc: Jason A. Donenfeld, Steve Wahl, Clemens Ladisch, linux-hyperv,
	dri-devel, Phillip Potter, Song Liu, Eric Dumazet,
	K. Y. Srinivasan, Jiri Slaby, Russ Weight, Wei Liu,
	Stefano Stabellini, Corey Minyard, Leon Romanovsky, linux-rdma,
	David Airlie, Rafael J. Wysocki, Dexuan Cui, willy,
	Jason Gunthorpe, linux-serial, Doug Gilbert, Jakub Kicinski,
	Paolo Abeni, Haiyang Zhang, Kees Cook, Arnd Bergmann,
	linux-kernel, James E.J. Bottomley, intel-gfx, josh, linux-raid,
	Rodrigo Vivi, xen-devel, openipmi-developer, Juergen Gross,
	Theodore Ts'o, linux-scsi, Martin K. Petersen,
	Greg Kroah-Hartman, David Ahern, Robin Holt, David S. Miller,
	Oleksandr Tyshchenko, Luis Chamberlain, Daniel Vetter, netdev,
	linuxppc-dev, Sudip Mukherjee

On Mon, Oct 02, 2023 at 10:55:28AM +0200, Joel Granados via B4 Relay wrote:
> From: Joel Granados <j.granados@samsung.com>
> 
> 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 xpc_sys_xpc_hb and xpc_sys_xpc
> 
> Signed-off-by: Joel Granados <j.granados@samsung.com>
> ---
>  drivers/misc/sgi-xp/xpc_main.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/misc/sgi-xp/xpc_main.c b/drivers/misc/sgi-xp/xpc_main.c
> index 6da509d692bb..3186421e82c3 100644
> --- a/drivers/misc/sgi-xp/xpc_main.c
> +++ b/drivers/misc/sgi-xp/xpc_main.c
> @@ -110,7 +110,6 @@ static struct ctl_table xpc_sys_xpc_hb[] = {
>  	 .proc_handler = proc_dointvec_minmax,
>  	 .extra1 = &xpc_hb_check_min_interval,
>  	 .extra2 = &xpc_hb_check_max_interval},
> -	{}
>  };
>  static struct ctl_table xpc_sys_xpc[] = {
>  	{
> @@ -121,7 +120,6 @@ static struct ctl_table xpc_sys_xpc[] = {
>  	 .proc_handler = proc_dointvec_minmax,
>  	 .extra1 = &xpc_disengage_min_timelimit,
>  	 .extra2 = &xpc_disengage_max_timelimit},
> -	{}
>  };
>  
>  static struct ctl_table_header *xpc_sysctl;
> 
> -- 
> 2.30.2
> 

Reviewed-by: Steve Wahl <steve.wahl@hpe.com>

-- 
Steve Wahl, Hewlett Packard Enterprise

^ permalink raw reply	[flat|nested] 91+ messages in thread

* [Intel-gfx] ✗ Fi.CI.BAT: failure for sysctl: Remove sentinel elements from drivers (rev2)
  2023-10-02  8:55 ` Joel Granados via B4 Relay
                   ` (26 preceding siblings ...)
  (?)
@ 2023-10-02 20:28 ` Patchwork
  -1 siblings, 0 replies; 91+ messages in thread
From: Patchwork @ 2023-10-02 20:28 UTC (permalink / raw)
  To: Joel Granados via B4 Relay; +Cc: intel-gfx

[-- Attachment #1: Type: text/plain, Size: 8275 bytes --]

== Series Details ==

Series: sysctl: Remove sentinel elements from drivers (rev2)
URL   : https://patchwork.freedesktop.org/series/124409/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_13700 -> Patchwork_124409v2
====================================================

Summary
-------

  **FAILURE**

  Serious unknown changes coming with Patchwork_124409v2 absolutely need to be
  verified manually.
  
  If you think the reported changes have nothing to do with the changes
  introduced in Patchwork_124409v2, please notify your bug team (lgci.bug.filing@intel.com) to allow them
  to document this new failure mode, which will reduce false positives in CI.

  External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_124409v2/index.html

Participating hosts (39 -> 39)
------------------------------

  Additional (2): fi-kbl-soraka fi-bsw-n3050 
  Missing    (2): bat-dg2-9 fi-snb-2520m 

Possible new issues
-------------------

  Here are the unknown changes that may have been introduced in Patchwork_124409v2:

### IGT changes ###

#### Possible regressions ####

  * igt@kms_frontbuffer_tracking@basic:
    - fi-kbl-soraka:      NOTRUN -> [INCOMPLETE][1]
   [1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_124409v2/fi-kbl-soraka/igt@kms_frontbuffer_tracking@basic.html

  
Known issues
------------

  Here are the changes found in Patchwork_124409v2 that come from known issues:

### CI changes ###

#### Issues hit ####

  * boot:
    - fi-bsw-n3050:       NOTRUN -> [FAIL][2] ([i915#8293])
   [2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_124409v2/fi-bsw-n3050/boot.html

  
#### Possible fixes ####

  * boot:
    - fi-hsw-4770:        [FAIL][3] ([i915#8293]) -> [PASS][4]
   [3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13700/fi-hsw-4770/boot.html
   [4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_124409v2/fi-hsw-4770/boot.html

  

### IGT changes ###

#### Issues hit ####

  * igt@debugfs_test@basic-hwmon:
    - fi-hsw-4770:        NOTRUN -> [SKIP][5] ([fdo#109271])
   [5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_124409v2/fi-hsw-4770/igt@debugfs_test@basic-hwmon.html

  * igt@gem_huc_copy@huc-copy:
    - fi-kbl-soraka:      NOTRUN -> [SKIP][6] ([fdo#109271] / [i915#2190])
   [6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_124409v2/fi-kbl-soraka/igt@gem_huc_copy@huc-copy.html

  * igt@gem_lmem_swapping@basic:
    - fi-kbl-soraka:      NOTRUN -> [SKIP][7] ([fdo#109271] / [i915#4613]) +3 other tests skip
   [7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_124409v2/fi-kbl-soraka/igt@gem_lmem_swapping@basic.html

  * igt@i915_selftest@live@gt_pm:
    - fi-kbl-soraka:      NOTRUN -> [DMESG-FAIL][8] ([i915#1886] / [i915#7913])
   [8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_124409v2/fi-kbl-soraka/igt@i915_selftest@live@gt_pm.html

  * igt@i915_suspend@basic-s3-without-i915:
    - bat-mtlp-8:         NOTRUN -> [SKIP][9] ([i915#6645])
   [9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_124409v2/bat-mtlp-8/igt@i915_suspend@basic-s3-without-i915.html

  * igt@kms_dsc@dsc-basic:
    - fi-kbl-soraka:      NOTRUN -> [SKIP][10] ([fdo#109271]) +9 other tests skip
   [10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_124409v2/fi-kbl-soraka/igt@kms_dsc@dsc-basic.html

  * igt@kms_pipe_crc_basic@read-crc-frame-sequence@pipe-c-dp-5:
    - bat-adlp-11:        NOTRUN -> [ABORT][11] ([i915#8668])
   [11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_124409v2/bat-adlp-11/igt@kms_pipe_crc_basic@read-crc-frame-sequence@pipe-c-dp-5.html

  * igt@kms_pipe_crc_basic@read-crc-frame-sequence@pipe-d-edp-1:
    - bat-rplp-1:         [PASS][12] -> [ABORT][13] ([i915#8668])
   [12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13700/bat-rplp-1/igt@kms_pipe_crc_basic@read-crc-frame-sequence@pipe-d-edp-1.html
   [13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_124409v2/bat-rplp-1/igt@kms_pipe_crc_basic@read-crc-frame-sequence@pipe-d-edp-1.html

  
#### Possible fixes ####

  * igt@i915_selftest@live@requests:
    - bat-mtlp-8:         [ABORT][14] ([i915#9414]) -> [PASS][15]
   [14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13700/bat-mtlp-8/igt@i915_selftest@live@requests.html
   [15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_124409v2/bat-mtlp-8/igt@i915_selftest@live@requests.html

  * igt@kms_pipe_crc_basic@compare-crc-sanitycheck-nv12@pipe-b-dp-6:
    - bat-adlp-11:        [DMESG-FAIL][16] ([i915#6868]) -> [PASS][17]
   [16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13700/bat-adlp-11/igt@kms_pipe_crc_basic@compare-crc-sanitycheck-nv12@pipe-b-dp-6.html
   [17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_124409v2/bat-adlp-11/igt@kms_pipe_crc_basic@compare-crc-sanitycheck-nv12@pipe-b-dp-6.html

  * igt@kms_pipe_crc_basic@compare-crc-sanitycheck-nv12@pipe-c-dp-5:
    - bat-adlp-11:        [FAIL][18] ([i915#9047]) -> [PASS][19] +1 other test pass
   [18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13700/bat-adlp-11/igt@kms_pipe_crc_basic@compare-crc-sanitycheck-nv12@pipe-c-dp-5.html
   [19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_124409v2/bat-adlp-11/igt@kms_pipe_crc_basic@compare-crc-sanitycheck-nv12@pipe-c-dp-5.html

  * igt@kms_pipe_crc_basic@suspend-read-crc@pipe-a-hdmi-a-1:
    - fi-rkl-11600:       [FAIL][20] ([fdo#103375]) -> [PASS][21]
   [20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_13700/fi-rkl-11600/igt@kms_pipe_crc_basic@suspend-read-crc@pipe-a-hdmi-a-1.html
   [21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_124409v2/fi-rkl-11600/igt@kms_pipe_crc_basic@suspend-read-crc@pipe-a-hdmi-a-1.html

  
  [fdo#103375]: https://bugs.freedesktop.org/show_bug.cgi?id=103375
  [fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
  [i915#1886]: https://gitlab.freedesktop.org/drm/intel/issues/1886
  [i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
  [i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
  [i915#6645]: https://gitlab.freedesktop.org/drm/intel/issues/6645
  [i915#6868]: https://gitlab.freedesktop.org/drm/intel/issues/6868
  [i915#7913]: https://gitlab.freedesktop.org/drm/intel/issues/7913
  [i915#8293]: https://gitlab.freedesktop.org/drm/intel/issues/8293
  [i915#8668]: https://gitlab.freedesktop.org/drm/intel/issues/8668
  [i915#9047]: https://gitlab.freedesktop.org/drm/intel/issues/9047
  [i915#9414]: https://gitlab.freedesktop.org/drm/intel/issues/9414


Build changes
-------------

  * Linux: CI_DRM_13700 -> Patchwork_124409v2

  CI-20190529: 20190529
  CI_DRM_13700: bdf918ba3361e330917e7810cbbd38760c2a746b @ git://anongit.freedesktop.org/gfx-ci/linux
  IGT_7508: f366406b05ca6b3d16eaa734a91e0833bd159f54 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
  Patchwork_124409v2: bdf918ba3361e330917e7810cbbd38760c2a746b @ git://anongit.freedesktop.org/gfx-ci/linux


### Linux commits

f8394b9714e9 intel drm: Remove now superfluous sentinel element from ctl_table array
c565f70a640d Drivers: hv: Remove now superfluous sentinel element from ctl_table array
ca3467b10076 raid: Remove now superfluous sentinel element from ctl_table array
8eaf8be7f908 fw loader: Remove the now superfluous sentinel element from ctl_table array
33f7407446d8 sgi-xp: Remove the now superfluous sentinel element from ctl_table array
48319c2a1a26 vrf: Remove the now superfluous sentinel element from ctl_table array
9e8d5592c45e char-misc: Remove the now superfluous sentinel element from ctl_table array
9648dbb26139 infiniband: Remove the now superfluous sentinel element from ctl_table array
48570e650609 macintosh: Remove the now superfluous sentinel element from ctl_table array
a008d6086bd7 parport: Remove the now superfluous sentinel element from ctl_table array
1f315b522ed1 scsi: Remove now superfluous sentinel element from ctl_table array
a54156806033 tty: Remove now superfluous sentinel element from ctl_table array
4be86e30b77b xen: Remove now superfluous sentinel element from ctl_table array
a0d80f4ffcb2 hpet: Remove now superfluous sentinel element from ctl_table array
819dc5d5a5d4 cdrom: Remove now superfluous sentinel element from ctl_table array

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_124409v2/index.html

[-- Attachment #2: Type: text/html, Size: 9679 bytes --]

^ permalink raw reply	[flat|nested] 91+ messages in thread

* Re: [PATCH v2 01/15] cdrom: Remove now superfluous sentinel element from ctl_table array
  2023-10-02  8:55   ` Joel Granados via B4 Relay
  (?)
  (?)
@ 2023-10-02 21:45     ` Phillip Potter
  -1 siblings, 0 replies; 91+ messages in thread
From: Phillip Potter @ 2023-10-02 21:45 UTC (permalink / raw)
  To: devnull+j.granados.samsung.com
  Cc: Jason, airlied, arnd, clemens, daniel, davem, decui, dgilbert,
	dri-devel, dsahern, edumazet, gregkh, haiyangz, intel-gfx,
	j.granados, jani.nikula, jejb, jgg, jgross, jirislaby,
	joonas.lahtinen, josh, keescook, kuba, kys, leon, linux-hyperv,
	linux-kernel, linux-raid, linux-rdma, linux-scsi, linux-serial,
	linuxppc-dev, martin.petersen, mcgrof, minyard, netdev,
	oleksandr_tyshchenko, openipmi-developer, pabeni, phil, rafael,
	robinmholt, rodrigo.vivi, russell.h.weight, song, sstabellini,
	steve.wahl, sudipm.mukherjee, tvrtko.ursulin, tytso, wei.liu,
	willy, xen-devel

> From: Joel Granados <j.granados@samsung.com>
>
> 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 cdrom_table
>
> Signed-off-by: Joel Granados <j.granados@samsung.com>
> ---
>  drivers/cdrom/cdrom.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/drivers/cdrom/cdrom.c b/drivers/cdrom/cdrom.c
> index cc2839805983..a5e07270e0d4 100644
> --- a/drivers/cdrom/cdrom.c
> +++ b/drivers/cdrom/cdrom.c
> @@ -3655,7 +3655,6 @@ static struct ctl_table cdrom_table[] = {
>  		.mode		= 0644,
>  		.proc_handler	= cdrom_sysctl_handler
>  	},
> -	{ }
>  };
>  static struct ctl_table_header *cdrom_sysctl_header;
>
>
> -- 
> 2.30.2


Hi Joel,

Looks good to me, many thanks. I'll send on for inclusion.

Reviewed-by: Phillip Potter <phil@philpotter.co.uk>

Regards,
Phil

^ permalink raw reply	[flat|nested] 91+ messages in thread

* Re: [PATCH v2 01/15] cdrom: Remove now superfluous sentinel element from ctl_table array
@ 2023-10-02 21:45     ` Phillip Potter
  0 siblings, 0 replies; 91+ messages in thread
From: Phillip Potter @ 2023-10-02 21:45 UTC (permalink / raw)
  To: devnull+j.granados.samsung.com
  Cc: j.granados, Jason, rafael, clemens, linux-hyperv, dri-devel,
	phil, song, edumazet, kys, jirislaby, russell.h.weight, wei.liu,
	sstabellini, minyard, leon, linux-rdma, steve.wahl, decui, willy,
	jgg, linux-serial, dgilbert, kuba, pabeni, intel-gfx, keescook,
	arnd, haiyangz, josh, linux-raid, rodrigo.vivi, xen-devel,
	openipmi-developer, jgross, tvrtko.ursulin, tytso, linux-scsi,
	martin.petersen, gregkh, dsahern, linuxppc-dev, linux-kernel,
	sudipm.mukherjee, oleksandr_tyshchenko, mcgrof, robinmholt,
	netdev, jejb, davem

> From: Joel Granados <j.granados@samsung.com>
>
> 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 cdrom_table
>
> Signed-off-by: Joel Granados <j.granados@samsung.com>
> ---
>  drivers/cdrom/cdrom.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/drivers/cdrom/cdrom.c b/drivers/cdrom/cdrom.c
> index cc2839805983..a5e07270e0d4 100644
> --- a/drivers/cdrom/cdrom.c
> +++ b/drivers/cdrom/cdrom.c
> @@ -3655,7 +3655,6 @@ static struct ctl_table cdrom_table[] = {
>  		.mode		= 0644,
>  		.proc_handler	= cdrom_sysctl_handler
>  	},
> -	{ }
>  };
>  static struct ctl_table_header *cdrom_sysctl_header;
>
>
> -- 
> 2.30.2


Hi Joel,

Looks good to me, many thanks. I'll send on for inclusion.

Reviewed-by: Phillip Potter <phil@philpotter.co.uk>

Regards,
Phil

^ permalink raw reply	[flat|nested] 91+ messages in thread

* Re: [Intel-gfx] [PATCH v2 01/15] cdrom: Remove now superfluous sentinel element from ctl_table array
@ 2023-10-02 21:45     ` Phillip Potter
  0 siblings, 0 replies; 91+ messages in thread
From: Phillip Potter @ 2023-10-02 21:45 UTC (permalink / raw)
  To: devnull+j.granados.samsung.com
  Cc: j.granados, Jason, rafael, clemens, linux-hyperv, dri-devel,
	phil, song, edumazet, kys, jirislaby, russell.h.weight, wei.liu,
	sstabellini, minyard, leon, linux-rdma, airlied, steve.wahl,
	decui, willy, jgg, linux-serial, dgilbert, kuba, pabeni,
	intel-gfx, keescook, arnd, haiyangz, josh, linux-raid,
	rodrigo.vivi, xen-devel, openipmi-developer, jgross, tytso,
	linux-scsi, martin.petersen, gregkh, dsahern, linuxppc-dev,
	linux-kernel, sudipm.mukherjee, oleksandr_tyshchenko, mcgrof,
	robinmholt, daniel, netdev, jejb, davem

> From: Joel Granados <j.granados@samsung.com>
>
> 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 cdrom_table
>
> Signed-off-by: Joel Granados <j.granados@samsung.com>
> ---
>  drivers/cdrom/cdrom.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/drivers/cdrom/cdrom.c b/drivers/cdrom/cdrom.c
> index cc2839805983..a5e07270e0d4 100644
> --- a/drivers/cdrom/cdrom.c
> +++ b/drivers/cdrom/cdrom.c
> @@ -3655,7 +3655,6 @@ static struct ctl_table cdrom_table[] = {
>  		.mode		= 0644,
>  		.proc_handler	= cdrom_sysctl_handler
>  	},
> -	{ }
>  };
>  static struct ctl_table_header *cdrom_sysctl_header;
>
>
> -- 
> 2.30.2


Hi Joel,

Looks good to me, many thanks. I'll send on for inclusion.

Reviewed-by: Phillip Potter <phil@philpotter.co.uk>

Regards,
Phil

^ permalink raw reply	[flat|nested] 91+ messages in thread

* Re: [PATCH v2 01/15] cdrom: Remove now superfluous sentinel element from ctl_table array
@ 2023-10-02 21:45     ` Phillip Potter
  0 siblings, 0 replies; 91+ messages in thread
From: Phillip Potter @ 2023-10-02 21:45 UTC (permalink / raw)
  To: devnull+j.granados.samsung.com
  Cc: j.granados, Jason, rafael, joonas.lahtinen, clemens,
	linux-hyperv, dri-devel, phil, song, edumazet, kys, jirislaby,
	russell.h.weight, wei.liu, sstabellini, minyard, leon,
	linux-rdma, airlied, steve.wahl, decui, willy, jgg, linux-serial,
	dgilbert, kuba, pabeni, intel-gfx, keescook, arnd, haiyangz,
	josh, jani.nikula, linux-raid, rodrigo.vivi, xen-devel,
	openipmi-developer, jgross, tvrtko.ursulin, tytso, linux-scsi,
	martin.petersen, gregk

> From: Joel Granados <j.granados@samsung.com>
>
> 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 cdrom_table
>
> Signed-off-by: Joel Granados <j.granados@samsung.com>
> ---
>  drivers/cdrom/cdrom.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/drivers/cdrom/cdrom.c b/drivers/cdrom/cdrom.c
> index cc2839805983..a5e07270e0d4 100644
> --- a/drivers/cdrom/cdrom.c
> +++ b/drivers/cdrom/cdrom.c
> @@ -3655,7 +3655,6 @@ static struct ctl_table cdrom_table[] = {
>  		.mode		= 0644,
>  		.proc_handler	= cdrom_sysctl_handler
>  	},
> -	{ }
>  };
>  static struct ctl_table_header *cdrom_sysctl_header;
>
>
> -- 
> 2.30.2


Hi Joel,

Looks good to me, many thanks. I'll send on for inclusion.

Reviewed-by: Phillip Potter <phil@philpotter.co.uk>

Regards,
Phil

^ permalink raw reply	[flat|nested] 91+ messages in thread

* Re: [PATCH v2 00/15] sysctl: Remove sentinel elements from drivers
  2023-10-02 12:27   ` [Intel-gfx] " Christophe Leroy
  (?)
  (?)
@ 2023-10-03  8:47     ` Joel Granados
  -1 siblings, 0 replies; 91+ messages in thread
From: Joel Granados @ 2023-10-03  8:47 UTC (permalink / raw)
  To: Christophe Leroy
  Cc: Luis Chamberlain, willy, josh, Kees Cook, Phillip Potter,
	Clemens Ladisch, Arnd Bergmann, Greg Kroah-Hartman,
	Juergen Gross, Stefano Stabellini, Oleksandr Tyshchenko,
	Jiri Slaby, James E.J. Bottomley, Martin K. Petersen,
	Doug Gilbert, Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky,
	Corey Minyard, Theodore Ts'o, Jason A. Donenfeld,
	David Ahern, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Robin Holt, Steve Wahl, Russ Weight,
	Rafael J. Wysocki, Song Liu, K. Y. Srinivasan, Haiyang Zhang,
	Wei Liu, Dexuan Cui, Jani Nikula, Joonas Lahtinen, Rodrigo Vivi,
	Tvrtko Ursulin, David Airlie, Daniel Vetter, linux-hyperv,
	linux-scsi, linux-rdma, netdev, intel-gfx, linux-kernel,
	dri-devel, linux-raid, linux-serial, xen-devel,
	openipmi-developer, linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 12148 bytes --]

On Mon, Oct 02, 2023 at 12:27:18PM +0000, Christophe Leroy wrote:
> 
> 
> Le 02/10/2023 à 10:55, Joel Granados via B4 Relay a écrit :
> > From: Joel Granados <j.granados@samsung.com>
> > 
<--- snip --->
> >          - The "yesall" config saves 2432 bytes [4]
> >          - The "tiny" config saves 64 bytes [5]
> >      * memory usage:
> >          In this case there were no bytes saved because I do not have any
> >          of the drivers in the patch. To measure it comment the printk in
> >          `new_dir` and uncomment the if conditional in `new_links` [3].
> > 
> > ---
> > Changes in v2:
> > - Left the dangling comma in the ctl_table arrays.
> > - Link to v1: https://lore.kernel.org/r/20230928-jag-sysctl_remove_empty_elem_drivers-v1-0-e59120fca9f9@samsung.com
> > 
> > Comments/feedback greatly appreciated
> 
> Same problem on powerpc CI tests, all boot target failed, most of them 
> with similar OOPS, see 
> https://patchwork.ozlabs.org/project/linuxppc-dev/patch/20231002-jag-sysctl_remove_empty_elem_drivers-v2-15-02dd0d46f71e@samsung.com/
I found the culprit!. Here you are rebasing on top of v6.5.0-rc6 "INFO:
Looking for kernel version: 6.5.0-rc6-gbf2ac4d7d596". The error makes
sense becuase in that version we have not introduced the stopping
criteria based on the ctl_table array size, so the loop continues
looking for an empty sentinel past valid memory (and does not find it).
The ctl_table check catches it but then fails to do a proper error
because we have already tried to access invalid memory. The solution
here is to make sure to rebase in on top of the latest rc in v6.6.

> 
> What is strange is that I pushed your series into my github account, and 
> got no failure, see https://github.com/chleroy/linux/actions/runs/6378951278
And here it works because you use the latest rc : "INFO: Looking for
kernel version: 6.6.0-rc3-g23d4b5db743c"

> 
> Christophe
> 
> > 
> > Best
> > 
> > Joel
> > 
> > [1]
> > We are able to remove a sentinel table without behavioral change by
> > introducing a table_size argument in the same place where procname is
> > checked for NULL. The idea is for it to keep stopping when it hits
> > ->procname == NULL, while the sentinel is still present. And when the
> > sentinel is removed, it will stop on the table_size. You can go to
> > (https://lore.kernel.org/all/20230809105006.1198165-1-j.granados@samsung.com/)
> > for more information.
> > 
> > [2]
> > Links Related to the ctl_table sentinel removal:
> > * Good summary from Luis sent with the "pull request" for the
> >    preparation patches.
> >    https://lore.kernel.org/all/ZO5Yx5JFogGi%2FcBo@bombadil.infradead.org/
> > * Another very good summary from Luis.
> >    https://lore.kernel.org/all/ZMFizKFkVxUFtSqa@bombadil.infradead.org/
> > * This is a patch set that replaces register_sysctl_table with register_sysctl
> >    https://lore.kernel.org/all/20230302204612.782387-1-mcgrof@kernel.org/
> > * Patch set to deprecate register_sysctl_paths()
> >    https://lore.kernel.org/all/20230302202826.776286-1-mcgrof@kernel.org/
> > * Here there is an explicit expectation for the removal of the sentinel element.
> >    https://lore.kernel.org/all/20230321130908.6972-1-frank.li@vivo.com
> > * The "ARRAY_SIZE" approach was mentioned (proposed?) in this thread
> >    https://lore.kernel.org/all/20220220060626.15885-1-tangmeng@uniontech.com
> > 
> > [3]
> > To measure the in memory savings apply this on top of this patchset.
> > 
> > "
> > diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c
> > index c88854df0b62..e0073a627bac 100644
> > --- a/fs/proc/proc_sysctl.c
> > +++ b/fs/proc/proc_sysctl.c
> > @@ -976,6 +976,8 @@ static struct ctl_dir *new_dir(struct ctl_table_set *set,
> >          table[0].procname = new_name;
> >          table[0].mode = S_IFDIR|S_IRUGO|S_IXUGO;
> >          init_header(&new->header, set->dir.header.root, set, node, table, 1);
> > +       // Counts additional sentinel used for each new dir.
> > +       printk("%ld sysctl saved mem kzalloc \n", sizeof(struct ctl_table));
> > 
> >          return new;
> >   }
> > @@ -1199,6 +1201,9 @@ static struct ctl_table_header *new_links(struct ctl_dir *dir, struct ctl_table_
> >                  link_name += len;
> >                  link++;
> >          }
> > +       // Counts additional sentinel used for each new registration
> > +       //if ((head->ctl_table + head->ctl_table_size)->procname)
> > +               printk("%ld sysctl saved mem kzalloc \n", sizeof(struct ctl_table));
> >          init_header(links, dir->header.root, dir->header.set, node, link_table,
> >                      head->ctl_table_size);
> >          links->nreg = nr_entries;
> > "
> > and then run the following bash script in the kernel:
> > 
> > accum=0
> > for n in $(dmesg | grep kzalloc | awk '{print $3}') ; do
> >      echo $n
> >      accum=$(calc "$accum + $n")
> > done
> > echo $accum
> > 
> > [4]
> > add/remove: 0/0 grow/shrink: 0/21 up/down: 0/-2432 (-2432)
> > Function                                     old     new   delta
> > xpc_sys_xpc_hb                               192     128     -64
> > xpc_sys_xpc                                  128      64     -64
> > vrf_table                                    128      64     -64
> > ucma_ctl_table                               128      64     -64
> > tty_table                                    192     128     -64
> > sg_sysctls                                   128      64     -64
> > scsi_table                                   128      64     -64
> > random_table                                 448     384     -64
> > raid_table                                   192     128     -64
> > oa_table                                     192     128     -64
> > mac_hid_files                                256     192     -64
> > iwcm_ctl_table                               128      64     -64
> > ipmi_table                                   128      64     -64
> > hv_ctl_table                                 128      64     -64
> > hpet_table                                   128      64     -64
> > firmware_config_table                        192     128     -64
> > cdrom_table                                  448     384     -64
> > balloon_table                                128      64     -64
> > parport_sysctl_template                      912     720    -192
> > parport_default_sysctl_table                 584     136    -448
> > parport_device_sysctl_template               776     136    -640
> > Total: Before=429940038, After=429937606, chg -0.00%
> > 
> > [5]
> > add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-64 (-64)
> > Function                                     old     new   delta
> > random_table                                 448     384     -64
> > Total: Before=1885527, After=1885463, chg -0.00%
> > 
> > [6] https://lore.kernel.org/all/20230913-jag-sysctl_remove_empty_elem_arch-v2-0-d1bd13a29bae@samsung.com/
> > 
> > Signed-off-by: Joel Granados <j.granados@samsung.com>
> > 
> > To: Luis Chamberlain <mcgrof@kernel.org>
> > To: willy@infradead.org
> > To: josh@joshtriplett.org
> > To: Kees Cook <keescook@chromium.org>
> > To: Phillip Potter <phil@philpotter.co.uk>
> > To: Clemens Ladisch <clemens@ladisch.de>
> > To: Arnd Bergmann <arnd@arndb.de>
> > To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> > To: Juergen Gross <jgross@suse.com>
> > To: Stefano Stabellini <sstabellini@kernel.org>
> > To: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
> > To: Jiri Slaby <jirislaby@kernel.org>
> > To: "James E.J. Bottomley" <jejb@linux.ibm.com>
> > To: "Martin K. Petersen" <martin.petersen@oracle.com>
> > To: Doug Gilbert <dgilbert@interlog.com>
> > To: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
> > To: Jason Gunthorpe <jgg@ziepe.ca>
> > To: Leon Romanovsky <leon@kernel.org>
> > To: Corey Minyard <minyard@acm.org>
> > To: Theodore Ts'o <tytso@mit.edu>
> > To: "Jason A. Donenfeld" <Jason@zx2c4.com>
> > To: David Ahern <dsahern@kernel.org>
> > To: "David S. Miller" <davem@davemloft.net>
> > To: Eric Dumazet <edumazet@google.com>
> > To: Jakub Kicinski <kuba@kernel.org>
> > To: Paolo Abeni <pabeni@redhat.com>
> > To: Robin Holt <robinmholt@gmail.com>
> > To: Steve Wahl <steve.wahl@hpe.com>
> > To: Russ Weight <russell.h.weight@intel.com>
> > To: "Rafael J. Wysocki" <rafael@kernel.org>
> > To: Song Liu <song@kernel.org>
> > To: "K. Y. Srinivasan" <kys@microsoft.com>
> > To: Haiyang Zhang <haiyangz@microsoft.com>
> > To: Wei Liu <wei.liu@kernel.org>
> > To: Dexuan Cui <decui@microsoft.com>
> > To: Jani Nikula <jani.nikula@linux.intel.com>
> > To: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
> > To: Rodrigo Vivi <rodrigo.vivi@intel.com>
> > To: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
> > To: David Airlie <airlied@gmail.com>
> > To: Daniel Vetter <daniel@ffwll.ch>
> > Cc: linux-kernel@vger.kernel.org
> > Cc: xen-devel@lists.xenproject.org
> > Cc: linux-serial@vger.kernel.org
> > Cc: linux-scsi@vger.kernel.org
> > Cc: linuxppc-dev@lists.ozlabs.org
> > Cc: linux-rdma@vger.kernel.org
> > Cc: openipmi-developer@lists.sourceforge.net
> > Cc: netdev@vger.kernel.org
> > Cc: linux-raid@vger.kernel.org
> > Cc: linux-hyperv@vger.kernel.org
> > Cc: intel-gfx@lists.freedesktop.org
> > Cc: dri-devel@lists.freedesktop.org
> > 
> > ---
> > 
> > ---
> > Joel Granados (15):
> >        cdrom: Remove now superfluous sentinel element from ctl_table array
> >        hpet: Remove now superfluous sentinel element from ctl_table array
> >        xen: Remove now superfluous sentinel element from ctl_table array
> >        tty: Remove now superfluous sentinel element from ctl_table array
> >        scsi: Remove now superfluous sentinel element from ctl_table array
> >        parport: Remove the now superfluous sentinel element from ctl_table array
> >        macintosh: Remove the now superfluous sentinel element from ctl_table array
> >        infiniband: Remove the now superfluous sentinel element from ctl_table array
> >        char-misc: Remove the now superfluous sentinel element from ctl_table array
> >        vrf: Remove the now superfluous sentinel element from ctl_table array
> >        sgi-xp: Remove the now superfluous sentinel element from ctl_table array
> >        fw loader: Remove the now superfluous sentinel element from ctl_table array
> >        raid: Remove now superfluous sentinel element from ctl_table array
> >        Drivers: hv: Remove now superfluous sentinel element from ctl_table array
> >        intel drm: Remove now superfluous sentinel element from ctl_table array
> > 
> >   drivers/base/firmware_loader/fallback_table.c |  1 -
> >   drivers/cdrom/cdrom.c                         |  1 -
> >   drivers/char/hpet.c                           |  1 -
> >   drivers/char/ipmi/ipmi_poweroff.c             |  1 -
> >   drivers/char/random.c                         |  1 -
> >   drivers/gpu/drm/i915/i915_perf.c              |  1 -
> >   drivers/hv/hv_common.c                        |  1 -
> >   drivers/infiniband/core/iwcm.c                |  1 -
> >   drivers/infiniband/core/ucma.c                |  1 -
> >   drivers/macintosh/mac_hid.c                   |  1 -
> >   drivers/md/md.c                               |  1 -
> >   drivers/misc/sgi-xp/xpc_main.c                |  2 --
> >   drivers/net/vrf.c                             |  1 -
> >   drivers/parport/procfs.c                      | 28 +++++++++++----------------
> >   drivers/scsi/scsi_sysctl.c                    |  1 -
> >   drivers/scsi/sg.c                             |  1 -
> >   drivers/tty/tty_io.c                          |  1 -
> >   drivers/xen/balloon.c                         |  1 -
> >   18 files changed, 11 insertions(+), 35 deletions(-)
> > ---
> > base-commit: 0e945134b680040b8613e962f586d91b6d40292d
> > change-id: 20230927-jag-sysctl_remove_empty_elem_drivers-f034962a0d8c
> > 
> > Best regards,

-- 

Joel Granados

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 91+ messages in thread

* Re: [PATCH v2 00/15] sysctl: Remove sentinel elements from drivers
@ 2023-10-03  8:47     ` Joel Granados
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados @ 2023-10-03  8:47 UTC (permalink / raw)
  To: Christophe Leroy
  Cc: Jason A. Donenfeld, Steve Wahl, Clemens Ladisch, linux-hyperv,
	dri-devel, Phillip Potter, Song Liu, Eric Dumazet,
	K. Y. Srinivasan, Jiri Slaby, Russ Weight, Wei Liu,
	Stefano Stabellini, Corey Minyard, Leon Romanovsky, linux-rdma,
	Rafael J. Wysocki, Dexuan Cui, willy, Jason Gunthorpe,
	linux-serial, Doug Gilbert, Jakub Kicinski, Paolo Abeni,
	Haiyang Zhang, Kees Cook, Arnd Bergmann, linux-kernel,
	James E.J. Bottomley, josh, linux-raid, Rodrigo Vivi, xen-devel,
	openipmi-developer, Juergen Gross, Tvrtko Ursulin,
	Theodore Ts'o, linux-scsi, Martin K. Petersen,
	Greg Kroah-Hartman, David Ahern, linuxppc-dev, Robin Holt,
	David S. Miller, Oleksandr Tyshchenko, Luis Chamberlain, netdev,
	intel-gfx, Sudip Mukherjee

[-- Attachment #1: Type: text/plain, Size: 12148 bytes --]

On Mon, Oct 02, 2023 at 12:27:18PM +0000, Christophe Leroy wrote:
> 
> 
> Le 02/10/2023 à 10:55, Joel Granados via B4 Relay a écrit :
> > From: Joel Granados <j.granados@samsung.com>
> > 
<--- snip --->
> >          - The "yesall" config saves 2432 bytes [4]
> >          - The "tiny" config saves 64 bytes [5]
> >      * memory usage:
> >          In this case there were no bytes saved because I do not have any
> >          of the drivers in the patch. To measure it comment the printk in
> >          `new_dir` and uncomment the if conditional in `new_links` [3].
> > 
> > ---
> > Changes in v2:
> > - Left the dangling comma in the ctl_table arrays.
> > - Link to v1: https://lore.kernel.org/r/20230928-jag-sysctl_remove_empty_elem_drivers-v1-0-e59120fca9f9@samsung.com
> > 
> > Comments/feedback greatly appreciated
> 
> Same problem on powerpc CI tests, all boot target failed, most of them 
> with similar OOPS, see 
> https://patchwork.ozlabs.org/project/linuxppc-dev/patch/20231002-jag-sysctl_remove_empty_elem_drivers-v2-15-02dd0d46f71e@samsung.com/
I found the culprit!. Here you are rebasing on top of v6.5.0-rc6 "INFO:
Looking for kernel version: 6.5.0-rc6-gbf2ac4d7d596". The error makes
sense becuase in that version we have not introduced the stopping
criteria based on the ctl_table array size, so the loop continues
looking for an empty sentinel past valid memory (and does not find it).
The ctl_table check catches it but then fails to do a proper error
because we have already tried to access invalid memory. The solution
here is to make sure to rebase in on top of the latest rc in v6.6.

> 
> What is strange is that I pushed your series into my github account, and 
> got no failure, see https://github.com/chleroy/linux/actions/runs/6378951278
And here it works because you use the latest rc : "INFO: Looking for
kernel version: 6.6.0-rc3-g23d4b5db743c"

> 
> Christophe
> 
> > 
> > Best
> > 
> > Joel
> > 
> > [1]
> > We are able to remove a sentinel table without behavioral change by
> > introducing a table_size argument in the same place where procname is
> > checked for NULL. The idea is for it to keep stopping when it hits
> > ->procname == NULL, while the sentinel is still present. And when the
> > sentinel is removed, it will stop on the table_size. You can go to
> > (https://lore.kernel.org/all/20230809105006.1198165-1-j.granados@samsung.com/)
> > for more information.
> > 
> > [2]
> > Links Related to the ctl_table sentinel removal:
> > * Good summary from Luis sent with the "pull request" for the
> >    preparation patches.
> >    https://lore.kernel.org/all/ZO5Yx5JFogGi%2FcBo@bombadil.infradead.org/
> > * Another very good summary from Luis.
> >    https://lore.kernel.org/all/ZMFizKFkVxUFtSqa@bombadil.infradead.org/
> > * This is a patch set that replaces register_sysctl_table with register_sysctl
> >    https://lore.kernel.org/all/20230302204612.782387-1-mcgrof@kernel.org/
> > * Patch set to deprecate register_sysctl_paths()
> >    https://lore.kernel.org/all/20230302202826.776286-1-mcgrof@kernel.org/
> > * Here there is an explicit expectation for the removal of the sentinel element.
> >    https://lore.kernel.org/all/20230321130908.6972-1-frank.li@vivo.com
> > * The "ARRAY_SIZE" approach was mentioned (proposed?) in this thread
> >    https://lore.kernel.org/all/20220220060626.15885-1-tangmeng@uniontech.com
> > 
> > [3]
> > To measure the in memory savings apply this on top of this patchset.
> > 
> > "
> > diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c
> > index c88854df0b62..e0073a627bac 100644
> > --- a/fs/proc/proc_sysctl.c
> > +++ b/fs/proc/proc_sysctl.c
> > @@ -976,6 +976,8 @@ static struct ctl_dir *new_dir(struct ctl_table_set *set,
> >          table[0].procname = new_name;
> >          table[0].mode = S_IFDIR|S_IRUGO|S_IXUGO;
> >          init_header(&new->header, set->dir.header.root, set, node, table, 1);
> > +       // Counts additional sentinel used for each new dir.
> > +       printk("%ld sysctl saved mem kzalloc \n", sizeof(struct ctl_table));
> > 
> >          return new;
> >   }
> > @@ -1199,6 +1201,9 @@ static struct ctl_table_header *new_links(struct ctl_dir *dir, struct ctl_table_
> >                  link_name += len;
> >                  link++;
> >          }
> > +       // Counts additional sentinel used for each new registration
> > +       //if ((head->ctl_table + head->ctl_table_size)->procname)
> > +               printk("%ld sysctl saved mem kzalloc \n", sizeof(struct ctl_table));
> >          init_header(links, dir->header.root, dir->header.set, node, link_table,
> >                      head->ctl_table_size);
> >          links->nreg = nr_entries;
> > "
> > and then run the following bash script in the kernel:
> > 
> > accum=0
> > for n in $(dmesg | grep kzalloc | awk '{print $3}') ; do
> >      echo $n
> >      accum=$(calc "$accum + $n")
> > done
> > echo $accum
> > 
> > [4]
> > add/remove: 0/0 grow/shrink: 0/21 up/down: 0/-2432 (-2432)
> > Function                                     old     new   delta
> > xpc_sys_xpc_hb                               192     128     -64
> > xpc_sys_xpc                                  128      64     -64
> > vrf_table                                    128      64     -64
> > ucma_ctl_table                               128      64     -64
> > tty_table                                    192     128     -64
> > sg_sysctls                                   128      64     -64
> > scsi_table                                   128      64     -64
> > random_table                                 448     384     -64
> > raid_table                                   192     128     -64
> > oa_table                                     192     128     -64
> > mac_hid_files                                256     192     -64
> > iwcm_ctl_table                               128      64     -64
> > ipmi_table                                   128      64     -64
> > hv_ctl_table                                 128      64     -64
> > hpet_table                                   128      64     -64
> > firmware_config_table                        192     128     -64
> > cdrom_table                                  448     384     -64
> > balloon_table                                128      64     -64
> > parport_sysctl_template                      912     720    -192
> > parport_default_sysctl_table                 584     136    -448
> > parport_device_sysctl_template               776     136    -640
> > Total: Before=429940038, After=429937606, chg -0.00%
> > 
> > [5]
> > add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-64 (-64)
> > Function                                     old     new   delta
> > random_table                                 448     384     -64
> > Total: Before=1885527, After=1885463, chg -0.00%
> > 
> > [6] https://lore.kernel.org/all/20230913-jag-sysctl_remove_empty_elem_arch-v2-0-d1bd13a29bae@samsung.com/
> > 
> > Signed-off-by: Joel Granados <j.granados@samsung.com>
> > 
> > To: Luis Chamberlain <mcgrof@kernel.org>
> > To: willy@infradead.org
> > To: josh@joshtriplett.org
> > To: Kees Cook <keescook@chromium.org>
> > To: Phillip Potter <phil@philpotter.co.uk>
> > To: Clemens Ladisch <clemens@ladisch.de>
> > To: Arnd Bergmann <arnd@arndb.de>
> > To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> > To: Juergen Gross <jgross@suse.com>
> > To: Stefano Stabellini <sstabellini@kernel.org>
> > To: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
> > To: Jiri Slaby <jirislaby@kernel.org>
> > To: "James E.J. Bottomley" <jejb@linux.ibm.com>
> > To: "Martin K. Petersen" <martin.petersen@oracle.com>
> > To: Doug Gilbert <dgilbert@interlog.com>
> > To: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
> > To: Jason Gunthorpe <jgg@ziepe.ca>
> > To: Leon Romanovsky <leon@kernel.org>
> > To: Corey Minyard <minyard@acm.org>
> > To: Theodore Ts'o <tytso@mit.edu>
> > To: "Jason A. Donenfeld" <Jason@zx2c4.com>
> > To: David Ahern <dsahern@kernel.org>
> > To: "David S. Miller" <davem@davemloft.net>
> > To: Eric Dumazet <edumazet@google.com>
> > To: Jakub Kicinski <kuba@kernel.org>
> > To: Paolo Abeni <pabeni@redhat.com>
> > To: Robin Holt <robinmholt@gmail.com>
> > To: Steve Wahl <steve.wahl@hpe.com>
> > To: Russ Weight <russell.h.weight@intel.com>
> > To: "Rafael J. Wysocki" <rafael@kernel.org>
> > To: Song Liu <song@kernel.org>
> > To: "K. Y. Srinivasan" <kys@microsoft.com>
> > To: Haiyang Zhang <haiyangz@microsoft.com>
> > To: Wei Liu <wei.liu@kernel.org>
> > To: Dexuan Cui <decui@microsoft.com>
> > To: Jani Nikula <jani.nikula@linux.intel.com>
> > To: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
> > To: Rodrigo Vivi <rodrigo.vivi@intel.com>
> > To: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
> > To: David Airlie <airlied@gmail.com>
> > To: Daniel Vetter <daniel@ffwll.ch>
> > Cc: linux-kernel@vger.kernel.org
> > Cc: xen-devel@lists.xenproject.org
> > Cc: linux-serial@vger.kernel.org
> > Cc: linux-scsi@vger.kernel.org
> > Cc: linuxppc-dev@lists.ozlabs.org
> > Cc: linux-rdma@vger.kernel.org
> > Cc: openipmi-developer@lists.sourceforge.net
> > Cc: netdev@vger.kernel.org
> > Cc: linux-raid@vger.kernel.org
> > Cc: linux-hyperv@vger.kernel.org
> > Cc: intel-gfx@lists.freedesktop.org
> > Cc: dri-devel@lists.freedesktop.org
> > 
> > ---
> > 
> > ---
> > Joel Granados (15):
> >        cdrom: Remove now superfluous sentinel element from ctl_table array
> >        hpet: Remove now superfluous sentinel element from ctl_table array
> >        xen: Remove now superfluous sentinel element from ctl_table array
> >        tty: Remove now superfluous sentinel element from ctl_table array
> >        scsi: Remove now superfluous sentinel element from ctl_table array
> >        parport: Remove the now superfluous sentinel element from ctl_table array
> >        macintosh: Remove the now superfluous sentinel element from ctl_table array
> >        infiniband: Remove the now superfluous sentinel element from ctl_table array
> >        char-misc: Remove the now superfluous sentinel element from ctl_table array
> >        vrf: Remove the now superfluous sentinel element from ctl_table array
> >        sgi-xp: Remove the now superfluous sentinel element from ctl_table array
> >        fw loader: Remove the now superfluous sentinel element from ctl_table array
> >        raid: Remove now superfluous sentinel element from ctl_table array
> >        Drivers: hv: Remove now superfluous sentinel element from ctl_table array
> >        intel drm: Remove now superfluous sentinel element from ctl_table array
> > 
> >   drivers/base/firmware_loader/fallback_table.c |  1 -
> >   drivers/cdrom/cdrom.c                         |  1 -
> >   drivers/char/hpet.c                           |  1 -
> >   drivers/char/ipmi/ipmi_poweroff.c             |  1 -
> >   drivers/char/random.c                         |  1 -
> >   drivers/gpu/drm/i915/i915_perf.c              |  1 -
> >   drivers/hv/hv_common.c                        |  1 -
> >   drivers/infiniband/core/iwcm.c                |  1 -
> >   drivers/infiniband/core/ucma.c                |  1 -
> >   drivers/macintosh/mac_hid.c                   |  1 -
> >   drivers/md/md.c                               |  1 -
> >   drivers/misc/sgi-xp/xpc_main.c                |  2 --
> >   drivers/net/vrf.c                             |  1 -
> >   drivers/parport/procfs.c                      | 28 +++++++++++----------------
> >   drivers/scsi/scsi_sysctl.c                    |  1 -
> >   drivers/scsi/sg.c                             |  1 -
> >   drivers/tty/tty_io.c                          |  1 -
> >   drivers/xen/balloon.c                         |  1 -
> >   18 files changed, 11 insertions(+), 35 deletions(-)
> > ---
> > base-commit: 0e945134b680040b8613e962f586d91b6d40292d
> > change-id: 20230927-jag-sysctl_remove_empty_elem_drivers-f034962a0d8c
> > 
> > Best regards,

-- 

Joel Granados

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 91+ messages in thread

* Re: [Intel-gfx] [PATCH v2 00/15] sysctl: Remove sentinel elements from drivers
@ 2023-10-03  8:47     ` Joel Granados
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados @ 2023-10-03  8:47 UTC (permalink / raw)
  To: Christophe Leroy
  Cc: Jason A. Donenfeld, Steve Wahl, Clemens Ladisch, linux-hyperv,
	dri-devel, Phillip Potter, Song Liu, Eric Dumazet,
	K. Y. Srinivasan, Jiri Slaby, Russ Weight, Wei Liu,
	Stefano Stabellini, Corey Minyard, Leon Romanovsky, linux-rdma,
	David Airlie, Rafael J. Wysocki, Dexuan Cui, willy,
	Jason Gunthorpe, linux-serial, Doug Gilbert, Jakub Kicinski,
	Paolo Abeni, Haiyang Zhang, Kees Cook, Arnd Bergmann,
	linux-kernel, James E.J. Bottomley, josh, linux-raid,
	Rodrigo Vivi, xen-devel, openipmi-developer, Juergen Gross,
	Theodore Ts'o, linux-scsi, Martin K. Petersen,
	Greg Kroah-Hartman, David Ahern, linuxppc-dev, Robin Holt,
	David S. Miller, Oleksandr Tyshchenko, Luis Chamberlain,
	Daniel Vetter, netdev, intel-gfx, Sudip Mukherjee

[-- Attachment #1: Type: text/plain, Size: 12148 bytes --]

On Mon, Oct 02, 2023 at 12:27:18PM +0000, Christophe Leroy wrote:
> 
> 
> Le 02/10/2023 à 10:55, Joel Granados via B4 Relay a écrit :
> > From: Joel Granados <j.granados@samsung.com>
> > 
<--- snip --->
> >          - The "yesall" config saves 2432 bytes [4]
> >          - The "tiny" config saves 64 bytes [5]
> >      * memory usage:
> >          In this case there were no bytes saved because I do not have any
> >          of the drivers in the patch. To measure it comment the printk in
> >          `new_dir` and uncomment the if conditional in `new_links` [3].
> > 
> > ---
> > Changes in v2:
> > - Left the dangling comma in the ctl_table arrays.
> > - Link to v1: https://lore.kernel.org/r/20230928-jag-sysctl_remove_empty_elem_drivers-v1-0-e59120fca9f9@samsung.com
> > 
> > Comments/feedback greatly appreciated
> 
> Same problem on powerpc CI tests, all boot target failed, most of them 
> with similar OOPS, see 
> https://patchwork.ozlabs.org/project/linuxppc-dev/patch/20231002-jag-sysctl_remove_empty_elem_drivers-v2-15-02dd0d46f71e@samsung.com/
I found the culprit!. Here you are rebasing on top of v6.5.0-rc6 "INFO:
Looking for kernel version: 6.5.0-rc6-gbf2ac4d7d596". The error makes
sense becuase in that version we have not introduced the stopping
criteria based on the ctl_table array size, so the loop continues
looking for an empty sentinel past valid memory (and does not find it).
The ctl_table check catches it but then fails to do a proper error
because we have already tried to access invalid memory. The solution
here is to make sure to rebase in on top of the latest rc in v6.6.

> 
> What is strange is that I pushed your series into my github account, and 
> got no failure, see https://github.com/chleroy/linux/actions/runs/6378951278
And here it works because you use the latest rc : "INFO: Looking for
kernel version: 6.6.0-rc3-g23d4b5db743c"

> 
> Christophe
> 
> > 
> > Best
> > 
> > Joel
> > 
> > [1]
> > We are able to remove a sentinel table without behavioral change by
> > introducing a table_size argument in the same place where procname is
> > checked for NULL. The idea is for it to keep stopping when it hits
> > ->procname == NULL, while the sentinel is still present. And when the
> > sentinel is removed, it will stop on the table_size. You can go to
> > (https://lore.kernel.org/all/20230809105006.1198165-1-j.granados@samsung.com/)
> > for more information.
> > 
> > [2]
> > Links Related to the ctl_table sentinel removal:
> > * Good summary from Luis sent with the "pull request" for the
> >    preparation patches.
> >    https://lore.kernel.org/all/ZO5Yx5JFogGi%2FcBo@bombadil.infradead.org/
> > * Another very good summary from Luis.
> >    https://lore.kernel.org/all/ZMFizKFkVxUFtSqa@bombadil.infradead.org/
> > * This is a patch set that replaces register_sysctl_table with register_sysctl
> >    https://lore.kernel.org/all/20230302204612.782387-1-mcgrof@kernel.org/
> > * Patch set to deprecate register_sysctl_paths()
> >    https://lore.kernel.org/all/20230302202826.776286-1-mcgrof@kernel.org/
> > * Here there is an explicit expectation for the removal of the sentinel element.
> >    https://lore.kernel.org/all/20230321130908.6972-1-frank.li@vivo.com
> > * The "ARRAY_SIZE" approach was mentioned (proposed?) in this thread
> >    https://lore.kernel.org/all/20220220060626.15885-1-tangmeng@uniontech.com
> > 
> > [3]
> > To measure the in memory savings apply this on top of this patchset.
> > 
> > "
> > diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c
> > index c88854df0b62..e0073a627bac 100644
> > --- a/fs/proc/proc_sysctl.c
> > +++ b/fs/proc/proc_sysctl.c
> > @@ -976,6 +976,8 @@ static struct ctl_dir *new_dir(struct ctl_table_set *set,
> >          table[0].procname = new_name;
> >          table[0].mode = S_IFDIR|S_IRUGO|S_IXUGO;
> >          init_header(&new->header, set->dir.header.root, set, node, table, 1);
> > +       // Counts additional sentinel used for each new dir.
> > +       printk("%ld sysctl saved mem kzalloc \n", sizeof(struct ctl_table));
> > 
> >          return new;
> >   }
> > @@ -1199,6 +1201,9 @@ static struct ctl_table_header *new_links(struct ctl_dir *dir, struct ctl_table_
> >                  link_name += len;
> >                  link++;
> >          }
> > +       // Counts additional sentinel used for each new registration
> > +       //if ((head->ctl_table + head->ctl_table_size)->procname)
> > +               printk("%ld sysctl saved mem kzalloc \n", sizeof(struct ctl_table));
> >          init_header(links, dir->header.root, dir->header.set, node, link_table,
> >                      head->ctl_table_size);
> >          links->nreg = nr_entries;
> > "
> > and then run the following bash script in the kernel:
> > 
> > accum=0
> > for n in $(dmesg | grep kzalloc | awk '{print $3}') ; do
> >      echo $n
> >      accum=$(calc "$accum + $n")
> > done
> > echo $accum
> > 
> > [4]
> > add/remove: 0/0 grow/shrink: 0/21 up/down: 0/-2432 (-2432)
> > Function                                     old     new   delta
> > xpc_sys_xpc_hb                               192     128     -64
> > xpc_sys_xpc                                  128      64     -64
> > vrf_table                                    128      64     -64
> > ucma_ctl_table                               128      64     -64
> > tty_table                                    192     128     -64
> > sg_sysctls                                   128      64     -64
> > scsi_table                                   128      64     -64
> > random_table                                 448     384     -64
> > raid_table                                   192     128     -64
> > oa_table                                     192     128     -64
> > mac_hid_files                                256     192     -64
> > iwcm_ctl_table                               128      64     -64
> > ipmi_table                                   128      64     -64
> > hv_ctl_table                                 128      64     -64
> > hpet_table                                   128      64     -64
> > firmware_config_table                        192     128     -64
> > cdrom_table                                  448     384     -64
> > balloon_table                                128      64     -64
> > parport_sysctl_template                      912     720    -192
> > parport_default_sysctl_table                 584     136    -448
> > parport_device_sysctl_template               776     136    -640
> > Total: Before=429940038, After=429937606, chg -0.00%
> > 
> > [5]
> > add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-64 (-64)
> > Function                                     old     new   delta
> > random_table                                 448     384     -64
> > Total: Before=1885527, After=1885463, chg -0.00%
> > 
> > [6] https://lore.kernel.org/all/20230913-jag-sysctl_remove_empty_elem_arch-v2-0-d1bd13a29bae@samsung.com/
> > 
> > Signed-off-by: Joel Granados <j.granados@samsung.com>
> > 
> > To: Luis Chamberlain <mcgrof@kernel.org>
> > To: willy@infradead.org
> > To: josh@joshtriplett.org
> > To: Kees Cook <keescook@chromium.org>
> > To: Phillip Potter <phil@philpotter.co.uk>
> > To: Clemens Ladisch <clemens@ladisch.de>
> > To: Arnd Bergmann <arnd@arndb.de>
> > To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> > To: Juergen Gross <jgross@suse.com>
> > To: Stefano Stabellini <sstabellini@kernel.org>
> > To: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
> > To: Jiri Slaby <jirislaby@kernel.org>
> > To: "James E.J. Bottomley" <jejb@linux.ibm.com>
> > To: "Martin K. Petersen" <martin.petersen@oracle.com>
> > To: Doug Gilbert <dgilbert@interlog.com>
> > To: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
> > To: Jason Gunthorpe <jgg@ziepe.ca>
> > To: Leon Romanovsky <leon@kernel.org>
> > To: Corey Minyard <minyard@acm.org>
> > To: Theodore Ts'o <tytso@mit.edu>
> > To: "Jason A. Donenfeld" <Jason@zx2c4.com>
> > To: David Ahern <dsahern@kernel.org>
> > To: "David S. Miller" <davem@davemloft.net>
> > To: Eric Dumazet <edumazet@google.com>
> > To: Jakub Kicinski <kuba@kernel.org>
> > To: Paolo Abeni <pabeni@redhat.com>
> > To: Robin Holt <robinmholt@gmail.com>
> > To: Steve Wahl <steve.wahl@hpe.com>
> > To: Russ Weight <russell.h.weight@intel.com>
> > To: "Rafael J. Wysocki" <rafael@kernel.org>
> > To: Song Liu <song@kernel.org>
> > To: "K. Y. Srinivasan" <kys@microsoft.com>
> > To: Haiyang Zhang <haiyangz@microsoft.com>
> > To: Wei Liu <wei.liu@kernel.org>
> > To: Dexuan Cui <decui@microsoft.com>
> > To: Jani Nikula <jani.nikula@linux.intel.com>
> > To: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
> > To: Rodrigo Vivi <rodrigo.vivi@intel.com>
> > To: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
> > To: David Airlie <airlied@gmail.com>
> > To: Daniel Vetter <daniel@ffwll.ch>
> > Cc: linux-kernel@vger.kernel.org
> > Cc: xen-devel@lists.xenproject.org
> > Cc: linux-serial@vger.kernel.org
> > Cc: linux-scsi@vger.kernel.org
> > Cc: linuxppc-dev@lists.ozlabs.org
> > Cc: linux-rdma@vger.kernel.org
> > Cc: openipmi-developer@lists.sourceforge.net
> > Cc: netdev@vger.kernel.org
> > Cc: linux-raid@vger.kernel.org
> > Cc: linux-hyperv@vger.kernel.org
> > Cc: intel-gfx@lists.freedesktop.org
> > Cc: dri-devel@lists.freedesktop.org
> > 
> > ---
> > 
> > ---
> > Joel Granados (15):
> >        cdrom: Remove now superfluous sentinel element from ctl_table array
> >        hpet: Remove now superfluous sentinel element from ctl_table array
> >        xen: Remove now superfluous sentinel element from ctl_table array
> >        tty: Remove now superfluous sentinel element from ctl_table array
> >        scsi: Remove now superfluous sentinel element from ctl_table array
> >        parport: Remove the now superfluous sentinel element from ctl_table array
> >        macintosh: Remove the now superfluous sentinel element from ctl_table array
> >        infiniband: Remove the now superfluous sentinel element from ctl_table array
> >        char-misc: Remove the now superfluous sentinel element from ctl_table array
> >        vrf: Remove the now superfluous sentinel element from ctl_table array
> >        sgi-xp: Remove the now superfluous sentinel element from ctl_table array
> >        fw loader: Remove the now superfluous sentinel element from ctl_table array
> >        raid: Remove now superfluous sentinel element from ctl_table array
> >        Drivers: hv: Remove now superfluous sentinel element from ctl_table array
> >        intel drm: Remove now superfluous sentinel element from ctl_table array
> > 
> >   drivers/base/firmware_loader/fallback_table.c |  1 -
> >   drivers/cdrom/cdrom.c                         |  1 -
> >   drivers/char/hpet.c                           |  1 -
> >   drivers/char/ipmi/ipmi_poweroff.c             |  1 -
> >   drivers/char/random.c                         |  1 -
> >   drivers/gpu/drm/i915/i915_perf.c              |  1 -
> >   drivers/hv/hv_common.c                        |  1 -
> >   drivers/infiniband/core/iwcm.c                |  1 -
> >   drivers/infiniband/core/ucma.c                |  1 -
> >   drivers/macintosh/mac_hid.c                   |  1 -
> >   drivers/md/md.c                               |  1 -
> >   drivers/misc/sgi-xp/xpc_main.c                |  2 --
> >   drivers/net/vrf.c                             |  1 -
> >   drivers/parport/procfs.c                      | 28 +++++++++++----------------
> >   drivers/scsi/scsi_sysctl.c                    |  1 -
> >   drivers/scsi/sg.c                             |  1 -
> >   drivers/tty/tty_io.c                          |  1 -
> >   drivers/xen/balloon.c                         |  1 -
> >   18 files changed, 11 insertions(+), 35 deletions(-)
> > ---
> > base-commit: 0e945134b680040b8613e962f586d91b6d40292d
> > change-id: 20230927-jag-sysctl_remove_empty_elem_drivers-f034962a0d8c
> > 
> > Best regards,

-- 

Joel Granados

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 91+ messages in thread

* Re: [PATCH v2 00/15] sysctl: Remove sentinel elements from drivers
@ 2023-10-03  8:47     ` Joel Granados
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados @ 2023-10-03  8:47 UTC (permalink / raw)
  To: Christophe Leroy
  Cc: Jason A. Donenfeld, Steve Wahl, Joonas Lahtinen, Clemens Ladisch,
	linux-hyperv, dri-devel, Phillip Potter, Song Liu, Eric Dumazet,
	K. Y. Srinivasan, Jiri Slaby, Russ Weight, Wei Liu,
	Stefano Stabellini, Corey Minyard, Leon Romanovsky, linux-rdma,
	David Airlie, Rafael J. Wysocki, Dexuan Cui, willy,
	Jason Gunthorpe, linux-serial, Doug Gilbert, Jakub Kicinski,
	Paolo Abeni, Haiyang Zhang, Kees Cook, Arnd Bergmann,
	linux-kernel, James E.J. Bottomley, josh, Jani Nikula,
	linux-raid, Rodrigo Vivi, xen-devel, openipmi-developer,
	Juergen Gross, Tvrtko Ursulin, Theodore Ts'o, linux-scsi,
	Martin K. Petersen, Greg Kroah-Hartman, David Ahern,
	linuxppc-dev, Robin Holt, David S. Miller, Oleksandr Tyshchenko,
	Luis Chamberlain, Daniel Vetter, netdev@vger.kernel.org

[-- Attachment #1: Type: text/plain, Size: 12148 bytes --]

On Mon, Oct 02, 2023 at 12:27:18PM +0000, Christophe Leroy wrote:
> 
> 
> Le 02/10/2023 à 10:55, Joel Granados via B4 Relay a écrit :
> > From: Joel Granados <j.granados@samsung.com>
> > 
<--- snip --->
> >          - The "yesall" config saves 2432 bytes [4]
> >          - The "tiny" config saves 64 bytes [5]
> >      * memory usage:
> >          In this case there were no bytes saved because I do not have any
> >          of the drivers in the patch. To measure it comment the printk in
> >          `new_dir` and uncomment the if conditional in `new_links` [3].
> > 
> > ---
> > Changes in v2:
> > - Left the dangling comma in the ctl_table arrays.
> > - Link to v1: https://lore.kernel.org/r/20230928-jag-sysctl_remove_empty_elem_drivers-v1-0-e59120fca9f9@samsung.com
> > 
> > Comments/feedback greatly appreciated
> 
> Same problem on powerpc CI tests, all boot target failed, most of them 
> with similar OOPS, see 
> https://patchwork.ozlabs.org/project/linuxppc-dev/patch/20231002-jag-sysctl_remove_empty_elem_drivers-v2-15-02dd0d46f71e@samsung.com/
I found the culprit!. Here you are rebasing on top of v6.5.0-rc6 "INFO:
Looking for kernel version: 6.5.0-rc6-gbf2ac4d7d596". The error makes
sense becuase in that version we have not introduced the stopping
criteria based on the ctl_table array size, so the loop continues
looking for an empty sentinel past valid memory (and does not find it).
The ctl_table check catches it but then fails to do a proper error
because we have already tried to access invalid memory. The solution
here is to make sure to rebase in on top of the latest rc in v6.6.

> 
> What is strange is that I pushed your series into my github account, and 
> got no failure, see https://github.com/chleroy/linux/actions/runs/6378951278
And here it works because you use the latest rc : "INFO: Looking for
kernel version: 6.6.0-rc3-g23d4b5db743c"

> 
> Christophe
> 
> > 
> > Best
> > 
> > Joel
> > 
> > [1]
> > We are able to remove a sentinel table without behavioral change by
> > introducing a table_size argument in the same place where procname is
> > checked for NULL. The idea is for it to keep stopping when it hits
> > ->procname == NULL, while the sentinel is still present. And when the
> > sentinel is removed, it will stop on the table_size. You can go to
> > (https://lore.kernel.org/all/20230809105006.1198165-1-j.granados@samsung.com/)
> > for more information.
> > 
> > [2]
> > Links Related to the ctl_table sentinel removal:
> > * Good summary from Luis sent with the "pull request" for the
> >    preparation patches.
> >    https://lore.kernel.org/all/ZO5Yx5JFogGi%2FcBo@bombadil.infradead.org/
> > * Another very good summary from Luis.
> >    https://lore.kernel.org/all/ZMFizKFkVxUFtSqa@bombadil.infradead.org/
> > * This is a patch set that replaces register_sysctl_table with register_sysctl
> >    https://lore.kernel.org/all/20230302204612.782387-1-mcgrof@kernel.org/
> > * Patch set to deprecate register_sysctl_paths()
> >    https://lore.kernel.org/all/20230302202826.776286-1-mcgrof@kernel.org/
> > * Here there is an explicit expectation for the removal of the sentinel element.
> >    https://lore.kernel.org/all/20230321130908.6972-1-frank.li@vivo.com
> > * The "ARRAY_SIZE" approach was mentioned (proposed?) in this thread
> >    https://lore.kernel.org/all/20220220060626.15885-1-tangmeng@uniontech.com
> > 
> > [3]
> > To measure the in memory savings apply this on top of this patchset.
> > 
> > "
> > diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c
> > index c88854df0b62..e0073a627bac 100644
> > --- a/fs/proc/proc_sysctl.c
> > +++ b/fs/proc/proc_sysctl.c
> > @@ -976,6 +976,8 @@ static struct ctl_dir *new_dir(struct ctl_table_set *set,
> >          table[0].procname = new_name;
> >          table[0].mode = S_IFDIR|S_IRUGO|S_IXUGO;
> >          init_header(&new->header, set->dir.header.root, set, node, table, 1);
> > +       // Counts additional sentinel used for each new dir.
> > +       printk("%ld sysctl saved mem kzalloc \n", sizeof(struct ctl_table));
> > 
> >          return new;
> >   }
> > @@ -1199,6 +1201,9 @@ static struct ctl_table_header *new_links(struct ctl_dir *dir, struct ctl_table_
> >                  link_name += len;
> >                  link++;
> >          }
> > +       // Counts additional sentinel used for each new registration
> > +       //if ((head->ctl_table + head->ctl_table_size)->procname)
> > +               printk("%ld sysctl saved mem kzalloc \n", sizeof(struct ctl_table));
> >          init_header(links, dir->header.root, dir->header.set, node, link_table,
> >                      head->ctl_table_size);
> >          links->nreg = nr_entries;
> > "
> > and then run the following bash script in the kernel:
> > 
> > accum=0
> > for n in $(dmesg | grep kzalloc | awk '{print $3}') ; do
> >      echo $n
> >      accum=$(calc "$accum + $n")
> > done
> > echo $accum
> > 
> > [4]
> > add/remove: 0/0 grow/shrink: 0/21 up/down: 0/-2432 (-2432)
> > Function                                     old     new   delta
> > xpc_sys_xpc_hb                               192     128     -64
> > xpc_sys_xpc                                  128      64     -64
> > vrf_table                                    128      64     -64
> > ucma_ctl_table                               128      64     -64
> > tty_table                                    192     128     -64
> > sg_sysctls                                   128      64     -64
> > scsi_table                                   128      64     -64
> > random_table                                 448     384     -64
> > raid_table                                   192     128     -64
> > oa_table                                     192     128     -64
> > mac_hid_files                                256     192     -64
> > iwcm_ctl_table                               128      64     -64
> > ipmi_table                                   128      64     -64
> > hv_ctl_table                                 128      64     -64
> > hpet_table                                   128      64     -64
> > firmware_config_table                        192     128     -64
> > cdrom_table                                  448     384     -64
> > balloon_table                                128      64     -64
> > parport_sysctl_template                      912     720    -192
> > parport_default_sysctl_table                 584     136    -448
> > parport_device_sysctl_template               776     136    -640
> > Total: Before=429940038, After=429937606, chg -0.00%
> > 
> > [5]
> > add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-64 (-64)
> > Function                                     old     new   delta
> > random_table                                 448     384     -64
> > Total: Before=1885527, After=1885463, chg -0.00%
> > 
> > [6] https://lore.kernel.org/all/20230913-jag-sysctl_remove_empty_elem_arch-v2-0-d1bd13a29bae@samsung.com/
> > 
> > Signed-off-by: Joel Granados <j.granados@samsung.com>
> > 
> > To: Luis Chamberlain <mcgrof@kernel.org>
> > To: willy@infradead.org
> > To: josh@joshtriplett.org
> > To: Kees Cook <keescook@chromium.org>
> > To: Phillip Potter <phil@philpotter.co.uk>
> > To: Clemens Ladisch <clemens@ladisch.de>
> > To: Arnd Bergmann <arnd@arndb.de>
> > To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> > To: Juergen Gross <jgross@suse.com>
> > To: Stefano Stabellini <sstabellini@kernel.org>
> > To: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
> > To: Jiri Slaby <jirislaby@kernel.org>
> > To: "James E.J. Bottomley" <jejb@linux.ibm.com>
> > To: "Martin K. Petersen" <martin.petersen@oracle.com>
> > To: Doug Gilbert <dgilbert@interlog.com>
> > To: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
> > To: Jason Gunthorpe <jgg@ziepe.ca>
> > To: Leon Romanovsky <leon@kernel.org>
> > To: Corey Minyard <minyard@acm.org>
> > To: Theodore Ts'o <tytso@mit.edu>
> > To: "Jason A. Donenfeld" <Jason@zx2c4.com>
> > To: David Ahern <dsahern@kernel.org>
> > To: "David S. Miller" <davem@davemloft.net>
> > To: Eric Dumazet <edumazet@google.com>
> > To: Jakub Kicinski <kuba@kernel.org>
> > To: Paolo Abeni <pabeni@redhat.com>
> > To: Robin Holt <robinmholt@gmail.com>
> > To: Steve Wahl <steve.wahl@hpe.com>
> > To: Russ Weight <russell.h.weight@intel.com>
> > To: "Rafael J. Wysocki" <rafael@kernel.org>
> > To: Song Liu <song@kernel.org>
> > To: "K. Y. Srinivasan" <kys@microsoft.com>
> > To: Haiyang Zhang <haiyangz@microsoft.com>
> > To: Wei Liu <wei.liu@kernel.org>
> > To: Dexuan Cui <decui@microsoft.com>
> > To: Jani Nikula <jani.nikula@linux.intel.com>
> > To: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
> > To: Rodrigo Vivi <rodrigo.vivi@intel.com>
> > To: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
> > To: David Airlie <airlied@gmail.com>
> > To: Daniel Vetter <daniel@ffwll.ch>
> > Cc: linux-kernel@vger.kernel.org
> > Cc: xen-devel@lists.xenproject.org
> > Cc: linux-serial@vger.kernel.org
> > Cc: linux-scsi@vger.kernel.org
> > Cc: linuxppc-dev@lists.ozlabs.org
> > Cc: linux-rdma@vger.kernel.org
> > Cc: openipmi-developer@lists.sourceforge.net
> > Cc: netdev@vger.kernel.org
> > Cc: linux-raid@vger.kernel.org
> > Cc: linux-hyperv@vger.kernel.org
> > Cc: intel-gfx@lists.freedesktop.org
> > Cc: dri-devel@lists.freedesktop.org
> > 
> > ---
> > 
> > ---
> > Joel Granados (15):
> >        cdrom: Remove now superfluous sentinel element from ctl_table array
> >        hpet: Remove now superfluous sentinel element from ctl_table array
> >        xen: Remove now superfluous sentinel element from ctl_table array
> >        tty: Remove now superfluous sentinel element from ctl_table array
> >        scsi: Remove now superfluous sentinel element from ctl_table array
> >        parport: Remove the now superfluous sentinel element from ctl_table array
> >        macintosh: Remove the now superfluous sentinel element from ctl_table array
> >        infiniband: Remove the now superfluous sentinel element from ctl_table array
> >        char-misc: Remove the now superfluous sentinel element from ctl_table array
> >        vrf: Remove the now superfluous sentinel element from ctl_table array
> >        sgi-xp: Remove the now superfluous sentinel element from ctl_table array
> >        fw loader: Remove the now superfluous sentinel element from ctl_table array
> >        raid: Remove now superfluous sentinel element from ctl_table array
> >        Drivers: hv: Remove now superfluous sentinel element from ctl_table array
> >        intel drm: Remove now superfluous sentinel element from ctl_table array
> > 
> >   drivers/base/firmware_loader/fallback_table.c |  1 -
> >   drivers/cdrom/cdrom.c                         |  1 -
> >   drivers/char/hpet.c                           |  1 -
> >   drivers/char/ipmi/ipmi_poweroff.c             |  1 -
> >   drivers/char/random.c                         |  1 -
> >   drivers/gpu/drm/i915/i915_perf.c              |  1 -
> >   drivers/hv/hv_common.c                        |  1 -
> >   drivers/infiniband/core/iwcm.c                |  1 -
> >   drivers/infiniband/core/ucma.c                |  1 -
> >   drivers/macintosh/mac_hid.c                   |  1 -
> >   drivers/md/md.c                               |  1 -
> >   drivers/misc/sgi-xp/xpc_main.c                |  2 --
> >   drivers/net/vrf.c                             |  1 -
> >   drivers/parport/procfs.c                      | 28 +++++++++++----------------
> >   drivers/scsi/scsi_sysctl.c                    |  1 -
> >   drivers/scsi/sg.c                             |  1 -
> >   drivers/tty/tty_io.c                          |  1 -
> >   drivers/xen/balloon.c                         |  1 -
> >   18 files changed, 11 insertions(+), 35 deletions(-)
> > ---
> > base-commit: 0e945134b680040b8613e962f586d91b6d40292d
> > change-id: 20230927-jag-sysctl_remove_empty_elem_drivers-f034962a0d8c
> > 
> > Best regards,

-- 

Joel Granados

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 91+ messages in thread

* Re: [PATCH v2 00/15] sysctl: Remove sentinel elements from drivers
  2023-10-03  8:47     ` Joel Granados
                       ` (2 preceding siblings ...)
  (?)
@ 2023-10-07 22:28     ` Michael Ellerman
  2023-10-09  7:08       ` Joel Granados
  -1 siblings, 1 reply; 91+ messages in thread
From: Michael Ellerman @ 2023-10-07 22:28 UTC (permalink / raw)
  To: Joel Granados, Christophe Leroy; +Cc: linuxppc-dev, ajd

Joel Granados <j.granados@samsung.com> writes:
> On Mon, Oct 02, 2023 at 12:27:18PM +0000, Christophe Leroy wrote:
>> Le 02/10/2023 à 10:55, Joel Granados via B4 Relay a écrit :
>> > From: Joel Granados <j.granados@samsung.com>
>> > 
> <--- snip --->
>> >          - The "yesall" config saves 2432 bytes [4]
>> >          - The "tiny" config saves 64 bytes [5]
>> >      * memory usage:
>> >          In this case there were no bytes saved because I do not have any
>> >          of the drivers in the patch. To measure it comment the printk in
>> >          `new_dir` and uncomment the if conditional in `new_links` [3].
>> > 
>> > ---
>> > Changes in v2:
>> > - Left the dangling comma in the ctl_table arrays.
>> > - Link to v1: https://lore.kernel.org/r/20230928-jag-sysctl_remove_empty_elem_drivers-v1-0-e59120fca9f9@samsung.com
>> > 
>> > Comments/feedback greatly appreciated
>> 
>> Same problem on powerpc CI tests, all boot target failed, most of them 
>> with similar OOPS, see 
>> https://patchwork.ozlabs.org/project/linuxppc-dev/patch/20231002-jag-sysctl_remove_empty_elem_drivers-v2-15-02dd0d46f71e@samsung.com/
> I found the culprit!. Here you are rebasing on top of v6.5.0-rc6 "INFO:
> Looking for kernel version: 6.5.0-rc6-gbf2ac4d7d596". The error makes
> sense becuase in that version we have not introduced the stopping
> criteria based on the ctl_table array size, so the loop continues
> looking for an empty sentinel past valid memory (and does not find it).
> The ctl_table check catches it but then fails to do a proper error
> because we have already tried to access invalid memory. The solution
> here is to make sure to rebase in on top of the latest rc in v6.6.

Thanks for tracking it down.

This is my fault, previously Russell would update the branch that the CI
uses as its base. Now that he has left I need to do that myself, but had
forgotten.

Sorry for the noise.

cheers

^ permalink raw reply	[flat|nested] 91+ messages in thread

* Re: [PATCH v2 00/15] sysctl: Remove sentinel elements from drivers
  2023-10-07 22:28     ` Michael Ellerman
@ 2023-10-09  7:08       ` Joel Granados
  0 siblings, 0 replies; 91+ messages in thread
From: Joel Granados @ 2023-10-09  7:08 UTC (permalink / raw)
  To: Michael Ellerman; +Cc: linuxppc-dev, ajd

[-- Attachment #1: Type: text/plain, Size: 2417 bytes --]

On Sun, Oct 08, 2023 at 09:28:00AM +1100, Michael Ellerman wrote:
> Joel Granados <j.granados@samsung.com> writes:
> > On Mon, Oct 02, 2023 at 12:27:18PM +0000, Christophe Leroy wrote:
> >> Le 02/10/2023 à 10:55, Joel Granados via B4 Relay a écrit :
> >> > From: Joel Granados <j.granados@samsung.com>
> >> > 
> > <--- snip --->
> >> >          - The "yesall" config saves 2432 bytes [4]
> >> >          - The "tiny" config saves 64 bytes [5]
> >> >      * memory usage:
> >> >          In this case there were no bytes saved because I do not have any
> >> >          of the drivers in the patch. To measure it comment the printk in
> >> >          `new_dir` and uncomment the if conditional in `new_links` [3].
> >> > 
> >> > ---
> >> > Changes in v2:
> >> > - Left the dangling comma in the ctl_table arrays.
> >> > - Link to v1: https://lore.kernel.org/r/20230928-jag-sysctl_remove_empty_elem_drivers-v1-0-e59120fca9f9@samsung.com
> >> > 
> >> > Comments/feedback greatly appreciated
> >> 
> >> Same problem on powerpc CI tests, all boot target failed, most of them 
> >> with similar OOPS, see 
> >> https://protect2.fireeye.com/v1/url?k=9496ce12-f51ddb24-9497455d-000babff9b5d-d6b001302bd0fd0d&q=1&e=044c4c09-2b44-4ded-a682-a5afe9b8beec&u=https%3A%2F%2Fpatchwork.ozlabs.org%2Fproject%2Flinuxppc-dev%2Fpatch%2F20231002-jag-sysctl_remove_empty_elem_drivers-v2-15-02dd0d46f71e%40samsung.com%2F
> > I found the culprit!. Here you are rebasing on top of v6.5.0-rc6 "INFO:
> > Looking for kernel version: 6.5.0-rc6-gbf2ac4d7d596". The error makes
> > sense becuase in that version we have not introduced the stopping
> > criteria based on the ctl_table array size, so the loop continues
> > looking for an empty sentinel past valid memory (and does not find it).
> > The ctl_table check catches it but then fails to do a proper error
> > because we have already tried to access invalid memory. The solution
> > here is to make sure to rebase in on top of the latest rc in v6.6.
> 
> Thanks for tracking it down.
> 
> This is my fault, previously Russell would update the branch that the CI
> uses as its base. Now that he has left I need to do that myself, but had
> forgotten.
> 
> Sorry for the noise.
no worries. It was very helpfull to have two runs to compare with. That
was actually the thing that helped me find the issue.

Best
> 
> cheers

-- 

Joel Granados

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 91+ messages in thread

* Re: [Intel-gfx] [PATCH v2 00/15] sysctl: Remove sentinel elements from drivers
  2023-10-02  8:55 ` Joel Granados via B4 Relay
  (?)
  (?)
@ 2023-10-10 22:26   ` Luis Chamberlain
  -1 siblings, 0 replies; 91+ messages in thread
From: Luis Chamberlain @ 2023-10-10 22:26 UTC (permalink / raw)
  To: j.granados
  Cc: Jason A. Donenfeld, Steve Wahl, Clemens Ladisch, linux-hyperv,
	dri-devel, Phillip Potter, Song Liu, Eric Dumazet,
	K. Y. Srinivasan, Jiri Slaby, Russ Weight, Wei Liu,
	Stefano Stabellini, Corey Minyard, Leon Romanovsky, linux-rdma,
	David Airlie, Rafael J. Wysocki, Dexuan Cui, willy,
	Jason Gunthorpe, linux-serial, Doug Gilbert, Jakub Kicinski,
	Paolo Abeni, Haiyang Zhang, Kees Cook, Arnd Bergmann,
	linux-kernel, James E.J. Bottomley, intel-gfx, josh, linux-raid,
	Rodrigo Vivi, xen-devel, openipmi-developer, Juergen Gross,
	Theodore Ts'o, linux-scsi, Martin K. Petersen,
	Greg Kroah-Hartman, David Ahern, Robin Holt, Sudip Mukherjee,
	Oleksandr Tyshchenko, Daniel Vetter, netdev, linuxppc-dev,
	David S. Miller

On Mon, Oct 02, 2023 at 10:55:17AM +0200, Joel Granados via B4 Relay wrote:
> Changes in v2:
> - Left the dangling comma in the ctl_table arrays.
> - Link to v1: https://lore.kernel.org/r/20230928-jag-sysctl_remove_empty_elem_drivers-v1-0-e59120fca9f9@samsung.com

Thanks! Pushed onto sysctl-next for wider testing.

  Luis

^ permalink raw reply	[flat|nested] 91+ messages in thread

* Re: [PATCH v2 00/15] sysctl: Remove sentinel elements from drivers
@ 2023-10-10 22:26   ` Luis Chamberlain
  0 siblings, 0 replies; 91+ messages in thread
From: Luis Chamberlain @ 2023-10-10 22:26 UTC (permalink / raw)
  To: j.granados
  Cc: willy, josh, Kees Cook, Phillip Potter, Clemens Ladisch,
	Arnd Bergmann, Greg Kroah-Hartman, Juergen Gross,
	Stefano Stabellini, Oleksandr Tyshchenko, Jiri Slaby,
	James E.J. Bottomley, Martin K. Petersen, Doug Gilbert,
	Sudip Mukherjee, Jason Gunthorpe, Leon Romanovsky, Corey Minyard,
	Theodore Ts'o, Jason A. Donenfeld, David Ahern,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Robin Holt, Steve Wahl, Russ Weight, Rafael J. Wysocki, Song Liu,
	K. Y. Srinivasan, Haiyang Zhang, Wei Liu, Dexuan Cui,
	Jani Nikula, Joonas Lahtinen, Rodrigo Vivi, Tvrtko Ursulin,
	David Airlie, Daniel Vetter, linux-kernel, xen-devel,
	linux-serial, linux-scsi, linuxppc-dev, linux-rdma,
	openipmi-developer, netdev, linux-raid, linux-hyperv, intel-gfx,
	dri-devel

On Mon, Oct 02, 2023 at 10:55:17AM +0200, Joel Granados via B4 Relay wrote:
> Changes in v2:
> - Left the dangling comma in the ctl_table arrays.
> - Link to v1: https://lore.kernel.org/r/20230928-jag-sysctl_remove_empty_elem_drivers-v1-0-e59120fca9f9@samsung.com

Thanks! Pushed onto sysctl-next for wider testing.

  Luis

^ permalink raw reply	[flat|nested] 91+ messages in thread

* Re: [PATCH v2 00/15] sysctl: Remove sentinel elements from drivers
@ 2023-10-10 22:26   ` Luis Chamberlain
  0 siblings, 0 replies; 91+ messages in thread
From: Luis Chamberlain @ 2023-10-10 22:26 UTC (permalink / raw)
  To: j.granados
  Cc: Jason A. Donenfeld, Steve Wahl, Clemens Ladisch, linux-hyperv,
	dri-devel, Phillip Potter, Song Liu, Eric Dumazet,
	K. Y. Srinivasan, Jiri Slaby, Russ Weight, Wei Liu,
	Stefano Stabellini, Corey Minyard, Leon Romanovsky, linux-rdma,
	Rafael J. Wysocki, Dexuan Cui, willy, Jason Gunthorpe,
	linux-serial, Doug Gilbert, Jakub Kicinski, Paolo Abeni,
	Haiyang Zhang, Kees Cook, Arnd Bergmann, linux-kernel,
	James E.J. Bottomley, intel-gfx, josh, linux-raid, Rodrigo Vivi,
	xen-devel, openipmi-developer, Juergen Gross, Tvrtko Ursulin,
	Theodore Ts'o, linux-scsi, Martin K. Petersen,
	Greg Kroah-Hartman, David Ahern, Robin Holt, Sudip Mukherjee,
	Oleksandr Tyshchenko, netdev, linuxppc-dev, David S. Miller

On Mon, Oct 02, 2023 at 10:55:17AM +0200, Joel Granados via B4 Relay wrote:
> Changes in v2:
> - Left the dangling comma in the ctl_table arrays.
> - Link to v1: https://lore.kernel.org/r/20230928-jag-sysctl_remove_empty_elem_drivers-v1-0-e59120fca9f9@samsung.com

Thanks! Pushed onto sysctl-next for wider testing.

  Luis

^ permalink raw reply	[flat|nested] 91+ messages in thread

* Re: [PATCH v2 00/15] sysctl: Remove sentinel elements from drivers
@ 2023-10-10 22:26   ` Luis Chamberlain
  0 siblings, 0 replies; 91+ messages in thread
From: Luis Chamberlain @ 2023-10-10 22:26 UTC (permalink / raw)
  To: j.granados
  Cc: Jason A. Donenfeld, Steve Wahl, Joonas Lahtinen, Clemens Ladisch,
	linux-hyperv, dri-devel, Phillip Potter, Song Liu, Eric Dumazet,
	K. Y. Srinivasan, Jiri Slaby, Russ Weight, Wei Liu,
	Stefano Stabellini, Corey Minyard, Leon Romanovsky, linux-rdma,
	David Airlie, Rafael J. Wysocki, Dexuan Cui, willy,
	Jason Gunthorpe, linux-serial, Doug Gilbert, Jakub Kicinski,
	Paolo Abeni, Haiyang Zhang, Kees Cook, Arnd Bergmann,
	linux-kernel, James E.J. Bottomley, intel-gfx, josh, Jani Nikula,
	linux-raid, Rodrigo Vivi, xen-devel, openipmi-developer,
	Juergen Gross, Tvrtko Ursulin, Theodore Ts'o, linux-scsi,
	Martin K. Petersen, Greg Kroah-Hartman, David Ahern, Robin Holt,
	Sudip Mukherjee, Oleksandr Tyshchenko, Daniel Vetter, netdev,
	linuxppc-dev, David S. Miller

On Mon, Oct 02, 2023 at 10:55:17AM +0200, Joel Granados via B4 Relay wrote:
> Changes in v2:
> - Left the dangling comma in the ctl_table arrays.
> - Link to v1: https://lore.kernel.org/r/20230928-jag-sysctl_remove_empty_elem_drivers-v1-0-e59120fca9f9@samsung.com

Thanks! Pushed onto sysctl-next for wider testing.

  Luis

^ permalink raw reply	[flat|nested] 91+ messages in thread

end of thread, other threads:[~2023-10-10 22:27 UTC | newest]

Thread overview: 91+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-02  8:55 [PATCH v2 00/15] sysctl: Remove sentinel elements from drivers Joel Granados via B4 Relay
2023-10-02  8:55 ` Joel Granados
2023-10-02  8:55 ` [Intel-gfx] " Joel Granados via B4 Relay
2023-10-02  8:55 ` Joel Granados via B4 Relay
2023-10-02  8:55 ` [PATCH v2 01/15] cdrom: Remove now superfluous sentinel element from ctl_table array Joel Granados via B4 Relay
2023-10-02  8:55   ` Joel Granados
2023-10-02  8:55   ` [Intel-gfx] " Joel Granados via B4 Relay
2023-10-02  8:55   ` Joel Granados via B4 Relay
2023-10-02 21:45   ` Phillip Potter
2023-10-02 21:45     ` Phillip Potter
2023-10-02 21:45     ` [Intel-gfx] " Phillip Potter
2023-10-02 21:45     ` Phillip Potter
2023-10-02  8:55 ` [PATCH v2 02/15] hpet: " Joel Granados via B4 Relay
2023-10-02  8:55   ` Joel Granados
2023-10-02  8:55   ` [Intel-gfx] " Joel Granados via B4 Relay
2023-10-02  8:55   ` Joel Granados via B4 Relay
2023-10-02  8:55 ` [PATCH v2 03/15] xen: " Joel Granados via B4 Relay
2023-10-02  8:55   ` Joel Granados
2023-10-02  8:55   ` [Intel-gfx] " Joel Granados via B4 Relay
2023-10-02  8:55   ` Joel Granados via B4 Relay
2023-10-02  8:55 ` [PATCH v2 04/15] tty: " Joel Granados via B4 Relay
2023-10-02  8:55   ` Joel Granados
2023-10-02  8:55   ` [Intel-gfx] " Joel Granados via B4 Relay
2023-10-02  8:55   ` Joel Granados via B4 Relay
2023-10-02  8:58   ` Jiri Slaby
2023-10-02  8:58     ` [Intel-gfx] " Jiri Slaby
2023-10-02  8:58     ` Jiri Slaby
2023-10-02  8:55 ` [PATCH v2 05/15] scsi: " Joel Granados via B4 Relay
2023-10-02  8:55   ` Joel Granados
2023-10-02  8:55   ` [Intel-gfx] " Joel Granados via B4 Relay
2023-10-02  8:55   ` Joel Granados via B4 Relay
2023-10-02  8:55 ` [PATCH v2 06/15] parport: Remove the " Joel Granados via B4 Relay
2023-10-02  8:55   ` Joel Granados
2023-10-02  8:55   ` [Intel-gfx] " Joel Granados via B4 Relay
2023-10-02  8:55   ` Joel Granados via B4 Relay
2023-10-02  8:55 ` [PATCH v2 07/15] macintosh: " Joel Granados via B4 Relay
2023-10-02  8:55   ` Joel Granados
2023-10-02  8:55   ` [Intel-gfx] " Joel Granados via B4 Relay
2023-10-02  8:55   ` Joel Granados via B4 Relay
2023-10-02  8:55 ` [PATCH v2 08/15] infiniband: " Joel Granados via B4 Relay
2023-10-02  8:55   ` Joel Granados
2023-10-02  8:55   ` [Intel-gfx] " Joel Granados via B4 Relay
2023-10-02  8:55   ` Joel Granados via B4 Relay
2023-10-02  8:55 ` [PATCH v2 09/15] char-misc: " Joel Granados via B4 Relay
2023-10-02  8:55   ` Joel Granados
2023-10-02  8:55   ` [Intel-gfx] " Joel Granados via B4 Relay
2023-10-02  8:55   ` Joel Granados via B4 Relay
2023-10-02  8:55 ` [PATCH v2 10/15] vrf: " Joel Granados via B4 Relay
2023-10-02  8:55   ` [Intel-gfx] " Joel Granados via B4 Relay
2023-10-02  8:55   ` Joel Granados via B4 Relay
2023-10-02  8:55 ` Joel Granados
2023-10-02  8:55 ` [PATCH v2 11/15] sgi-xp: " Joel Granados
2023-10-02  8:55 ` Joel Granados via B4 Relay
2023-10-02  8:55   ` [Intel-gfx] " Joel Granados via B4 Relay
2023-10-02  8:55   ` Joel Granados via B4 Relay
2023-10-02  8:55 ` [PATCH v2 12/15] fw loader: " Joel Granados
2023-10-02  8:55 ` Joel Granados via B4 Relay
2023-10-02  8:55   ` [Intel-gfx] " Joel Granados via B4 Relay
2023-10-02  8:55   ` Joel Granados via B4 Relay
2023-10-02  8:55 ` [PATCH v2 13/15] raid: Remove " Joel Granados via B4 Relay
2023-10-02  8:55   ` [Intel-gfx] " Joel Granados via B4 Relay
2023-10-02  8:55   ` Joel Granados via B4 Relay
2023-10-02  8:55 ` Joel Granados
2023-10-02  8:55 ` [PATCH v2 14/15] Drivers: hv: " Joel Granados via B4 Relay
2023-10-02  8:55   ` [Intel-gfx] " Joel Granados via B4 Relay
2023-10-02  8:55   ` Joel Granados via B4 Relay
2023-10-02  8:55 ` Joel Granados
2023-10-02  8:55 ` [PATCH v2 15/15] intel drm: " Joel Granados
2023-10-02  8:55 ` Joel Granados via B4 Relay
2023-10-02  8:55   ` [Intel-gfx] " Joel Granados via B4 Relay
2023-10-02  8:55   ` Joel Granados via B4 Relay
2023-10-02 12:27 ` [PATCH v2 00/15] sysctl: Remove sentinel elements from drivers Christophe Leroy
2023-10-02 12:27   ` [Intel-gfx] " Christophe Leroy
2023-10-03  8:47   ` Joel Granados
2023-10-03  8:47     ` Joel Granados
2023-10-03  8:47     ` [Intel-gfx] " Joel Granados
2023-10-03  8:47     ` Joel Granados
2023-10-07 22:28     ` Michael Ellerman
2023-10-09  7:08       ` Joel Granados
     [not found] ` <651a84ff.050a0220.51ca9.2e91SMTPIN_ADDED_BROKEN@mx.google.com>
2023-10-02 14:17   ` [PATCH v2 10/15] vrf: Remove the now superfluous sentinel element from ctl_table array David Ahern
2023-10-02 14:17     ` [Intel-gfx] " David Ahern
2023-10-02 14:17     ` David Ahern
     [not found] ` <=?utf-8?q?=3C20231002-jag-sysctl=5Fremove=5Fempty=5Felem=5Fdrive?=>
2023-10-02 14:33   ` [PATCH v2 11/15] sgi-xp: " Steve Wahl
2023-10-02 14:33     ` [Intel-gfx] " Steve Wahl
2023-10-02 14:33     ` Steve Wahl
2023-10-02 14:33     ` Steve Wahl
2023-10-02 20:28 ` [Intel-gfx] ✗ Fi.CI.BAT: failure for sysctl: Remove sentinel elements from drivers (rev2) Patchwork
2023-10-10 22:26 ` [Intel-gfx] [PATCH v2 00/15] sysctl: Remove sentinel elements from drivers Luis Chamberlain
2023-10-10 22:26   ` Luis Chamberlain
2023-10-10 22:26   ` Luis Chamberlain
2023-10-10 22:26   ` Luis Chamberlain

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.