From: Greg Kroah-Hartman Date: Thu, 3 Mar 2011 03:08:05 +0000 (-0800) Subject: Staging: hv: hv_mouse: fix build warning X-Git-Tag: MMI-PSA29.97-13-9~20521^2~297 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c4e68fa9537cb8190ba542a93558730783e49cdf;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Staging: hv: hv_mouse: fix build warning The trans_id variable (u64) was being incorrectly cast to a unsigned long * when it should have just been unsigned long. Fun with pointers, what a fricken mess, we need some real type safety for these types of fields somehow... Cc: Hank Janssen Cc: K. Y. Srinivasan Cc: Haiyang Zhang Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/hv_mouse.c b/drivers/staging/hv/hv_mouse.c index b7e75e023cd8..49c0ad710816 100644 --- a/drivers/staging/hv/hv_mouse.c +++ b/drivers/staging/hv/hv_mouse.c @@ -330,7 +330,7 @@ static void MousevscOnSendCompletion(struct hv_device *Device, struct vmpacket_d return; } - request = (void *)(unsigned long *)Packet->trans_id; + request = (void *)(unsigned long)Packet->trans_id; if (request == &inputDevice->ProtocolReq) { /* FIXME */