All of lore.kernel.org
 help / color / mirror / Atom feed
From: tyeon <tom.yeon@windriver.com>
To: "\"David S. Miller\" <davem@davemloft.net>; Alexey Kuznetsov
	<kuznet@ms2.inr.ac.ru>; James Morris <jmorris@namei.org>;
	Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>; Patrick McHardy" 
	<kaber@trash.net>
Cc: "<netdev@vger.kernel.org>;" <linux-kernel@vger.kernel.org>
Subject: [PATCH] ipconfig : put root_server_path into __initdata section
Date: Mon, 11 May 2015 11:06:50 +0900	[thread overview]
Message-ID: <55500EBA.3010706@windriver.com> (raw)

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

Signed-off-by: Tom(JeHyeon) Yeon <tom.yeon@windriver.com>
---
  net/ipv4/ipconfig.c |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c
index b26376e..0f1b159 100644
--- a/net/ipv4/ipconfig.c
+++ b/net/ipv4/ipconfig.c
@@ -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;
-- 
1.7.9.5

                 reply	other threads:[~2015-05-11  2:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55500EBA.3010706@windriver.com \
    --to=tom.yeon@windriver.com \
    --cc=kaber@trash.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.