[2.6 patch] net/ethernet/eth.c: make a function static

From: Adrian Bunk
Date: Tue Dec 14 2004 - 08:50:01 EST


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@xxxxxxxxx>

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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/