static_call: Fix static_call_set_init()
authorPeter Zijlstra <peterz@infradead.org>
Thu, 18 Mar 2021 10:27:19 +0000 (11:27 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 19 Mar 2021 12:16:44 +0000 (13:16 +0100)
commit68b1eddd421d2b16c6655eceb48918a1e896bbbc
treee73dd0ae1617d8563010024c710b23d979daeec0
parentbee645788e07eea63055d261d2884ea45c2ba857
static_call: Fix static_call_set_init()

It turns out that static_call_set_init() does not preserve the other
flags; IOW. it clears TAIL if it was set.

Fixes: 9183c3f9ed710 ("static_call: Add inline static call infrastructure")
Reported-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Jarkko Sakkinen <jarkko@kernel.org>
Tested-by: Sumit Garg <sumit.garg@linaro.org>
Link: https://lkml.kernel.org/r/20210318113610.519406371@infradead.org
kernel/static_call.c