summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-06-04 07:19:57 +0100
committerRussell King <rmk+kernel@armlinux.org.uk>2019-06-20 22:29:59 +0100
commite6c4375f7c9293ffa65469d16f8ebd2586cb03f2 (patch)
treefa98c68f08f8e5ecc74944217c7d959944b38adb
parent5f41f9198f296091c6a58bc2e86af1e9f019b2a3 (diff)
downloadlinux-e6c4375f7c9293ffa65469d16f8ebd2586cb03f2.tar.gz
linux-e6c4375f7c9293ffa65469d16f8ebd2586cb03f2.tar.bz2
linux-e6c4375f7c9293ffa65469d16f8ebd2586cb03f2.zip
ARM: 8865/1: mm: remove unused variables
Fix gcc warnings: arch/arm/mm/init.c: In function 'mem_init': arch/arm/mm/init.c:456:13: warning: unused variable 'itcm_end' [-Wunused-variable] extern u32 itcm_end; ^ arch/arm/mm/init.c:455:13: warning: unused variable 'dtcm_end' [-Wunused-variable] extern u32 dtcm_end; ^ They are not used any more since commit 1c31d4e96b8c ("ARM: 8820/1: mm: Stop printing the virtual memory layout") Link: https://lkml.org/lkml/2019/5/12/82 Signed-off-by: YueHaibing <yuehaibing@huawei.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
-rw-r--r--arch/arm/mm/init.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c
index 1a66af5bd259..581c6ffc3056 100644
--- a/arch/arm/mm/init.c
+++ b/arch/arm/mm/init.c
@@ -466,12 +466,6 @@ static void __init free_highpages(void)
*/
void __init mem_init(void)
{
-#ifdef CONFIG_HAVE_TCM
- /* These pointers are filled in on TCM detection */
- extern u32 dtcm_end;
- extern u32 itcm_end;
-#endif
-
set_max_mapnr(pfn_to_page(max_pfn) - mem_map);
/* this will put all unused low memory onto the freelists */