[PATCH 2/4] [NET] make non-global function __dev_addr_discard static
- From: Denis Cheng <crquan@xxxxxxxxx>
- Date: Tue, 17 Jul 2007 16:23:23 +0800
and remove its declaration in header file include/linux/netdevice.h
Signed-off-by: Denis Cheng <crquan@xxxxxxxxx>
---
include/linux/netdevice.h | 1 -
net/core/dev.c | 2 +-
2 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 895cec2..b34975b 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1110,7 +1110,6 @@ extern int dev_mc_sync(struct net_device *to, struct net_device *from);
extern void dev_mc_unsync(struct net_device *to, struct net_device *from);
extern int __dev_addr_delete(struct dev_addr_list **list, int *count, void *addr, int alen, int all);
extern int __dev_addr_add(struct dev_addr_list **list, int *count, void *addr, int alen, int newonly);
-extern void __dev_addr_discard(struct dev_addr_list **list);
extern void dev_set_promiscuity(struct net_device *dev, int inc);
extern void dev_set_allmulti(struct net_device *dev, int inc);
extern void netdev_state_change(struct net_device *dev);
diff --git a/net/core/dev.c b/net/core/dev.c
index b17f1bf..3ba63aa 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -2715,7 +2715,7 @@ int __dev_addr_add(struct dev_addr_list **list, int *count,
return 0;
}
-void __dev_addr_discard(struct dev_addr_list **list)
+static void __dev_addr_discard(struct dev_addr_list **list)
{
struct dev_addr_list *tmp;
--
1.5.2.2
-
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/
- Follow-Ups:
- [PATCH 3/4] [NET] merge dev_unicast_discard and dev_mc_discard into one
- From: Denis Cheng
- [PATCH 3/4] [NET] merge dev_unicast_discard and dev_mc_discard into one
- References:
- [PATCH 1/4] [NET] move dev_mc_discard from dev_mcast.c to dev.c
- From: Denis Cheng
- [PATCH 1/4] [NET] move dev_mc_discard from dev_mcast.c to dev.c
- Prev by Date: Re: [PATCH 3/3] KVM - add hypercall nr to kvm_run
- Next by Date: Re: [PATCH 4/10] cpu: deliver CPU_UP_CANCELED only to NOTIFY_OKed callbacks with CPU_UP_PREPARE
- Previous by thread: [PATCH 1/4] [NET] move dev_mc_discard from dev_mcast.c to dev.c
- Next by thread: [PATCH 3/4] [NET] merge dev_unicast_discard and dev_mc_discard into one
- Index(es):
Relevant Pages
|
|