[PATCH 2/4] [NET] make non-global function __dev_addr_discard static



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/



Relevant Pages

  • Re: Error C2259 while building application on 64-bit
    ... build to the header file you use in the 64-bit build. ... 'HRESULT IPersistFolder::Initialize': is ... declaration of 'IShellFolder::ParseDisplayName' ... while compiling class template member function 'HRESULT ...
    (microsoft.public.vc.mfc)
  • Re: Rob Pikes simple Include rule
    ... UINT8 Public_Function ... and I want to make it public, I put it into a header file ... Now, since it uses the UINT8 and UINT16 in the declaration, ... C++ Faq: http://www.parashift.com/c++-faq-lite C Faq: http://www.eskimo.com/~scs/c-faq/top.html alt.comp.lang.learn.c-c++ faq: ...
    (comp.lang.c)
  • Re: External structs - newbie question
    ... The header file for csd.c contains the typedef for a ... There is only one struct in use ... Declaring it in a header file is the right way to go. ... If you put the keyword extern before the declaration, it will not be a problem declaring it twice. ...
    (comp.lang.c)
  • Re: Register my own messages
    ... include the header file except in the modules that actually use it. ... I defined int CODERSOURCEMSG in a header file appart. ... the declaration merely declares its type and name so that it can be used. ... extern const int UWM_MYMSG; ...
    (microsoft.public.vc.mfc)
  • Re: Newbie question
    ... >> What I've done is declare a struct in a header file, ... > Declaring structs, typedefs, function prototypes etc yes, defining ... the header file and not again referenced in the code. ... the header file in each code file is a duplicate declaration, ...
    (comp.lang.c)