From: Andrew Morton Date: Sat, 29 Jan 2022 21:40:52 +0000 (-0800) Subject: include/linux/sysctl.h: fix register_sysctl_mount_point() return type X-Git-Tag: baikal/aarch64/sdk6.1~4755^2~11 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=cd53ba2dc960dc145a5c58406d07da6af6d60b68;p=kernel.git include/linux/sysctl.h: fix register_sysctl_mount_point() return type The CONFIG_SYSCTL=n stub returns the wrong type. Fixes: c99c632972f21 ("sysctl: add helper to register a sysctl mount point") Reported-by: kernel test robot Acked-by: Luis Chamberlain Cc: Tong Zhang Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h index 180adf7da785c..6353d6db69b2e 100644 --- a/include/linux/sysctl.h +++ b/include/linux/sysctl.h @@ -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; }