scs: Move DEFINE_SCS macro into core code
authorWill Deacon <will@kernel.org>
Fri, 15 May 2020 15:17:12 +0000 (16:17 +0100)
committerWill Deacon <will@kernel.org>
Mon, 18 May 2020 16:47:48 +0000 (17:47 +0100)
commit871e100e432c651c9c46fb9c3184b4577e0de3ae
tree95f57bcb3f5f40aac9f9075e51d5456b21e591f3
parentaa7a65ae5b8f459617e5ed1422301386e7f12274
scs: Move DEFINE_SCS macro into core code

Defining static shadow call stacks is not architecture-specific, so move
the DEFINE_SCS() macro into the core header file.

Tested-by: Sami Tolvanen <samitolvanen@google.com>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/scs.c
include/linux/scs.h