static_call: Move struct static_call_key definition to static_call_types.h
authorJuergen Gross <jgross@suse.com>
Thu, 11 Mar 2021 14:23:07 +0000 (15:23 +0100)
committerBorislav Petkov <bp@suse.de>
Thu, 11 Mar 2021 15:04:39 +0000 (16:04 +0100)
commitb046664872dd78a8bebe3d5f3bb9da9baa93f5ca
tree6416e614e68e320563a1e706409d0a8cd71f9f65
parent5e21a3ecad1500e35b46701e7f3f232e15d78e69
static_call: Move struct static_call_key definition to static_call_types.h

Having the definition of static_call() in static_call_types.h makes
no sense as long struct static_call_key isn't defined there, as the
generic implementation of static_call() is referencing this structure.

So move the definition of struct static_call_key to static_call_types.h.

Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20210311142319.4723-3-jgross@suse.com
include/linux/static_call.h
include/linux/static_call_types.h
tools/include/linux/static_call_types.h