initramfs: provide a generic free_initrd_mem implementation

For most architectures free_initrd_mem just expands to the same
free_reserved_area call.  Provide that as a generic implementation marked

Signed-off-by: Christoph Hellwig <>
Acked-by: Geert Uytterhoeven <>	[m68k]
Acked-by: Mike Rapoport <>
Cc: Catalin Marinas <>	[arm64]
Cc: Steven Price <>
Cc: Alexander Viro <>
Cc: Guan Xuetao <>
Cc: Russell King <>
Cc: Will Deacon <>
Signed-off-by: Andrew Morton <>
Signed-off-by: Linus Torvalds <>
15 files changed