diff options
author | Will Deacon <will.deacon@arm.com> | 2013-04-22 12:53:43 +0000 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2013-04-25 22:36:42 +0200 |
commit | 0f28b62890097cb8732581a80f0a47fd7649df7d (patch) | |
tree | c14dbb935561f40381a3d3a3502c4c83dc5caf06 /arch/parisc/Makefile | |
parent | 87be2f88b24ad1f206a5c87529ff406e96c95a12 (diff) | |
download | lwn-0f28b62890097cb8732581a80f0a47fd7649df7d.tar.gz lwn-0f28b62890097cb8732581a80f0a47fd7649df7d.zip |
parisc: uaccess: fix compiler warnings caused by __put_user casting
When targetting 32-bit processors, __put_user emits a pair of stw
instructions for the 8-byte case. If the type of __val is a pointer, the
marshalling code casts it to the wider integer type of u64, resulting
in the following compiler warnings:
kernel/signal.c: In function 'copy_siginfo_to_user':
kernel/signal.c:2752:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
kernel/signal.c:2752:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
[...]
This patch fixes the warnings by removing the marshalling code and using
the correct output modifiers in the __put_{user,kernel}_asm64 macros
so that GCC will allocate the right registers without the need to
extract the two words explicitly.
Cc: Helge Deller <deller@gmx.de>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'arch/parisc/Makefile')
0 files changed, 0 insertions, 0 deletions