Skip to contentSkip to conversation

ipconfig : put root_server_path into __initdata section

PATCH New tyeon 1 participant 1 message May 11, 2015

Subsystems (2)
lore
Share & tools
lore

tyeon

author
#0 lore raw

PATCH 1/1 ipconfig : put root_server_path into __initdata section

root_server_path is used only for the __init function. so, no need to keep this variable in the memory after kernel init.

---
 net/ipv4/ipconfig.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/ipv4/ipconfig.c +1 -1
index b26376e..0f1b159 100644
@@ -141,7 +141,7 @@ __be32 ic_addrservaddr = NONE;	/* IP Address of the IP addresses'server */
 __be32 ic_servaddr = NONE;	/* Boot server IP address */
 
 __be32 root_server_addr = NONE;	/* Address of NFS server */
-u8 root_server_path[256] = { 0, };	/* Path to mount as root */
+u8 root_server_path[256] __initdata = { 0, };	/* Path to mount as root */
 
 /* vendor class identifier */
 static char vendor_class_identifier[253] __initdata;
Signature · 1 line
1.7.9.5