Skip to contentSkip to conversation

hexagon: drop empty and unused free_initrd_mem

PATCH In review Mike Rapoport 2 participants 2 messages Aug 15, 2019 Qualcomm hexagon architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hexagon: drop empty and unused free_initrd_mem

hexagon never reserves or initializes initrd and the only mention of it is the empty free_initrd_mem() function.

As we have a generic implementation of free_initrd_mem(), there is no need to define an empty stub for the hexagon implementation and it can be dropped.

---
 arch/hexagon/mm/init.c | 13 -------------
 1 file changed, 13 deletions(-)
arch/hexagon/mm/init.c +0 -13
index f1f6ebd..c961773 100644
@@ -71,19 +71,6 @@ void __init mem_init(void)
 	init_mm.context.ptbase = __pa(init_mm.pgd);
 }
 
-/*
- * free_initrd_mem - frees...  initrd memory.
- * @start - start of init memory
- * @end - end of init memory
- *
- * Apparently has to be passed the address of the initrd memory.
- *
- * Wrapped by #ifdef CONFIG_BLKDEV_INITRD
- */
-void free_initrd_mem(unsigned long start, unsigned long end)
-{
-}
-
 void sync_icache_dcache(pte_t pte)
 {
 	unsigned long addr;
Signature · 1 line
2.7.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Mike Rapoport

hexagon never reserves or initializes initrd and the only mention of it is the empty free_initrd_mem() function.

As we have a generic implementation of free_initrd_mem(), there is no need to define an empty stub for the hexagon implementation and it can be dropped.

Looks good,