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: 2386611 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 9D7DA3FD8C for ; Wed, 3 Apr 2013 12:18:44 +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 1UNMbG-0008JZ-0I; Wed, 03 Apr 2013 12:15:34 +0000 Received: from mail-we0-x22a.google.com ([2a00:1450:400c:c03::22a]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UNMbB-0008IG-HL for linux-arm-kernel@lists.infradead.org; Wed, 03 Apr 2013 12:15:30 +0000 Received: by mail-we0-f170.google.com with SMTP id z2so1180274wey.1 for ; Wed, 03 Apr 2013 05:15:27 -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=ll1J2ugne8et2Ap0/y7s2Srl/MxMdNTjnxXf/2a/iKAF4ha+1mbCtGNfDRS88ehIEH vesUtte4BnMPieapyQTL2Gy/Rd39AseCd+3Lb1+1jtBZ4fyBCRm0U9l5XJGhfoy4OJni L4aDRnRjUZEjF0P3GiKTIXRUh29LSh63QLKFFJkfHE6D8bKYJ5fpPPZZGHZJkaC2x5/n PYaaJqSo6T/BYbG6Yh5Nq3G7XqD0uib0yPzPD3aj5nBKIHHtDjen+5WtZzOcMDPJOs4V jQ5sXloVTri9SU8G4DmGTQsXtIxckFwzMlb1sHyq4Hkd8MZfAfe8oBUecZj75l13l11q /vSA== 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 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: ALoCoQnqxzVjWyzDUG0p3LSn7qxUPSbS2KpY1gSwZZUNVIgGBcI8IAxgRLnjhyqEMb3BwmmnaeTg X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130403_081529_698720_23B17427 X-CRM114-Status: UNSURE ( 9.39 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- 1.7 KHOP_BIG_TO_CC Sent to 10+ recipients instaed of Bcc or a list -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: deepthi@linux.vnet.ibm.com, 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, josephl@nvidia.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) {\