[PATCH] fix build fail for hv_mouse indefine udelay

From: Youquan Song
Date: Wed Apr 06 2011 - 02:40:40 EST


Fix build failure issue for hv_mouse
When build 2.6.39-rc1 kernel, it will be blocked at build hv_mouse.

CC [M] drivers/staging/hv/hv_mouse.o
drivers/staging/hv/hv_mouse.c: In function â??ReleaseInputDeviceâ??:
drivers/staging/hv/hv_mouse.c:293: error: implicit declaration of function â??udelayâ??
make[3]: *** [drivers/staging/hv/hv_mouse.o] Error 1
make[2]: *** [drivers/staging/hv] Error 2


Signed-off-by: Youquan Song <youquan.song@xxxxxxxxx>
---
drivers/staging/hv/hv_mouse.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/staging/hv/hv_mouse.c b/drivers/staging/hv/hv_mouse.c
index 50147f8..9c6d4d2 100644
--- a/drivers/staging/hv/hv_mouse.c
+++ b/drivers/staging/hv/hv_mouse.c
@@ -23,6 +23,7 @@
#include <linux/hiddev.h>
#include <linux/pci.h>
#include <linux/dmi.h>
+#include <linux/delay.h>

#include "hv_api.h"
#include "logging.h"
--
1.6.4.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/