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: 4533531 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 098689F1C4 for ; Fri, 11 Jul 2014 13:43:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E7DAB201D3 for ; Fri, 11 Jul 2014 13:43:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1C61F2017A for ; Fri, 11 Jul 2014 13:43:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752206AbaGKNnX (ORCPT ); Fri, 11 Jul 2014 09:43:23 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:44696 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751015AbaGKNnW (ORCPT ); Fri, 11 Jul 2014 09:43:22 -0400 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>; 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 Cc: Tomasz Figa , Sachin Kamat , Olof Johansson , Krzysztof Kozlowski 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 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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);