diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2012-09-07 14:23:27 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2012-09-07 15:54:38 +0100 |
commit | 373a6e24c6152096be1d540469be3aa19bb521c8 (patch) | |
tree | 8379481c894faae487d96f699532b261f3084f4a /arch/arm64/kernel/ptrace.c | |
parent | 632cb4ad190de8ede04fe1530b3561726d9c55fa (diff) | |
download | linux-aarch64-373a6e24c6152096be1d540469be3aa19bb521c8.tar.gz |
arm64: Ensure correct casting for get_user/put_user arguments
There may be cases where sizeof(x) != sizeof(*ptr) and this confuses the
compiler. This patch makes the conversion to/from "unsigned long" for
get_user as that's what the inline asm expects. For put_user, it makes
the conversion to __typeof__(*ptr). Most of the times, the compiler will
just ignore these and not generate additional code.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/kernel/ptrace.c')
0 files changed, 0 insertions, 0 deletions