selftests: sync: Fix cast warnings on arm
authorMasami Hiramatsu <mhiramat@kernel.org>
Wed, 23 Oct 2019 04:58:16 +0000 (13:58 +0900)
committerShuah Khan <skhan@linuxfoundation.org>
Thu, 7 Nov 2019 21:54:37 +0000 (14:54 -0700)
commited2d8fa734e7759ac3788a19f308d3243d0eb164
tree79da0b10572f9ccae981417140214ce7a79b78c5
parent670cd6849ea36ea4df2f2941cf4717dff8755abe
selftests: sync: Fix cast warnings on arm

Fix warnings on __u64 and pointer translation on arm and
other 32bit architectures. Since the pointer is 32bits on
those archs, we should not directly cast those types.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Emilio López <emilio.lopez@collabora.co.uk>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/sync/sync.c