Skip to contentSkip to conversation

initramfs-mask-my_inptr-as-__initdata.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Sep 12, 2022

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: initramfs: mark my_inptr as __initdata
has been removed from the -mm tree. Its filename was
initramfs-mask-my_inptr-as-__initdata.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: wuchi <[email protected]>
Subject: initramfs: mark my_inptr as __initdata
Date: Sat, 27 Aug 2022 15:11:16 +0800

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

---

 init/initramfs.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
init/initramfs.c renamed from init/initramfs.c~initramfs-mask-my_inptr-as-__initdata +1 -1
@@ -482,7 +482,7 @@ static long __init flush_buffer(void *bu
 	return origLen;
 }
 
-static unsigned long my_inptr; /* index of next byte to be processed in inbuf */
+static unsigned long my_inptr __initdata; /* index of next byte to be processed in inbuf */
 
 #include <linux/decompress/generic.h>
 

_

Patches currently in -mm which might be from [email protected] are

lib-debugobjects-fix-stat-count-and-optimize-debug_objects_mem_init.patch relay-use-kvcalloc-to-alloc-page-array-in-relay_alloc_page_array.patch