Re: Linux 2.6.39-rc2

From: weltall
Date: Wed Apr 06 2011 - 16:17:36 EST


Looks like there is an issue with building a driver in staging

LD [M] drivers/staging/hv/hv_netvsc.o
LD [M] drivers/staging/hv/hv_utils.o
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[4]: *** [drivers/staging/hv/hv_mouse.o] Error 1
make[3]: *** [drivers/staging/hv] Error 2
make[2]: *** [drivers/staging] Error 2

Seems to be just a missing header in drivers/staging/hv/hv_mouse.c (to
be precise linux/delay.h as the file uses udelay()) this patch fixes the
issue:

--- drivers/staging/hv/hv_mouse.c 2011-04-06 20:46:22.000000000 +0200
+++ drivers/staging/hv/hv_mouse.c 2011-04-06 20:46:54.000000000 +0200
@@ -15,6 +15,7 @@
#include <linux/init.h>
#include <linux/module.h>
#include <linux/device.h>
+#include <linux/delay.h>
#include <linux/workqueue.h>
#include <linux/sched.h>
#include <linux/wait.h>

regards, Stefano Angeleri

--
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/