All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: mm: remove unused variables
@ 2019-05-12 11:41 ` YueHaibing
  0 siblings, 0 replies; 10+ messages in thread
From: YueHaibing @ 2019-05-12 11:41 UTC (permalink / raw)
  To: linux, rppt, akpm, geert+renesas, keescook
  Cc: linux-kernel, linux-arm-kernel, YueHaibing

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")

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 arch/arm/mm/init.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c
index be0b429..c71ecbb 100644
--- a/arch/arm/mm/init.c
+++ b/arch/arm/mm/init.c
@@ -450,12 +450,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 */
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-06-04  6:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-12 11:41 [PATCH] ARM: mm: remove unused variables YueHaibing
2019-05-12 11:41 ` YueHaibing
2019-05-13  6:20 ` Geert Uytterhoeven
2019-05-13  6:20   ` Geert Uytterhoeven
2019-06-03 18:45 ` Krzysztof Kozlowski
2019-06-03 18:45   ` Krzysztof Kozlowski
2019-06-04  2:08   ` Yuehaibing
2019-06-04  2:08     ` Yuehaibing
2019-06-04  6:19   ` YueHaibing
2019-06-04  6:19     ` YueHaibing

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.