From mboxrd@z Thu Jan 1 00:00:00 1970 From: roy.qing.li@gmail.com Subject: [PATCH net-next] ipconfig: make two variables static Date: Fri, 4 Apr 2014 14:51:41 +0800 Message-ID: <1396594301-21824-1-git-send-email-roy.qing.li@gmail.com> To: netdev@vger.kernel.org Return-path: Received: from mail-pd0-f181.google.com ([209.85.192.181]:55651 "EHLO mail-pd0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752934AbaDDGvq (ORCPT ); Fri, 4 Apr 2014 02:51:46 -0400 Received: by mail-pd0-f181.google.com with SMTP id p10so2872489pdj.26 for ; Thu, 03 Apr 2014 23:51:45 -0700 (PDT) Received: from localhost ([1.202.252.122]) by mx.google.com with ESMTPSA id sm5sm36067603pab.19.2014.04.03.23.51.43 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 03 Apr 2014 23:51:45 -0700 (PDT) Sender: netdev-owner@vger.kernel.org List-ID: From: Li RongQing 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 --- 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