mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bryan Wu <bryan.wu@canonical.com>
To: gregkh@suse.de
Cc: linux-kernel@vger.kernel.org, kernel-team@lists.ubuntu.com
Subject: [PATCH] Staging: Android logger: fix compiling error
Date: Sat, 24 Oct 2009 00:52:21 +0800	[thread overview]
Message-ID: <1256316741-14053-1-git-send-email-bryan.wu@canonical.com> (raw)

When compiling Android staging driver for PXA3XX machine, met following error:

  CC      drivers/staging/android/logger.o
drivers/staging/android/logger.c: In function 'logger_read':
drivers/staging/android/logger.c:165: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
drivers/staging/android/logger.c:165: error: (Each undeclared identifier is reported only once
drivers/staging/android/logger.c:165: error: for each function it appears in.)
drivers/staging/android/logger.c:178: error: implicit declaration of function 'signal_pending'
drivers/staging/android/logger.c:183: error: implicit declaration of function 'schedule'
drivers/staging/android/logger.c: In function 'logger_aio_write':
drivers/staging/android/logger.c:325: error: dereferencing pointer to incomplete type
drivers/staging/android/logger.c:333: error: dereferencing pointer to incomplete type
drivers/staging/android/logger.c:334: error: dereferencing pointer to incomplete type
drivers/staging/android/logger.c:337: error: dereferencing pointer to incomplete type
drivers/staging/android/logger.c:360: error: dereferencing pointer to incomplete type
drivers/staging/android/logger.c:363: error: dereferencing pointer to incomplete type
drivers/staging/android/logger.c:370: error: increment of pointer to unknown structure
drivers/staging/android/logger.c:370: error: arithmetic on pointer to an incomplete type
drivers/staging/android/logger.c:377: error: 'TASK_INTERRUPTIBLE' undeclared (first use in this function)
make[3]: *** [drivers/staging/android/logger.o] Error 1

Compiling broke since commit a99bbaf5ee6bad1aca0c88ea65ec6e5373e86184
    headers: remove sched.h from poll.h

Adding <linux/sched.h> to fix this compiling bug.

Cc: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
---
 drivers/staging/android/logger.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/staging/android/logger.c b/drivers/staging/android/logger.c
index 6c10b45..a8eb7d1 100644
--- a/drivers/staging/android/logger.c
+++ b/drivers/staging/android/logger.c
@@ -21,6 +21,7 @@
 #include <linux/fs.h>
 #include <linux/miscdevice.h>
 #include <linux/uaccess.h>
+#include <linux/sched.h>
 #include <linux/poll.h>
 #include <linux/time.h>
 #include "logger.h"
-- 
1.6.3.3


             reply	other threads:[~2009-10-23 16:52 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-23 16:52 Bryan Wu [this message]
2009-10-27  4:40 ` Eric Miao
2009-10-27  4:42   ` Bryan Wu
2009-10-27 14:05   ` Greg KH
2009-10-29  1:01     ` Bryan Wu
2009-10-29  1:04       ` Greg KH
2009-10-29  1:11         ` Bryan Wu
2009-10-29  1:17           ` Greg KH
2009-10-29  1:27             ` Bryan Wu
2009-10-29  1:28               ` Greg KH
2009-10-29  1:55                 ` Bryan Wu
2009-10-29  2:22                   ` Brian Swetland
2009-10-30 14:08                   ` Pavel Machek
2009-11-01 16:40                     ` Bryan Wu

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=1256316741-14053-1-git-send-email-bryan.wu@canonical.com \
    --to=bryan.wu@canonical.com \
    --cc=gregkh@suse.de \
    --cc=kernel-team@lists.ubuntu.com \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®