From patchwork Fri Oct 23 16:52:21 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan Wu X-Patchwork-Id: 36796 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id 050AFB7BE4 for ; Sat, 24 Oct 2009 04:54:06 +1100 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.60) (envelope-from ) id 1N1OKl-0005Tj-5Q; Fri, 23 Oct 2009 18:53:51 +0100 Received: from adelie.canonical.com ([91.189.90.139]) by chlorine.canonical.com with esmtp (Exim 4.60) (envelope-from ) id 1N1NNR-0004Dj-0J for kernel-team@lists.ubuntu.com; Fri, 23 Oct 2009 17:52:34 +0100 Received: from hutte.canonical.com ([91.189.90.181]) by adelie.canonical.com with esmtp (Exim 4.69 #1 (Debian)) id 1N1NNQ-0006qr-OE; Fri, 23 Oct 2009 17:52:32 +0100 Received: from [114.81.85.194] (helo=canonical.com) by hutte.canonical.com with esmtpsa (TLS-1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1N1NNO-0004Px-Ij; Fri, 23 Oct 2009 17:52:32 +0100 From: Bryan Wu To: gregkh@suse.de Subject: [PATCH] Staging: Android logger: fix compiling error Date: Sat, 24 Oct 2009 00:52:21 +0800 Message-Id: <1256316741-14053-1-git-send-email-bryan.wu@canonical.com> X-Mailer: git-send-email 1.6.3.3 Cc: kernel-team@lists.ubuntu.com, linux-kernel@vger.kernel.org X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.8 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: kernel-team-bounces@lists.ubuntu.com Errors-To: kernel-team-bounces@lists.ubuntu.com 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 to fix this compiling bug. Cc: Alexey Dobriyan Signed-off-by: Bryan Wu --- 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 #include #include +#include #include #include #include "logger.h"