diff options
author | Arnd Bergmann <arnd@arndb.de> | 2015-11-16 11:32:15 -0500 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2015-11-17 08:24:36 -0500 |
commit | adc235aff6fcf5ae4d8dc00faf30a07632b9725b (patch) | |
tree | 9ef21af2f84031f7897e5825fb847bb4217c3d34 | |
parent | 1dccb598df549d892b6450c261da54cdd7af44b4 (diff) |
arm64: do not include ptrace.h from compat.h
including ptrace.h brings a definition of BITS_PER_PAGE into device
drivers and cause a build warning in allmodconfig builds:
drivers/block/drbd/drbd_bitmap.c:482:0: warning: "BITS_PER_PAGE" redefined
#define BITS_PER_PAGE (1UL << (PAGE_SHIFT + 3))
This uses a slightly different way to express current_pt_regs()
that avoids the use of the header and gets away with the already
included asm/ptrace.h.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
-rw-r--r-- | arch/arm64/include/asm/compat.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm64/include/asm/compat.h b/arch/arm64/include/asm/compat.h index 7fbed6919b54..eb8432bb82b8 100644 --- a/arch/arm64/include/asm/compat.h +++ b/arch/arm64/include/asm/compat.h | |||
@@ -23,7 +23,6 @@ | |||
23 | */ | 23 | */ |
24 | #include <linux/types.h> | 24 | #include <linux/types.h> |
25 | #include <linux/sched.h> | 25 | #include <linux/sched.h> |
26 | #include <linux/ptrace.h> | ||
27 | 26 | ||
28 | #define COMPAT_USER_HZ 100 | 27 | #define COMPAT_USER_HZ 100 |
29 | #ifdef __AARCH64EB__ | 28 | #ifdef __AARCH64EB__ |
@@ -234,7 +233,7 @@ static inline compat_uptr_t ptr_to_compat(void __user *uptr) | |||
234 | return (u32)(unsigned long)uptr; | 233 | return (u32)(unsigned long)uptr; |
235 | } | 234 | } |
236 | 235 | ||
237 | #define compat_user_stack_pointer() (user_stack_pointer(current_pt_regs())) | 236 | #define compat_user_stack_pointer() (user_stack_pointer(task_pt_regs(current))) |
238 | 237 | ||
239 | static inline void __user *arch_compat_alloc_user_space(long len) | 238 | static inline void __user *arch_compat_alloc_user_space(long len) |
240 | { | 239 | { |