From: Roland Dreier <rdreier@cisco.com>
To: Greg Kroah-Hartman <gregkh@suse.de>
Cc: Bill Pemberton <wfp5p@virginia.edu>,
devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: Staging: comedi: Add include of <linux/sched.h> to fix build
Date: Fri, 09 Oct 2009 10:42:09 -0700 [thread overview]
Message-ID: <adamy40jwge.fsf@cisco.com> (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.
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
next reply other threads:[~2009-10-09 17:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-09 17:42 Roland Dreier [this message]
2009-10-09 18:08 ` Staging: comedi: Add include of <linux/sched.h> to fix build Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=adamy40jwge.fsf@cisco.com \
--to=rdreier@cisco.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=wfp5p@virginia.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox