Selaa lähdekoodia

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)

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Alexander Beregalov 16 vuotta sitten
vanhempi
commit
de4545cdfd
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      drivers/staging/comedi/drivers/comedi_test.c

+ 1 - 0
drivers/staging/comedi/drivers/comedi_test.c

@@ -55,6 +55,7 @@ zero volts).
 #include <asm/div64.h>
 #include <asm/div64.h>
 
 
 #include "comedi_fc.h"
 #include "comedi_fc.h"
+#include <linux/timer.h>
 
 
 /* Board descriptions */
 /* Board descriptions */
 struct waveform_board {
 struct waveform_board {