Skip to content

Commit e609a6b

Browse files
arndbtorvalds
authored andcommitted
sysctl: add register_sysctl() dummy helper
register_sysctl() has been around for five years with commit fea478d ("sysctl: Add register_sysctl for normal sysctl users") but now that arm64 started using it, I ran into a compile error: arch/arm64/kernel/armv8_deprecated.c: In function 'register_insn_emulation_sysctl': arch/arm64/kernel/armv8_deprecated.c:257:2: error: implicit declaration of function 'register_sysctl' This adds a inline function like we already have for register_sysctl_paths() and register_sysctl_table(). Link: http://lkml.kernel.org/r/[email protected] Fixes: 38b9aeb ("arm64: Port deprecated instruction emulation to new sysctl interface") Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: Dave Martin <[email protected]> Acked-by: Kees Cook <[email protected]> Acked-by: Will Deacon <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: "Luis R. Rodriguez" <[email protected]> Cc: Alex Benne <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: "Eric W. Biederman" <[email protected]> Cc: Thomas Gleixner <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 3fefc31 commit e609a6b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/linux/sysctl.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,11 @@ static inline struct ctl_table_header *register_sysctl_paths(
213213
return NULL;
214214
}
215215

216+
static inline struct ctl_table_header *register_sysctl(const char *path, struct ctl_table *table)
217+
{
218+
return NULL;
219+
}
220+
216221
static inline void unregister_sysctl_table(struct ctl_table_header * table)
217222
{
218223
}

0 commit comments

Comments
 (0)