Skip to contentSkip to conversation

Staging: comedi: Add include of <linux/sched.h> to fix build

PATCH Roland Dreier 2 participants 2 messages Oct 9, 2009 Staging

lore
Share & tools
lore
#0 lore raw

Commit a99bbaf5 ("headers: remove sched.h from poll.h") removed the implicit include of <linux/sched.h> via <linux/poll.h>, and broke the comedi build with errors like:

drivers/staging/comedi/drivers/serial2002.c:201: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)

Explicitly include <linux/sched.h> to fix this.

---
 drivers/staging/comedi/drivers/serial2002.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/staging/comedi/drivers/serial2002.c +1 -0
index a219679..3b706ca 100644
@@ -40,6 +40,7 @@ Status: in development
 #include <asm/ioctls.h>
 #include <linux/serial.h>
 #include <linux/poll.h>
+#include <linux/sched.h>
 
 /*
  * Board descriptions for two imaginary boards.  Describing the
#1 lore raw
Quoted 9 lines · Roland Dreier

Commit a99bbaf5 ("headers: remove sched.h from poll.h") removed the implicit include of <linux/sched.h> via <linux/poll.h>, and broke the comedi build with errors like:

drivers/staging/comedi/drivers/serial2002.c:201: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)

Explicitly include <linux/sched.h> to fix this.

Heh, this is already in my tree, and will be sent to Linus today.

thanks,

greg k-h