From patchwork Mon Dec 10 01:06:05 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kim Kukjin X-Patchwork-Id: 1855061 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 160F63FCF2 for ; Mon, 10 Dec 2012 01:10:23 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Thrp6-0008Np-Cf; Mon, 10 Dec 2012 01:06:20 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Thrp0-0008NT-1y for linux-arm-kernel@lists.infradead.org; Mon, 10 Dec 2012 01:06:16 +0000 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MES004H8J1G4BA0@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Mon, 10 Dec 2012 10:06:09 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.51]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 0E.15.12699.08535C05; Mon, 10 Dec 2012 10:06:08 +0900 (KST) X-AuditID: cbfee61b-b7f616d00000319b-ce-50c5358005dc Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id CD.15.12699.08535C05; Mon, 10 Dec 2012 10:06:08 +0900 (KST) Received: from DOKGENEKIM03 ([12.23.120.199]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MES00JIHJ2857A0@mmp2.samsung.com> for linux-arm-kernel@lists.infradead.org; Mon, 10 Dec 2012 10:06:08 +0900 (KST) From: Kukjin Kim To: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH] ARM: EXYNOS: fix build error when MFC is not selected Date: Mon, 10 Dec 2012 10:06:05 +0900 Message-id: <030b01cdd672$89b21e60$9d165b20$%kim@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac3Wcoej3t+IF/DWTU+HLDRPRj8Dbg== Content-language: ko DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrAIsWRmVeSWpSXmKPExsVy+t8zY90G06MBBtOvWVtsenyN1YHRY/OS +gDGKC6blNSczLLUIn27BK6Mvw9usRdM5apYtru2gfElRxcjJ4eEgInEkstvWSFsMYkL99az dTFycQgJLGOUmLBrDRNM0ZPt91khEtMZJbY2tbBAVTFJLJx6nQWkik1AQ+Lw+2fsXYwcHCIC 3hLLrymChIUF3CS6b75gB7FZBFQlrl56BmbzCthKNHw6zAphC0r8mHwPbAyzgJbE5m1NrBC2 vMTmNW+ZQUZKCKhLPPqrCxIWEdCTODHxCztEiYjEvhfvGCHGC0h8m3yIBaJcVmLTAWaI8/+z SUz6IgBhS0ocXHGDZQKj6Cwki2chWTwLyeJZSDYsYGRZxSiaWpBcUJyUnmukV5yYW1yal66X nJ+7iRESDdI7GFc1WBxiFOBgVOLhDVA8GiDEmlhWXJl7iFGCg1lJhJfr2JEAId6UxMqq1KL8 +KLSnNTiQ4w+QIdPZJYSTc4HRmpeSbyhsbGJmYmpibmlqbkpDmElcd5mj5QAIYH0xJLU7NTU gtQimHFMHJxSDYw9O18G+bybLHgzr+iQo+S1FXfOyXDnhtwLWPz+lHyg1t8HH3QMwr+/zV04 jcMw+Mn8mNK55pHRK98euxAfZ7zz8WWFhjdflm19Wqbw5xiHhmenZ6HmN/3/2lyfEwpsdX6X zmRsm2zpdcgmUu3wMkfZXebxEm9Ylj6XVUoJFz5n9v6lzxa7/UeVWIozEg21mIuKEwHmmrJI swIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrAIsWRmVeSWpSXmKPExsVy+t9jQd0G06MBBt/aLCw2Pb7G6sDosXlJ fQBjVAOjTUZqYkpqkUJqXnJ+SmZeuq2Sd3C8c7ypmYGhrqGlhbmSQl5ibqqtkotPgK5bZg7Q VCWFssScUqBQQGJxsZK+HaYJoSFuuhYwjRG6viFBcD1GBmggYR1jxt8Ht9gLpnJVLNtd28D4 kqOLkZNDQsBE4sn2+6wQtpjEhXvr2boYuTiEBKYzSmxtamGBcJYxSSycep0FpIpNQEPi8Ptn 7F2MHBwiAt4Sy68pgoSFBdwkum++YAexWQRUJa5eegZm8wrYSjR8OswKYQtK/Jh8D2wMs4CW xOZtTawQtrzE5jVvmUFGSgioSzz6qwsSFhHQkzgx8Qs7RImIxL4X7xgnMPLPQjJpFpJJs5BM moWkZQEjyypG0dSC5ILipPRcI73ixNzi0rx0veT83E2M4Gh7Jr2DcVWDxSFGAQ5GJR7eAMWj AUKsiWXFlbmHGCU4mJVEeLmOHQkQ4k1JrKxKLcqPLyrNSS0+xOgD9OhEZinR5HxgIsgriTc0 NjEzsjQyszAyMTfHIawkztvskRIgJJCeWJKanZpakFoEM46Jg1OqgbFD8sHDg83cely3hfju CW877yJjc2+20W6Do4/iVmy3CfJ0EtK7E8njHxx4cO3LZcrrg7PmPJY6OP0Q2yVFxemeWffV fZfKJhd9FEqX+7O7n8X/06dqjqnJxkxy0U1l8+fWe6702SB7wUw8s+9Qj5DT28mnL7/8fuRZ h92Xlv1/7hUt2BXo+k+JpTgj0VCLuag4EQCX81I94wIAAA== X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121209_200614_394260_99BFD709 X-CRM114-Status: GOOD ( 11.98 ) X-Spam-Score: -7.5 (-------) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-7.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [203.254.224.24 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.7 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 HDRS_LCASE Odd capitalization of message header 0.0 T_MANY_HDRS_LCASE Odd capitalization of multiple message headers X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This fixes following: arch/arm/mach-exynos/built-in.o: In function `exynos5_reserve': arch/arm/mach-exynos/mach-exynos5-dt.c:177: undefined reference to `s5p_fdt_find_mfc_mem' arch/arm/mach-exynos/mach-exynos5-dt.c:177: undefined reference to `s5p_fdt_find_mfc_mem' arch/arm/mach-exynos/mach-exynos5-dt.c:178: undefined reference to `s5p_mfc_reserve_mem' Signed-off-by: Kukjin Kim --- arch/arm/mach-exynos/mach-exynos5-dt.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c b/arch/arm/mach-exynos/mach-exynos5-dt.c index f5c6976..133abfd 100644 --- a/arch/arm/mach-exynos/mach-exynos5-dt.c +++ b/arch/arm/mach-exynos/mach-exynos5-dt.c @@ -169,6 +169,7 @@ static char const *exynos5_dt_compat[] __initdata = { static void __init exynos5_reserve(void) { +#ifdef CONFIG_S5P_DEV_MFC struct s5p_mfc_dt_meminfo mfc_mem; /* Reserve memory for MFC only if it's available */ @@ -176,6 +177,7 @@ static void __init exynos5_reserve(void) if (of_scan_flat_dt(s5p_fdt_find_mfc_mem, &mfc_mem)) s5p_mfc_reserve_mem(mfc_mem.roff, mfc_mem.rsize, mfc_mem.loff, mfc_mem.lsize); +#endif } DT_MACHINE_START(EXYNOS5_DT, "SAMSUNG EXYNOS5 (Flattened Device Tree)")