linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net/ipv4/ipconfig.c: local symbols should be static
@ 2011-06-10 23:15 H Hartley Sweeten
  0 siblings, 0 replies; 5+ messages in thread
From: H Hartley Sweeten @ 2011-06-10 23:15 UTC (permalink / raw)
  To: Linux Kernel; +Cc: davem, kuznet, pekkas, jmorris, yoshfuji, kaber

The symbol ic_dev_xid is only used in this file and should be
marked static.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Cc: "Pekka Savola (ipv6)" <pekkas@netcore.fi>
Cc: James Morris <jmorris@namei.org>
Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Cc: Patrick McHardy <kaber@trash.net>

---

diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c
index ab7e554..66e4fae7 100644
--- a/net/ipv4/ipconfig.c
+++ b/net/ipv4/ipconfig.c
@@ -140,7 +140,7 @@ __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 */
 
-u32 ic_dev_xid;		/* Device under configuration */
+static u32 ic_dev_xid;		/* Device under configuration */
 
 /* vendor class identifier */
 static char vendor_class_identifier[253] __initdata;

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

* [PATCH] net/ipv4/ipconfig.c: local symbols should be static
@ 2009-12-28 16:47 H Hartley Sweeten
  0 siblings, 0 replies; 5+ messages in thread
From: H Hartley Sweeten @ 2009-12-28 16:47 UTC (permalink / raw)
  To: linux-kernel, netdev; +Cc: David Miller

The symbol 'ic_dev_xid' should be static since it is not exported.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: David S. Miller <davem@davemloft.net>

---

diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c
index 10a6a60..0a788bf 100644
--- a/net/ipv4/ipconfig.c
+++ b/net/ipv4/ipconfig.c
@@ -139,7 +139,7 @@ __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 */
 
-u32 ic_dev_xid;		/* Device under configuration */
+static u32 ic_dev_xid;		/* Device under configuration */
 
 /* vendor class identifier */
 static char vendor_class_identifier[253] __initdata; 

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

* RE: [PATCH] net/ipv4/ipconfig.c: local symbols should be static
  2009-10-17  1:04 ` David Miller
@ 2009-10-17  1:09   ` H Hartley Sweeten
  0 siblings, 0 replies; 5+ messages in thread
From: H Hartley Sweeten @ 2009-10-17  1:09 UTC (permalink / raw)
  To: David Miller; +Cc: linux-kernel

On Friday, October 16, 2009 6:04 PM, David Miller wrote:
>> The symbol ic_dev_xid is only used locally to track the device being
>> configured.  As such, it should be static.
>> 
>> Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
>
> 1) Your patch doesn't apply to current sources.

Strange.  I just did a git pull this afternoon.

bigguiness@etch:~/src/git/linux-2.6$ git show
commit 2fdc246aaf9a7fa088451ad2a72e9119b5f7f029
Merge: 7c650a0 4997811
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date:   Fri Oct 16 10:13:58 2009 -0700

    Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp
    
    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp:
      amd64_edac: fix DRAM base and limit extraction masks, v2

What tree should network patches be based on?

> 2) You need to CC: all networking patch submissions to
>    netdev@vger.kernel.org so that your patch gets properly
>    tracked at http://patchwork.ozlabs.org/project/netdev/list

Sorry about that.

Regards,
Hartley

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

* Re: [PATCH] net/ipv4/ipconfig.c: local symbols should be static
  2009-10-16 23:30 H Hartley Sweeten
@ 2009-10-17  1:04 ` David Miller
  2009-10-17  1:09   ` H Hartley Sweeten
  0 siblings, 1 reply; 5+ messages in thread
From: David Miller @ 2009-10-17  1:04 UTC (permalink / raw)
  To: hartleys; +Cc: linux-kernel

From: "H Hartley Sweeten" <hartleys@visionengravers.com>
Date: Fri, 16 Oct 2009 19:30:02 -0400

> The symbol ic_dev_xid is only used locally to track the device being
> configured.  As such, it should be static.
> 
> Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>

1) Your patch doesn't apply to current sources.

2) You need to CC: all networking patch submissions to
   netdev@vger.kernel.org so that your patch gets properly
   tracked at http://patchwork.ozlabs.org/project/netdev/list

Thanks.

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

* [PATCH] net/ipv4/ipconfig.c: local symbols should be static
@ 2009-10-16 23:30 H Hartley Sweeten
  2009-10-17  1:04 ` David Miller
  0 siblings, 1 reply; 5+ messages in thread
From: H Hartley Sweeten @ 2009-10-16 23:30 UTC (permalink / raw)
  To: linux-kernel

The symbol ic_dev_xid is only used locally to track the device being
configured.  As such, it should be static.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>

---

diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c
index f8d04c2..374148c 100644
--- a/net/ipv4/ipconfig.c
+++ b/net/ipv4/ipconfig.c
@@ -139,7 +139,7 @@ __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 */
 
-u32 ic_dev_xid;		/* Device under configuration */
+static u32 ic_dev_xid;		/* Device under configuration */
 
 /* vendor class identifier */
 static char vendor_class_identifier[253] __initdata; 

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

end of thread, other threads:[~2011-06-10 23:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-10 23:15 [PATCH] net/ipv4/ipconfig.c: local symbols should be static H Hartley Sweeten
  -- strict thread matches above, loose matches on Subject: below --
2009-12-28 16:47 H Hartley Sweeten
2009-10-16 23:30 H Hartley Sweeten
2009-10-17  1:04 ` David Miller
2009-10-17  1:09   ` H Hartley Sweeten

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).