From: Mike Rapoport Date: Wed, 25 Sep 2019 23:49:22 +0000 (-0700) Subject: hexagon: drop empty and unused free_initrd_mem X-Git-Tag: v5.15~5421^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c7cc8d77316b4386622b2dbd29de800df7b05099;p=platform%2Fkernel%2Flinux-starfive.git 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. Link: http://lkml.kernel.org/r/1565858133-25852-1-git-send-email-rppt@linux.ibm.com Signed-off-by: Mike Rapoport Reviewed-by: Christoph Hellwig Cc: Richard Kuo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/hexagon/mm/init.c b/arch/hexagon/mm/init.c index f1f6ebd..c961773 100644 --- a/arch/hexagon/mm/init.c +++ b/arch/hexagon/mm/init.c @@ -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;