netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] ipconfig: make two variables static
@ 2014-04-21 11:55 roy.qing.li
  0 siblings, 0 replies; 2+ messages in thread
From: roy.qing.li @ 2014-04-21 11:55 UTC (permalink / raw)
  To: netdev

From: Li RongQing <roy.qing.li@gmail.com>

make two variables static to kill the warning:
 warning: symbol 'ic_addrservaddr' was not declared. Should it be static?
 warning: symbol 'ic_dev_xid' was not declared. Should it be static?

Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
---
 net/ipv4/ipconfig.c |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c
index b3e86ea..2d599fa 100644
--- a/net/ipv4/ipconfig.c
+++ b/net/ipv4/ipconfig.c
@@ -136,14 +136,15 @@ __be32 ic_myaddr = NONE;		/* My IP address */
 static __be32 ic_netmask = NONE;	/* Netmask for local subnet */
 __be32 ic_gateway = NONE;	/* Gateway IP address */
 
-__be32 ic_addrservaddr = NONE;	/* IP Address of the IP addresses'server */
-
+/* IP Address of the IP addresses'server */
+static __be32 ic_addrservaddr = NONE;
+
 __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 */
 
-__be32 ic_dev_xid;		/* Device under configuration */
+static __be32 ic_dev_xid;		/* Device under configuration */
 
 /* vendor class identifier */
 static char vendor_class_identifier[253] __initdata;
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread
* [PATCH net-next] ipconfig: make two variables static
@ 2014-04-04  6:51 roy.qing.li
  0 siblings, 0 replies; 2+ messages in thread
From: roy.qing.li @ 2014-04-04  6:51 UTC (permalink / raw)
  To: netdev

From: Li RongQing <roy.qing.li@gmail.com>

make two variables static to kill the warning:
 warning: symbol 'ic_addrservaddr' was not declared. Should it be static?
 warning: symbol 'ic_dev_xid' was not declared. Should it be static?

Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
---
 net/ipv4/ipconfig.c |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c
index b3e86ea..2d599fa 100644
--- a/net/ipv4/ipconfig.c
+++ b/net/ipv4/ipconfig.c
@@ -136,14 +136,15 @@ __be32 ic_myaddr = NONE;		/* My IP address */
 static __be32 ic_netmask = NONE;	/* Netmask for local subnet */
 __be32 ic_gateway = NONE;	/* Gateway IP address */
 
-__be32 ic_addrservaddr = NONE;	/* IP Address of the IP addresses'server */
-
+/* IP Address of the IP addresses'server */
+static __be32 ic_addrservaddr = NONE;
+
 __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 */
 
-__be32 ic_dev_xid;		/* Device under configuration */
+static __be32 ic_dev_xid;		/* Device under configuration */
 
 /* vendor class identifier */
 static char vendor_class_identifier[253] __initdata;
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-04-21 11:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-21 11:55 [PATCH net-next] ipconfig: make two variables static roy.qing.li
  -- strict thread matches above, loose matches on Subject: below --
2014-04-04  6:51 roy.qing.li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).