]> git.baikalelectronics.ru Git - kernel.git/commit
static_call: Fix return type of static_call_init
authorNathan Chancellor <natechancellor@gmail.com>
Mon, 28 Sep 2020 23:09:39 +0000 (16:09 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 2 Oct 2020 19:18:25 +0000 (21:18 +0200)
commit853b650bfb33202ddc5d4a0696f0153c669de413
treeb9aff2e803e144f9c8932c0da87b3ef7ed497bbe
parentdeafa81dcbcb137e783b36fa295bd4f0fd86aa11
static_call: Fix return type of static_call_init

Functions that are passed to early_initcall should be of type
initcall_t, which expects a return type of int. This is not currently an
error but a patch in the Clang LTO series could change that in the
future.

Fixes: 1a2a2f1fc8b9 ("static_call: Add inline static call infrastructure")
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Sami Tolvanen <samitolvanen@google.com>
Link: https://lore.kernel.org/lkml/20200903203053.3411268-17-samitolvanen@google.com/
include/linux/static_call.h
kernel/static_call.c