Commit a8f2bcab authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Lecopzer Chen
Browse files

UPSTREAM: compat: provide compat_ptr() on all architectures



In order to avoid needless #ifdef CONFIG_COMPAT checks,
move the compat_ptr() definition to linux/compat.h
where it can be seen by any file regardless of the
architecture.

Only s390 needs a special definition, this can use the
self-#define trick we have elsewhere.

Bug: 196480993
(cherry picked from commit 202bf8d7)
Reviewed-by: default avatarBen Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarLecopzer Chen <lecopzer.chen@mediatek.com>
Change-Id: Icfc6e3c8edaed66740eefa9a9cc6d80f83b11069
parent 299ecc4f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment