Skip to content

Commit 6cb9174

Browse files
akpm00torvalds
authored andcommitted
include/linux/sysctl.h: fix register_sysctl_mount_point() return type
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 <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>
1 parent f8c7e4e commit 6cb9174

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/linux/sysctl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ static inline struct ctl_table_header *register_sysctl_table(struct ctl_table *
265265
return NULL;
266266
}
267267

268-
static inline struct sysctl_header *register_sysctl_mount_point(const char *path)
268+
static inline struct ctl_table_header *register_sysctl_mount_point(const char *path)
269269
{
270270
return NULL;
271271
}

0 commit comments

Comments
 (0)