uaccess: add noop untagged_addr definition
authorAndrey Konovalov <andreyknvl@google.com>
Tue, 4 Jun 2019 12:04:47 +0000 (14:04 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 7 Jun 2019 20:09:06 +0000 (13:09 -0700)
commitd93445225cd3c8eb0bf1350c04875576428b45b4
tree2fec9b8910f1883bd96986959ba3108cf67ea8fd
parentd18c7e9d6e4e0ba358459e812bf115b4ccef54ce
uaccess: add noop untagged_addr definition

Architectures that support memory tagging have a need to perform untagging
(stripping the tag) in various parts of the kernel. This patch adds an
untagged_addr() macro, which is defined as noop for architectures that do
not support memory tagging. The oncoming patch series will define it at
least for sparc64 and arm64.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Khalid Aziz <khalid.aziz@oracle.com>
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/mm.h