Skip to content

scripts: check-sysctl-docs: adapt to new API

Thomas Weißschuh lkml 3 versions – In review

Get series with b4
b4 am [email protected] change-id 20231220-sysctl-check-8802651d945d

Versions newest first

  1. v3 Latest3 patches 3 repliesIn review
  2. v21 patch 3 repliesSuperseded
  3. v11 patch 3 repliesSuperseded

Changes in v3 from the cover letter

- Handle per-namespace tables
- Link to v2: https://lore.kernel.org/r/[email protected]

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3scripts: check-sysctl-docs: adapt to new APIscripts/check-sysctl-docs+12 -330 replies
2/3ipc: remove linebreaks from arguments of __register_sysctl_tableipc/ipc_sysctl.c+1 -21 reply
3/3scripts: check-sysctl-docs: handle per-namespace sysctlsscripts/check-sysctl-docs+20 -00 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJoel Granados
SeriesR-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/3] scripts: check-sysctl-docs: adapt to new API

The script expects the old sysctl_register_paths() API which was removed some time ago. Adapt it to work with the new sysctl_register()/sysctl_register_sz()/sysctl_register_init() APIs.

Per-namespace tables via __register_sysctl_table() are also handled.

Note that the script is already prepared for a potential constification of the ctl_table structs.

---
Changes in v3:
- Handle per-namespace tables
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Remove unused global variable "paths"
- Remove docs for deleted variables "children" and "paths"
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Thomas Weißschuh (3):
scripts: check-sysctl-docs: adapt to new API
ipc: remove linebreaks from arguments of __register_sysctl_table
scripts: check-sysctl-docs: handle per-namespace sysctls

 ipc/ipc_sysctl.c          |  3 +--
 scripts/check-sysctl-docs | 65 +++++++++++++++++++++++------------------------
 2 files changed, 33 insertions(+), 35 deletions(-)

---
base-commit: b401b621758e46812da61fa58a67c3fd8d91de0d
change-id: 20231220-sysctl-check-8802651d945d

Best regards,

Signature · 1 line
Thomas Weißschuh <[email protected]>