Skip to content

Commit

Permalink
include/linux/sysctl.h: fix register_sysctl_mount_point() return type
Browse files Browse the repository at this point in the history
The CONFIG_SYSCTL=n stub returns the wrong type.

Fixes: ee9efac ("sysctl: add helper to register a sysctl mount point")
Reported-by: kernel test robot <[email protected]>
Acked-by: Luis Chamberlain <[email protected]>
Cc: Tong Zhang <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
akpm00 authored and torvalds committed Jan 30, 2022
1 parent f8c7e4e commit 6cb9174
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/sysctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ static inline struct ctl_table_header *register_sysctl_table(struct ctl_table *
return NULL;
}

static inline struct sysctl_header *register_sysctl_mount_point(const char *path)
static inline struct ctl_table_header *register_sysctl_mount_point(const char *path)
{
return NULL;
}
Expand Down

0 comments on commit 6cb9174

Please sign in to comment.