Skip to content

Commit

Permalink
sysctl: remove struct ctl_path
Browse files Browse the repository at this point in the history
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: 0199849 ("sysctl: remove register_sysctl_paths()")
Signed-off-by: Thomas Weißschuh <[email protected]>
Reviewed-by: Joel Granados <[email protected]>
Signed-off-by: Luis Chamberlain <[email protected]>
  • Loading branch information
t-8ch authored and mcgrof committed Dec 28, 2023
1 parent 0b68ab5 commit 5614298
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions include/linux/sysctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 5614298

Please sign in to comment.