From patchwork Fri Jul 11 13:43:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 4533801 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 E53DE9F1C4 for ; Fri, 11 Jul 2014 13:47:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 566642025B for ; Fri, 11 Jul 2014 13:47:24 +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 2F97420107 for ; Fri, 11 Jul 2014 13:47:09 +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 1X5b77-0004DS-SP; Fri, 11 Jul 2014 13:43:49 +0000 Received: from mailout3.w1.samsung.com ([210.118.77.13]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X5b71-00043K-Nd for linux-arm-kernel@lists.infradead.org; Fri, 11 Jul 2014 13:43:46 +0000 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N8J004VRVG6YY00@mailout3.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 11 Jul 2014 14:43:18 +0100 (BST) X-AuditID: cbfec7f4-b7fac6d000006cfe-73-53bfe9f6c9c2 Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id CC.18.27902.6F9EFB35; Fri, 11 Jul 2014 14:43:18 +0100 (BST) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync3.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0N8J00BFNVFZZC90@eusync3.samsung.com>; Fri, 11 Jul 2014 14:43:18 +0100 (BST) From: Krzysztof Kozlowski To: Russell King , Kukjin Kim , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: EXYNOS: Fix build with PM_SLEEP=n Date: Fri, 11 Jul 2014 15:43:03 +0200 Message-id: <1405086183-24715-1-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrCJMWRmVeSWpSXmKPExsVy+t/xq7rfXu4PNuhr07J4/cLQonfBVTaL TY+vsVpc3jWHzWLG+X1MFrcv81qcuv6ZzeLKpVNsFutnvGZx4PRoae5h89i8pN7jyokmVo++ LasYPT5vkgtgjeKySUnNySxLLdK3S+DKWPqvsOACd8W8ySwNjFO4uhg5OSQETCR2981nhbDF JC7cW8/WxcjFISSwlFFi4e09jBBOH5PEivmzmEGq2ASMJTYvXwJWJSKwg1Fi+b3L7CAOs8B8 Rol7y94AORwcwgLmEq1TGUEaWARUJa70NLCB2LwC7hKbvk1jhlgnJ3Hy2GTWCYzcCxgZVjGK ppYmFxQnpeca6hUn5haX5qXrJefnbmKEhMyXHYyLj1kdYhTgYFTi4dWo3R0sxJpYVlyZe4hR goNZSYTX/Oz+YCHelMTKqtSi/Pii0pzU4kOMTBycUg2MTMc/vmSx2uY9R6JGx7q9Ro/Fy+zc tfCebYf36LLsjrzJ0+SQYluZ1K4uwfWm7YrgwdqKI+bLell0u/adUZ0lscHJbvO16Ve+7X7h uGVOifnHWX8P3t30Ie/Go6/Lc3pL9sTrBrhGtZ29WyXm8zOJ95rQyRSRt4cP/F3/5d/Xq7vF 7oYaxK2+rMRSnJFoqMVcVJwIAC9jyRr3AQAA X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140711_064345_882024_67E9D9FB X-CRM114-Status: UNSURE ( 8.78 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.7 (-----) Cc: Olof Johansson , Tomasz Figa , Sachin Kamat , Krzysztof Kozlowski 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=-2.5 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 PM_SLEEP: CONFIG_PM_SLEEP=n CONFIG_PM_SLEEP_SMP=n CONFIG_SUSPEND=n The build error messages: arch/arm/mach-exynos/built-in.o: In function `exynos_boot_secondary': arch/arm/mach-exynos/platsmp.c:111: undefined reference to `exynos_cpu_power_state' arch/arm/mach-exynos/platsmp.c:112: undefined reference to `exynos_cpu_power_up' arch/arm/mach-exynos/platsmp.c:116: undefined reference to `exynos_cpu_power_state' make: *** [vmlinux] Error 1 Signed-off-by: Krzysztof Kozlowski --- arch/arm/mach-exynos/common.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/mach-exynos/common.h b/arch/arm/mach-exynos/common.h index f8daa9cc5617..966ecf195265 100644 --- a/arch/arm/mach-exynos/common.h +++ b/arch/arm/mach-exynos/common.h @@ -149,9 +149,15 @@ struct exynos_pmu_conf { }; extern void exynos_sys_powerdown_conf(enum sys_powerdown mode); +#ifdef CONFIG_PM_SLEEP extern void exynos_cpu_power_down(int cpu); extern void exynos_cpu_power_up(int cpu); extern int exynos_cpu_power_state(int cpu); +#else +extern inline void exynos_cpu_power_down(int cpu) {} +extern inline void exynos_cpu_power_up(int cpu) {} +extern inline int exynos_cpu_power_state(int cpu) { return 0; } +#endif extern void exynos_cluster_power_down(int cluster); extern void exynos_cluster_power_up(int cluster); extern int exynos_cluster_power_state(int cluster);