Skip to content
Commit 3dd15f3e authored by Bogdan Purcareata's avatar Bogdan Purcareata Committed by Michael Roth
Browse files

nbd/trivial: fix type cast for ioctl



This fixes ioctl behavior on powerpc e6500 platforms with 64bit kernel and 32bit
userspace. The current type cast has no effect there and the value passed to the
kernel is still 0. Probably an issue related to the compiler, since I'm assuming
the same configuration works on a similar setup on x86.

Also ensure consistency with previous type cast in TRACE message.

Signed-off-by: default avatarBogdan Purcareata <bogdan.purcareata@freescale.com>
Message-Id: <1428058914-32050-1-git-send-email-bogdan.purcareata@freescale.com>
Cc: qemu-stable@nongnu.org
[Fix parens as noticed by Michael. - Paolo]
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>

(cherry picked from commit d064d9f3)
Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent 4c598605
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment