From patchwork Mon Jul 14 14:43:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 4546861 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id CB0549F1D6 for ; Mon, 14 Jul 2014 14:46:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 16AF12012F for ; Mon, 14 Jul 2014 14:46:44 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D605E2016C for ; Mon, 14 Jul 2014 14:46:42 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1X6hUx-0003To-90; Mon, 14 Jul 2014 14:44:59 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X6hUp-0003J3-4r for linux-arm-kernel@lists.infradead.org; Mon, 14 Jul 2014 14:44:53 +0000 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N8P00EHAIA0O4C0@mailout4.samsung.com> for linux-arm-kernel@lists.infradead.org; Mon, 14 Jul 2014 23:44:24 +0900 (KST) X-AuditID: cbfee61a-f79e46d00000134f-03-53c3ecc78560 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id D7.05.04943.7CCE3C35; Mon, 14 Jul 2014 23:44:24 +0900 (KST) Received: from mcdsrvbld02.digital.local ([106.116.37.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N8P00HN8I9FGS40@mmp1.samsung.com>; Mon, 14 Jul 2014 23:44:23 +0900 (KST) From: Bartlomiej Zolnierkiewicz To: Kukjin Kim Subject: [PATCH 1/2] ARM: EXYNOS: Fix build with PM_SLEEP=n part #2 Date: Mon, 14 Jul 2014 16:43:59 +0200 Message-id: <1405349040-5265-2-git-send-email-b.zolnierkie@samsung.com> X-Mailer: git-send-email 1.7.10.4 In-reply-to: <1405349040-5265-1-git-send-email-b.zolnierkie@samsung.com> References: <1405349040-5265-1-git-send-email-b.zolnierkie@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrJLMWRmVeSWpSXmKPExsVy+t9jAd0Tbw4HG/RuYrTYOGM9q8W8z7IW r18YWvQuuMpmcbbpDbvFpsfXWC0u75rDZjHj/D4mi7VH7rJbnLr+mc3iyqVTbBbrZ7xmceDx uHNtD5vH5iX1HldONLF69G1ZxejxeZNcAGsUl01Kak5mWWqRvl0CV8bNZSdZC36xV0zf/Z+1 gfEsWxcjJ4eEgInEuxOrmCBsMYkL99YDxbk4hAQWMUrsuz4DrEhIoItJ4vAnQxCbTcBKYmL7 KkYQW0RATaJn8VZGkAZmgXXMEju3/QdrEBZwlmjc2MUCYrMIqEr877kL1sAr4C7xuKmBGWKb okT3swlg9ZwCHhJdnf+A4hxAy9wlLi6Tn8DIu4CRYRWjaGpBckFxUnquoV5xYm5xaV66XnJ+ 7iZGcAA+k9rBuLLB4hCjAAejEg9vBsfhYCHWxLLiytxDjBIczEoivB43gEK8KYmVValF+fFF pTmpxYcYpTlYlMR5D7RaBwoJpCeWpGanphakFsFkmTg4pRoYQxSd5mhO3nwuMXZJS9tk5ciT M2p+bJ080YBt6dbIZcpKrDJel2T8vh/i2LR8bXlCW129+WeNoIN9ecacHw9XRM6WWsC3qlF/ vZ6sluMBnZNuS1vZigpEost255f8cTt+7VzF7182Ny0eaLBOD9fxP9eU+ObQjGMvJkVcyoi8 b19Wfs3r980UJZbijERDLeai4kQAz6u5tjwCAAA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140714_074451_365282_BAC85DE6 X-CRM114-Status: GOOD ( 10.43 ) X-Spam-Score: -5.0 (-----) Cc: Krzysztof Kozlowski , linux-samsung-soc@vger.kernel.org, b.zolnierkie@samsung.com, Tomasz Figa , Daniel Lezcano , Sachin Kamat , linux-kernel@vger.kernel.org, Kyungmin Park , Olof Johansson , linux-arm-kernel@lists.infradead.org, Marek Szyprowski X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fix building of exynos_defconfig with disabled CONFIG_PM_SLEEP by adding checking whether Exynos cpuidle support is enabled before accessing exynos_enter_aftr. The build error message: arch/arm/mach-exynos/built-in.o:(.data+0x74): undefined reference to `exynos_enter_aftr' make: *** [vmlinux] Error 1 Signed-off-by: Bartlomiej Zolnierkiewicz Acked-by: Kyungmin Park --- arch/arm/mach-exynos/exynos.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index 2a43a17..769cecb 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -171,7 +171,9 @@ static void exynos_restart(enum reboot_mode mode, const char *cmd) static struct platform_device exynos_cpuidle = { .name = "exynos_cpuidle", +#ifdef CONFIG_ARM_EXYNOS_CPUIDLE .dev.platform_data = exynos_enter_aftr, +#endif .id = -1, };