diff --git a/init/initramfs.c b/init/initramfs.c
index 18229cfe8906b7632d7f3f94574c870145f565a6..2f5bfb7d765216c631759c1c37bf14ac90001982 100644
--- a/init/initramfs.c
+++ b/init/initramfs.c
@@ -482,7 +482,7 @@ static long __init flush_buffer(void *bufv, unsigned long len)
 	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>