All of lore.kernel.org
 help / color / mirror / Atom feed
* Staging: comedi: Add include of <linux/sched.h> to fix build
@ 2009-10-09 17:42 Roland Dreier
  2009-10-09 18:08 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Roland Dreier @ 2009-10-09 17:42 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: Bill Pemberton, devel, linux-kernel

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.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
---
 drivers/staging/comedi/drivers/serial2002.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/staging/comedi/drivers/serial2002.c b/drivers/staging/comedi/drivers/serial2002.c
index a219679..3b706ca 100644
--- a/drivers/staging/comedi/drivers/serial2002.c
+++ b/drivers/staging/comedi/drivers/serial2002.c
@@ -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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: Staging: comedi: Add include of <linux/sched.h> to fix build
  2009-10-09 17:42 Staging: comedi: Add include of <linux/sched.h> to fix build Roland Dreier
@ 2009-10-09 18:08 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2009-10-09 18:08 UTC (permalink / raw)
  To: Roland Dreier; +Cc: Bill Pemberton, devel, linux-kernel

On Fri, Oct 09, 2009 at 10:42:09AM -0700, Roland Dreier wrote:
> 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.
> 
> Signed-off-by: Roland Dreier <rolandd@cisco.com>

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

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-10-09 18:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-09 17:42 Staging: comedi: Add include of <linux/sched.h> to fix build Roland Dreier
2009-10-09 18:08 ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.