Skip to contentSkip to conversation

net/ethernet/eth.c: make a function static

PATCH Applied Adrian Bunk 2 participants 2 messages Dec 14, 2004 – Dec 28, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/ethernet/eth.c: make a function static

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(-)
include/linux/etherdevice.h renamed from include/linux/etherdevice.h.old +0 -2
@@ -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, 
net/ethernet/eth.c renamed from net/ethernet/eth.c.old +1 -1
@@ -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);
maintainer Applied
#1 lore raw
Quoted 1 line · On Tue, 14 Dec 2004 14:48:42 +0100 Adrian Bunk <[email protected]> wrote:

The patch below makes a needlessly global function static.

Applied, thanks Adrian.