OSDN Git Service

initramfs: mark my_inptr as __initdata
authorwuchi <wuchi.zero@gmail.com>
Sat, 27 Aug 2022 07:11:16 +0000 (15:11 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 12 Sep 2022 04:55:11 +0000 (21:55 -0700)
commit199cda13534f4c676d7e4601665e971f4f0582c4
treed3c05fc0b66cc018e2712c316eaa8703878bd5df
parentd2e85432a2e0a6f31bd9489800f443228f020ed6
initramfs: mark my_inptr as __initdata

As my_inptr is only used in __init function unpack_to_rootfs(), mark it as
__initdata to allow it be freed after boot.

Link: https://lkml.kernel.org/r/20220827071116.83078-1-wuchi.zero@gmail.com
Signed-off-by: wuchi <wuchi.zero@gmail.com>
Reviewed-by: David Disseldorp <ddiss@suse.de>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Martin Wilck <mwilck@suse.com>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
init/initramfs.c