]> www.infradead.org Git - users/willy/linux.git/commit
arm64: move untagged_addr macro from uaccess.h to memory.h
authorAndrey Konovalov <andreyknvl@google.com>
Wed, 5 Dec 2018 00:13:22 +0000 (11:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Dec 2018 00:13:22 +0000 (11:13 +1100)
commit128538f533622f2c5727d1d4495ee5735f99a43e
tree8a1df23c5ead2ab2c7f0c7b0b2c8303e28d7e9b4
parent5c36287813721999e79ac76f637f1ba7e5054402
arm64: move untagged_addr macro from uaccess.h to memory.h

Move the untagged_addr() macro from arch/arm64/include/asm/uaccess.h
to arch/arm64/include/asm/memory.h to be later reused by KASAN.

Also make the untagged_addr() macro accept all kinds of address types
(void *, unsigned long, etc.). This allows not to specify type casts in
each place where the macro is used. This is done by using __typeof__.

Link: http://lkml.kernel.org/r/432ef6686a25b49244f54c4dfd86bc4b20381d8a.1543337629.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
arch/arm64/include/asm/memory.h
arch/arm64/include/asm/uaccess.h