From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Boyd Subject: [PATCH 3/3] ARM: msm: Don't compile __msm_ioremap_caller() unless used Date: Tue, 11 Jun 2013 18:48:06 -0700 Message-ID: <1371001686-15985-4-git-send-email-sboyd@codeaurora.org> References: <1371001686-15985-1-git-send-email-sboyd@codeaurora.org> Return-path: In-Reply-To: <1371001686-15985-1-git-send-email-sboyd@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org To: David Brown , Daniel Walker , Bryan Huntsman Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org List-Id: linux-arm-msm@vger.kernel.org This function is only used on MSM7x00A so only compile the function if the build includes support for that platform. Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/io.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-msm/io.c b/arch/arm/mach-msm/io.c index cc077c5..f16a6bf 100644 --- a/arch/arm/mach-msm/io.c +++ b/arch/arm/mach-msm/io.c @@ -129,6 +129,7 @@ void __init msm_map_msm7x30_io(void) } #endif /* CONFIG_ARCH_MSM7X30 */ +#ifdef CONFIG_ARCH_MSM7X00A void __iomem *__msm_ioremap_caller(unsigned long phys_addr, size_t size, unsigned int mtype, void *caller) { @@ -143,3 +144,4 @@ void __iomem *__msm_ioremap_caller(unsigned long phys_addr, size_t size, return __arm_ioremap_caller(phys_addr, size, mtype, caller); } +#endif -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation From mboxrd@z Thu Jan 1 00:00:00 1970 From: sboyd@codeaurora.org (Stephen Boyd) Date: Tue, 11 Jun 2013 18:48:06 -0700 Subject: [PATCH 3/3] ARM: msm: Don't compile __msm_ioremap_caller() unless used In-Reply-To: <1371001686-15985-1-git-send-email-sboyd@codeaurora.org> References: <1371001686-15985-1-git-send-email-sboyd@codeaurora.org> Message-ID: <1371001686-15985-4-git-send-email-sboyd@codeaurora.org> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org This function is only used on MSM7x00A so only compile the function if the build includes support for that platform. Signed-off-by: Stephen Boyd --- arch/arm/mach-msm/io.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-msm/io.c b/arch/arm/mach-msm/io.c index cc077c5..f16a6bf 100644 --- a/arch/arm/mach-msm/io.c +++ b/arch/arm/mach-msm/io.c @@ -129,6 +129,7 @@ void __init msm_map_msm7x30_io(void) } #endif /* CONFIG_ARCH_MSM7X30 */ +#ifdef CONFIG_ARCH_MSM7X00A void __iomem *__msm_ioremap_caller(unsigned long phys_addr, size_t size, unsigned int mtype, void *caller) { @@ -143,3 +144,4 @@ void __iomem *__msm_ioremap_caller(unsigned long phys_addr, size_t size, return __arm_ioremap_caller(phys_addr, size, mtype, caller); } +#endif -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by The Linux Foundation