Skip to contentSkip to conversation

Linux 2.6.39-rc2

DISCUSSION weltall 1 participant 1 message Apr 6, 2011

lore
Share & tools
lore

weltall

author
#0 lore raw

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:

staging/hv/hv_mouse.c +1 -0
@@ -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