sysctl: remove struct ctl_path
Subsystems (2)
PATCH 1/1 sysctl: remove struct ctl_path
All usages of this struct have been removed from the kernel tree.
The struct is still referenced by scripts/check-sysctl-docs but that script is broken anyways as it only supports the register_sysctl_paths() API and not the currently used register_sysctl() one.
--- include/linux/sysctl.h | 5 ----- 1 file changed, 5 deletions(-)
include/linux/sysctl.h +0 -5
@@ -210,11 +210,6 @@ struct ctl_table_root {int (*permissions)(struct ctl_table_header *head,struct ctl_table *table); }; -/* struct ctl_path describes where in the hierarchy a table is added */ -struct ctl_path { -const char *procname; -}; -#define register_sysctl (path, table) \ register_sysctl_sz(path, table, ARRAY_SIZE(table))
---
base-commit: 1a44b0073b9235521280e19d963b6dfef7888f18
change-id: 20231220-sysctl-paths-474697856a3f
Best regards,
Signature · 1 line
Thomas Weißschuh <[email protected]>
Quoted 33 lines · Thomas Weißschuh
All usages of this struct have been removed from the kernel tree.
The struct is still referenced by
scripts/check-sysctl-docsbut that script is broken anyways as it only supports theregister_sysctl_paths()API and not the currently usedregister_sysctl()one.Fixes 0199849acd07 ("sysctl: remove register_sysctl_paths()")Signed-off-by Thomas Weißschuh <[email protected]>--- include/linux/sysctl.h | 5 ----- 1 file changed, 5 deletions(-)include/linux/sysctl.h +0
-6@@ -210,11 +210,6 @@ struct ctl_table_root {int (*permissions)(struct ctl_table_header *head,struct ctl_table *table); }; -/* struct ctl_path describes where in the hierarchy a table is added */ -struct ctl_path { -const char *procname; -}; -#define register_sysctl (path, table) \ register_sysctl_sz(path, table, ARRAY_SIZE(table)) ---base-commit:
1a44b0073b9235521280e19d963b6dfef7888f18
change-id: 20231220-sysctl-paths-474697856a3f
Quoted 4 lines
Best regards,
Signature · 1 line
Thomas Weißschuh <[email protected]>
LGTM
Signature · 1 line
Joel Granados
Quoted 8 lines · Thomas Weißschuh
All usages of this struct have been removed from the kernel tree.
The struct is still referenced by
scripts/check-sysctl-docsbut that script is broken anyways as it only supports theregister_sysctl_paths()API and not the currently usedregister_sysctl()one.Fixes 0199849acd07 ("sysctl: remove register_sysctl_paths()")Signed-off-by Thomas Weißschuh <[email protected]>
Patch applied and pushed, thanks!
Luis