arm64: memory: Implement __tag_set() as common function
authorWill Deacon <will@kernel.org>
Tue, 13 Aug 2019 16:01:05 +0000 (17:01 +0100)
committerWill Deacon <will@kernel.org>
Wed, 14 Aug 2019 12:08:44 +0000 (13:08 +0100)
commit6bbd497f027332b14cf2a6792c418c32286b66c2
tree4e5261a9cec026ec883082747c2f880f0bc6ccad
parenta5ac40f53bfa5e43d9c76e3c23415ee4afd71932
arm64: memory: Implement __tag_set() as common function

There's no need for __tag_set() to be a complicated macro when
CONFIG_KASAN_SW_TAGS=y and a simple static inline otherwise. Rewrite
the thing as a common static inline function.

Tested-by: Steve Capper <steve.capper@arm.com>
Reviewed-by: Steve Capper <steve.capper@arm.com>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/memory.h