neighbour: Make neigh_table_init_no_netlink() static.
Subsystems (2)
PATCH 1/1 neighbour: Make neigh_table_init_no_netlink() static.
neigh_table_init_no_netlink() is only used in net/core/neighbour.c file.
Signed-off-by Hiroaki SHIMODA <[email protected]>
--- include/net/neighbour.h | 1 - net/core/neighbour.c | 3 +-- 2 files changed, 1 insertions(+), 3 deletions(-)
include/net/neighbour.h +0 -1
@@ -195,7 +195,6 @@ static inline void *neighbour_priv(const struct neighbour *n)#define NEIGH_UPDATE_F_ADMIN 0x80000000extern void neigh_table_init (struct neigh_table *tbl); -extern void neigh_table_init_no_netlink (struct neigh_table *tbl);extern int neigh_table_clear (struct neigh_table *tbl); extern struct neighbour * neigh_lookup(struct neigh_table *tbl, const void *pkey,
net/core/neighbour.c +1 -2
@@ -1500,7 +1500,7 @@ static void neigh_parms_destroy(struct neigh_parms *parms)static struct lock_class_key neigh_table_proxy_queue_class; -void neigh_table_init_no_netlink (struct neigh_table *tbl) +static void neigh_table_init_no_netlink (struct neigh_table *tbl) {unsigned long now = jiffies;unsigned long phsize;
@@ -1538,7 +1538,6 @@ void neigh_table_init_no_netlink(struct neigh_table *tbl) tbl->last_flush = now; tbl->last_rand = now + tbl->parms.reachable_time *20 ; } -EXPORT_SYMBOL (neigh_table_init_no_netlink);void neigh_table_init (struct neigh_table *tbl) {
Signature · 1 line
1.7.8.5
From: Hiroaki SHIMODA <[email protected]>
Date: Sat, 14 Apr 2012 02:34:44 +0900
Quoted 3 lines
neigh_table_init_no_netlink()is only used innet/core/neighbour.cfile.Signed-off-by Hiroaki SHIMODA <[email protected]>
Applied, thanks.