From patchwork Fri Mar 29 10:31:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 2365041 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 15D2F3FD40 for ; Fri, 29 Mar 2013 10:35:05 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ULWb5-00040a-49; Fri, 29 Mar 2013 10:31:47 +0000 Received: from mail-wi0-x22d.google.com ([2a00:1450:400c:c05::22d]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ULWb0-0003xu-Fu for linux-arm-kernel@lists.infradead.org; Fri, 29 Mar 2013 10:31:43 +0000 Received: by mail-wi0-f173.google.com with SMTP id ez12so4053804wid.12 for ; Fri, 29 Mar 2013 03:31:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=gBaau20kPBP0dOLP+BzXqNH8FMgv7maLHYwCEM9G9l0=; b=H5dYQ0jl+7O1+Ab+2cjbJ+p739u7ZYVLwpGAXWNaJ1D7IAvn3t7B/OP4YE4Z/fpUj1 cnrjmm/Ap2HkscxItRVDvk2X6fKotPFMLqQY9Df48XzyTGGr8uqC8rerJ+4CvL5B+AYd jVii5gzIkak2JUVbNSR0kk3xAiwoGbhi0i5xbq8s10pzcELB6ypdynBIqBhZgH5wutNS XygkeLmDodTMpyHItlohPwEZAd8TfbfSoNm2/2rSgottKlG7lfvARU6kMYo1N5Lu/Txl U8+NCS1LQTI8cj8kJjSDgeOIg6DIQRHY6t+OWGHacBn23ilVfGIa6PXl7qq3TnfRmEQl c31w== X-Received: by 10.194.220.70 with SMTP id pu6mr2766149wjc.27.1364553098713; Fri, 29 Mar 2013 03:31:38 -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 q13sm2472076wie.0.2013.03.29.03.31.36 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 29 Mar 2013 03:31:37 -0700 (PDT) From: Daniel Lezcano To: rjw@sisk.pl Subject: [PATCH 1/9] ARM: cpuidle: remove useless declaration Date: Fri, 29 Mar 2013 11:31:27 +0100 Message-Id: <1364553095-25110-1-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQk5dz6+Q1z3ZP97wMljqPCJQKld6WKfNd+6nQ6+i0TNsUSDq7BJcpy96qls/wjuxhEnjFZ6 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130329_063142_674428_F6413062 X-CRM114-Status: UNSURE ( 9.33 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: linaro-kernel@lists.linaro.org, linux@arm.linux.org.uk, arnd@arndb.de, swarren@wwwdotorg.org, patches@linaro.org, linux-pm@vger.kernel.org, rnayak@ti.com, nsekhar@ti.com, santosh.shilimkar@ti.com, linux-tegra@vger.kernel.org, horms+renesas@verge.net.au, linux-arm-kernel@lists.infradead.org, lenb@kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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) {\