From patchwork Sun Oct 2 08:20:14 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 4459 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 5D19823EFA for ; Sun, 2 Oct 2011 08:18:19 +0000 (UTC) Received: from mail-bw0-f52.google.com (mail-bw0-f52.google.com [209.85.214.52]) by fiordland.canonical.com (Postfix) with ESMTP id 3D158A1802F for ; Sun, 2 Oct 2011 08:18:19 +0000 (UTC) Received: by bke5 with SMTP id 5so5280628bke.11 for ; Sun, 02 Oct 2011 01:18:19 -0700 (PDT) Received: by 10.223.94.134 with SMTP id z6mr3306858fam.8.1317543498824; Sun, 02 Oct 2011 01:18:18 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.3.234 with SMTP id f10cs17822laf; Sun, 2 Oct 2011 01:18:18 -0700 (PDT) Received: by 10.42.83.3 with SMTP id f3mr3234106icl.26.1317543496686; Sun, 02 Oct 2011 01:18:16 -0700 (PDT) Received: from mail-iy0-f178.google.com (mail-iy0-f178.google.com [209.85.210.178]) by mx.google.com with ESMTPS id d7si5237557icb.88.2011.10.02.01.18.15 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 02 Oct 2011 01:18:16 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.210.178 is neither permitted nor denied by best guess record for domain of shawn.guo@linaro.org) client-ip=209.85.210.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.178 is neither permitted nor denied by best guess record for domain of shawn.guo@linaro.org) smtp.mail=shawn.guo@linaro.org Received: by iabz21 with SMTP id z21so4990972iab.37 for ; Sun, 02 Oct 2011 01:18:15 -0700 (PDT) Received: by 10.68.122.133 with SMTP id ls5mr52954023pbb.57.1317543495359; Sun, 02 Oct 2011 01:18:15 -0700 (PDT) Received: from localhost.localdomain ([117.82.30.61]) by mx.google.com with ESMTPS id lh6sm39442780pbb.12.2011.10.02.01.17.48 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 02 Oct 2011 01:18:13 -0700 (PDT) From: Shawn Guo To: Russell King - ARM Linux Cc: linux-arm-kernel@lists.infradead.org, patches@linaro.org, Shawn Guo Subject: [PATCH v2] ARM: localtimer: add header linux/errno.h explicitly Date: Sun, 2 Oct 2011 16:20:14 +0800 Message-Id: <1317543614-22922-1-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1316798545-21128-1-git-send-email-shawn.guo@linaro.org> References: <1316798545-21128-1-git-send-email-shawn.guo@linaro.org> MIME-Version: 1.0 Per the text in Documentation/SubmitChecklist as below, we should explicitly have header linux/errno.h in localtimer.h for ENXIO reference. 1: If you use a facility then #include the file that defines/declares that facility. Don't depend on other header files pulling in ones that you use. Otherwise, we may run into some compiling error like the following one, if any file includes localtimer.h without CONFIG_LOCAL_TIMERS defined. arch/arm/include/asm/localtimer.h: In function ‘local_timer_setup’: arch/arm/include/asm/localtimer.h:53:10: error: ‘ENXIO’ undeclared (first use in this function) Signed-off-by: Shawn Guo --- Changes since v1: * Move the include towards the top of the file arch/arm/include/asm/localtimer.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/include/asm/localtimer.h b/arch/arm/include/asm/localtimer.h index 080d74f..ff66638 100644 --- a/arch/arm/include/asm/localtimer.h +++ b/arch/arm/include/asm/localtimer.h @@ -10,6 +10,8 @@ #ifndef __ASM_ARM_LOCALTIMER_H #define __ASM_ARM_LOCALTIMER_H +#include + struct clock_event_device; /*