提交 18afa4b0 编写于 作者: T Thomas Gleixner 提交者: David S. Miller

net: Make devnet_rename_seq static

No users outside net/core/dev.c.
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
Acked-by: NEric Dumazet <edumazet@google.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 c9bee3b7
...@@ -1666,9 +1666,6 @@ extern int call_netdevice_notifiers(unsigned long val, struct net_device *dev); ...@@ -1666,9 +1666,6 @@ extern int call_netdevice_notifiers(unsigned long val, struct net_device *dev);
extern rwlock_t dev_base_lock; /* Device list lock */ extern rwlock_t dev_base_lock; /* Device list lock */
extern seqcount_t devnet_rename_seq; /* Device rename seq */
#define for_each_netdev(net, d) \ #define for_each_netdev(net, d) \
list_for_each_entry(d, &(net)->dev_base_head, dev_list) list_for_each_entry(d, &(net)->dev_base_head, dev_list)
#define for_each_netdev_reverse(net, d) \ #define for_each_netdev_reverse(net, d) \
......
...@@ -174,7 +174,7 @@ static DEFINE_SPINLOCK(napi_hash_lock); ...@@ -174,7 +174,7 @@ static DEFINE_SPINLOCK(napi_hash_lock);
static unsigned int napi_gen_id; static unsigned int napi_gen_id;
static DEFINE_HASHTABLE(napi_hash, 8); static DEFINE_HASHTABLE(napi_hash, 8);
seqcount_t devnet_rename_seq; static seqcount_t devnet_rename_seq;
static inline void dev_base_seq_inc(struct net *net) static inline void dev_base_seq_inc(struct net *net)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册