From: K. Y. Srinivasan Date: Fri, 13 May 2011 02:34:43 +0000 (-0700) Subject: Staging: hv: mouse_drv: Fix a sparse warning X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=459bce97655c8ca19b113efce98be0dd8d800652;p=linux-beck.git Staging: hv: mouse_drv: Fix a sparse warning Most of the sparse warnings in the hv code are from the base kernel. This patch fixes the only sparse related issue in the Hyper-V coode. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang Signed-off-by: Abhishek Kane Signed-off-by: Hank Janssen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/hv_mouse.c b/drivers/staging/hv/hv_mouse.c index f4f512c30830..1869e2531d40 100644 --- a/drivers/staging/hv/hv_mouse.c +++ b/drivers/staging/hv/hv_mouse.c @@ -489,7 +489,7 @@ static void mousevsc_on_channel_callback(void *context) u32 bytes_recvd; u64 req_id; - unsigned char packet[packetSize]; + unsigned char packet[0x100]; struct vmpacket_descriptor *desc; unsigned char *buffer = packet; int bufferlen = packetSize;