include/linux/sysctl.h: fix register_sysctl_mount_point() return type

The CONFIG_SYSCTL=n stub returns the wrong type.

Fixes: ee9efac48a ("sysctl: add helper to register a sysctl mount point")
Reported-by: kernel test robot <lkp@intel.com>
Acked-by: Luis Chamberlain <mcgrof@kernel.org>
Cc: Tong Zhang <ztong0001@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Andrew Morton 2022-01-29 13:40:52 -08:00 committed by Linus Torvalds
parent f8c7e4ede4
commit 6cb917411e
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}