linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [2.6 patch] net/ethernet/eth.c: make a function static
@ 2004-12-14 13:48 Adrian Bunk
  2004-12-28  3:03 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2004-12-14 13:48 UTC (permalink / raw)
  To: netdev; +Cc: linux-kernel

The patch below makes a needlessly global function static.


diffstat output:
 include/linux/etherdevice.h |    2 --
 net/ethernet/eth.c          |    2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)



Signed-off-by: Adrian Bunk <bunk@stusta.de>

--- linux-2.6.10-rc3-mm1-full/include/linux/etherdevice.h.old	2004-12-14 03:38:12.000000000 +0100
+++ linux-2.6.10-rc3-mm1-full/include/linux/etherdevice.h	2004-12-14 03:38:20.000000000 +0100
@@ -37,8 +37,6 @@
 						unsigned char * haddr);
 extern int		eth_header_cache(struct neighbour *neigh,
 					 struct hh_cache *hh);
-extern int		eth_header_parse(struct sk_buff *skb,
-					 unsigned char *haddr);
 
 extern struct net_device *alloc_etherdev(int sizeof_priv);
 static inline void eth_copy_and_sum (struct sk_buff *dest, 
--- linux-2.6.10-rc3-mm1-full/net/ethernet/eth.c.old	2004-12-14 03:38:29.000000000 +0100
+++ linux-2.6.10-rc3-mm1-full/net/ethernet/eth.c	2004-12-14 03:38:34.000000000 +0100
@@ -208,7 +208,7 @@
 	return htons(ETH_P_802_2);
 }
 
-int eth_header_parse(struct sk_buff *skb, unsigned char *haddr)
+static int eth_header_parse(struct sk_buff *skb, unsigned char *haddr)
 {
 	struct ethhdr *eth = eth_hdr(skb);
 	memcpy(haddr, eth->h_source, ETH_ALEN);


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

* Re: [2.6 patch] net/ethernet/eth.c: make a function static
  2004-12-14 13:48 [2.6 patch] net/ethernet/eth.c: make a function static Adrian Bunk
@ 2004-12-28  3:03 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2004-12-28  3:03 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: netdev, linux-kernel

On Tue, 14 Dec 2004 14:48:42 +0100
Adrian Bunk <bunk@stusta.de> wrote:

> The patch below makes a needlessly global function static.

Applied, thanks Adrian.

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

end of thread, other threads:[~2004-12-28  3:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-14 13:48 [2.6 patch] net/ethernet/eth.c: make a function static Adrian Bunk
2004-12-28  3:03 ` David S. Miller

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