]> git.baikalelectronics.ru Git - kernel.git/commitdiff
include/linux/sysctl.h: fix register_sysctl_mount_point() return type
authorAndrew Morton <akpm@linux-foundation.org>
Sat, 29 Jan 2022 21:40:52 +0000 (13:40 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 30 Jan 2022 07:56:58 +0000 (09:56 +0200)
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 <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>
include/linux/sysctl.h

index 180adf7da785c8c0a2ec2c595fd21f99c1d35b6c..6353d6db69b2eddc767c4ccc51e7c4fa3b44690e 100644 (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;
 }