Skip to content

Commit

Permalink
net: Make devnet_rename_seq static
Browse files Browse the repository at this point in the history
No users outside net/core/dev.c.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Thomas Gleixner authored and David S. Miller committed Jul 25, 2013
1 parent c9bee3b commit 18afa4b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions include/linux/netdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 seqcount_t devnet_rename_seq; /* Device rename seq */


#define for_each_netdev(net, d) \
list_for_each_entry(d, &(net)->dev_base_head, dev_list)
#define for_each_netdev_reverse(net, d) \
Expand Down
2 changes: 1 addition & 1 deletion net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ static DEFINE_SPINLOCK(napi_hash_lock);
static unsigned int napi_gen_id;
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)
{
Expand Down

0 comments on commit 18afa4b

Please sign in to comment.