sysctl: remove struct ctl_path
authorThomas Weißschuh <linux@weissschuh.net>
Wed, 20 Dec 2023 21:23:35 +0000 (22:23 +0100)
committerLuis Chamberlain <mcgrof@kernel.org>
Thu, 28 Dec 2023 13:02:42 +0000 (05:02 -0800)
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.

Fixes: 0199849acd07 ("sysctl: remove register_sysctl_paths()")
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Joel Granados <j.granados@samsung.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
include/linux/sysctl.h

index 26a38161c28f9b1952389257f04a5dacbb2512a3..ee7d33b89e9ef3d44bfa45640343ddc5c2f59113 100644 (file)
@@ -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))