Skip to contentSkip to conversation

Staging: comedi: comedi_test.c should include timer.h

PATCH In review Alexander Beregalov 2 participants 5 messages May 13, 2009 – May 21, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Staging: comedi: comedi_test.c should include timer.h

Fix this build error:
.../comedi_test.c:82: error: field timer has incomplete type .../comedi_test.c: In function waveform_ai_interrupt:
.../comedi_test.c:188: error: implicit declaration of function mod_timer .../comedi_test.c:188: error: jiffies undeclared (first use in this function)

---
 drivers/staging/comedi/drivers/comedi_test.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/staging/comedi/drivers/comedi_test.c +1 -0
index 93ed1a0..9b8cf62 100644
@@ -55,6 +55,7 @@ zero volts).
 #include <asm/div64.h>
 
 #include "comedi_fc.h"
+#include <linux/timer.h>
 
 /* Board descriptions */
 struct waveform_board {
Signature · 1 line
1.6.3
#1 lore raw

PATCH 2/2 Staging: comedi: data.c should include delay.h

Fix this build error:
.../data.c:86: error: implicit declaration of function 'udelay'

---
 drivers/staging/comedi/kcomedilib/data.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/staging/comedi/kcomedilib/data.c +1 -0
index 3e5fe2c..c26df4e 100644
@@ -26,6 +26,7 @@
 #include "../comedidev.h"
 
 #include <linux/string.h>
+#include <asm/delay.h>
 
 int comedi_data_write(void *dev, unsigned int subdev, unsigned int chan,
 	unsigned int range, unsigned int aref, unsigned int data)
Signature · 1 line
1.6.3
#2 lore raw

Re: [PATCH 2/2] Staging: comedi: data.c should include delay.h

Fix this build error:
.../data.c:86: error: implicit declaration of function 'udelay'

---

This one is better.

 drivers/staging/comedi/kcomedilib/data.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/staging/comedi/kcomedilib/data.c +1 -0
index 3e5fe2c..d808556 100644
@@ -26,6 +26,7 @@
 #include "../comedidev.h"
 
 #include <linux/string.h>
+#include <linux/delay.h>
 
 int comedi_data_write(void *dev, unsigned int subdev, unsigned int chan,
 	unsigned int range, unsigned int aref, unsigned int data)
#4 lore raw

Re: [PATCH 2/2] Staging: comedi: data.c should include delay.h

Quoted 9 lines · Alexander Beregalov

2009/5/13 Alexander Beregalov <[email protected]>:

Quoted 5 lines

Fix this build error:
.../data.c:86: error: implicit declaration of function 'udelay'

---

Greg,
Please apply instead my another patch, which includes delay.h in comedidev.h.

Ok, will do.

thanks,

greg k-h