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: 15759 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 1A58D23DEE for ; Fri, 29 Mar 2013 10:31:42 +0000 (UTC) Received: from mail-ve0-f170.google.com (mail-ve0-f170.google.com [209.85.128.170]) by fiordland.canonical.com (Postfix) with ESMTP id C0323A18D04 for ; Fri, 29 Mar 2013 10:31:41 +0000 (UTC) Received: by mail-ve0-f170.google.com with SMTP id 15so410120vea.1 for ; Fri, 29 Mar 2013 03:31:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=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; bh=gBaau20kPBP0dOLP+BzXqNH8FMgv7maLHYwCEM9G9l0=; b=eZMV4Ozv+xEJcmZ/xv8rPESKo/D5gsxHIRTzcMbtTBqAJZpYEyO5gjulTYOYK7fu0z bvAQ7d2lpT1tjTIAXGNU84HIQYrZyoxP3xX1Hq9U/JrSbxu8fA4LjaAudDvJkAUE011t 5pC1rWzJAW56vRw4fHTz/Y+fd/lfIl+s8QWL+P5hqG+Usr7imT9XgGWtrlwJKhVgPdGJ SHR8IZCmEwDcd1wq1Tz6jHK9qawdi0yHE22t1M5hv2C5agQl1jG9gX1VmImg74QZwtQa GtY2TmeDAlzAGruzF0k0QsWRHpBwfN8ETmtyagoiTCObLGRG/JnV8mnUl6i4cnjtSwIb FoLw== X-Received: by 10.52.233.225 with SMTP id tz1mr1222022vdc.54.1364553101255; Fri, 29 Mar 2013 03:31:41 -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.59.4.204 with SMTP id cg12csp54137ved; Fri, 29 Mar 2013 03:31:40 -0700 (PDT) X-Received: by 10.194.20.40 with SMTP id k8mr2832795wje.16.1364553099636; Fri, 29 Mar 2013 03:31:39 -0700 (PDT) Received: from mail-we0-x230.google.com ([2a00:1450:400c:c03::230]) by mx.google.com with ESMTPS id yw4si868976wjc.243.2013.03.29.03.31.38 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 29 Mar 2013 03:31:39 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c03::230 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=2a00:1450:400c:c03::230; Authentication-Results: mx.google.com; spf=neutral (google.com: 2a00:1450:400c:c03::230 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) smtp.mail=daniel.lezcano@linaro.org Received: by mail-we0-f176.google.com with SMTP id s43so250954wey.21 for ; Fri, 29 Mar 2013 03:31:38 -0700 (PDT) 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 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 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: ALoCoQk3GvsCOQvogMeLo66vfChP0gNcfKgX9Vu5F5k6plCxk8ozOeoAIv6a5uKW8X9fei+2oz9J 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) {\