From patchwork Wed Apr 3 12:15:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 15854 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 463C223E21 for ; Wed, 3 Apr 2013 12:15:30 +0000 (UTC) Received: from mail-ye0-f198.google.com (mail-ye0-f198.google.com [209.85.213.198]) by fiordland.canonical.com (Postfix) with ESMTP id E530CA18659 for ; Wed, 3 Apr 2013 12:15:29 +0000 (UTC) Received: by mail-ye0-f198.google.com with SMTP id m12sf1964378yen.9 for ; Wed, 03 Apr 2013 05:15:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=gBaau20kPBP0dOLP+BzXqNH8FMgv7maLHYwCEM9G9l0=; b=b+7H/azA8+Ds3e7trTRO4bVdgylhLm+qqllYqbF/1Xel1uiQ0OBZW59ZqhhT8Uc8uR Hc4IshGzBVEdydat5hr16lc/Z22GJk3FMwzwiZyv/khvJCBEqSPhEN4+hgi7HIqZx/gz ng7YCPP+GwIo/H/yExFRHWeX6fJqxV3gTMIVsnvAWa5kKtFDr9jXvk63Kt95Hc705MJJ PS6qJezseFuNIvxQOG0kTE9vOnUcfFL5hOtlS/vfzujR2RU+VdlDHmE8GxVzh82tirsl GkjKGXclZ7U2Y8vIrG3fDy71X6M9yvIKNemmM/8N4n4pOzm0YRs7GK782OvNLme2PPkQ qdog== X-Received: by 10.58.246.199 with SMTP id xy7mr458717vec.20.1364991329445; Wed, 03 Apr 2013 05:15:29 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.71.75 with SMTP id s11ls853058qeu.78.gmail; Wed, 03 Apr 2013 05:15:29 -0700 (PDT) X-Received: by 10.58.4.226 with SMTP id n2mr912544ven.58.1364991329344; Wed, 03 Apr 2013 05:15:29 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id cr8si4636347vdc.142.2013.04.03.05.15.29 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Apr 2013 05:15:29 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id ha11so1401188vcb.2 for ; Wed, 03 Apr 2013 05:15:29 -0700 (PDT) X-Received: by 10.58.223.134 with SMTP id qu6mr959463vec.35.1364991329224; Wed, 03 Apr 2013 05:15:29 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.59.4.204 with SMTP id cg12csp167594ved; Wed, 3 Apr 2013 05:15:28 -0700 (PDT) X-Received: by 10.180.11.238 with SMTP id t14mr3408059wib.3.1364991327496; Wed, 03 Apr 2013 05:15:27 -0700 (PDT) Received: from mail-wi0-x232.google.com (mail-wi0-x232.google.com [2a00:1450:400c:c05::232]) by mx.google.com with ESMTPS id q7si2381034wjq.6.2013.04.03.05.15.27 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Apr 2013 05:15:27 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c05::232 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=2a00:1450:400c:c05::232; Received: by mail-wi0-f178.google.com with SMTP id ez12so1436302wid.5 for ; Wed, 03 Apr 2013 05:15:27 -0700 (PDT) X-Received: by 10.194.178.9 with SMTP id cu9mr2443720wjc.39.1364991326979; Wed, 03 Apr 2013 05:15:26 -0700 (PDT) Received: from mai.home (AToulouse-654-1-486-7.w92-146.abo.wanadoo.fr. [92.146.77.7]) by mx.google.com with ESMTPS id bq19sm8729530wib.7.2013.04.03.05.15.24 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Apr 2013 05:15:25 -0700 (PDT) From: Daniel Lezcano To: rjw@sisk.pl Cc: linux-pm@vger.kernel.org, patches@linaro.org, linaro-kernel@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux@arm.linux.org.uk, rnayak@ti.com, swarren@wwwdotorg.org, linux-tegra@vger.kernel.org, horms+renesas@verge.net.au, santosh.shilimkar@ti.com, arnd@arndb.de, lenb@kernel.org, nsekhar@ti.com, josephl@nvidia.com, deepthi@linux.vnet.ibm.com Subject: [PATCH 1/9] ARM: cpuidle: remove useless declaration Date: Wed, 3 Apr 2013 14:15:14 +0200 Message-Id: <1364991322-20585-1-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQlYxFAc2dw2HB7eGRi+bBwgXQ+jKWgoionmH9VtDwrKXkmIt+0CCkUDWpW6PZxVggepUY53 X-Original-Sender: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The noop functions code is not necessary because the header file is included in files which are compiled when CONFIG_CPU_IDLE is on. Signed-off-by: Daniel Lezcano --- arch/arm/include/asm/cpuidle.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/arm/include/asm/cpuidle.h b/arch/arm/include/asm/cpuidle.h index 2fca60a..7367787 100644 --- a/arch/arm/include/asm/cpuidle.h +++ b/arch/arm/include/asm/cpuidle.h @@ -1,13 +1,8 @@ #ifndef __ASM_ARM_CPUIDLE_H #define __ASM_ARM_CPUIDLE_H -#ifdef CONFIG_CPU_IDLE extern int arm_cpuidle_simple_enter(struct cpuidle_device *dev, - struct cpuidle_driver *drv, int index); -#else -static inline int arm_cpuidle_simple_enter(struct cpuidle_device *dev, - struct cpuidle_driver *drv, int index) { return -ENODEV; } -#endif + struct cpuidle_driver *drv, int index); /* Common ARM WFI state */ #define ARM_CPUIDLE_WFI_STATE_PWR(p) {\