diff options
author | David Ahern | 2018-02-13 08:52:00 -0800 |
---|---|---|
committer | David S. Miller | 2018-02-14 11:55:33 -0500 |
commit | 330c7272c40e965b8ab510d1022acd6e6a32e9c8 (patch) | |
tree | 6211e42268502741d1ed46fdb23febb2842286cb /net/core/dev.c | |
parent | 77079683617b60387ad23e91cc5b82693b3075ab (diff) |
net: Make dn_ptr depend on CONFIG_DECNET
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/dev.c')
-rw-r--r-- | net/core/dev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index df5241c8eda1..4bd4ad7ffda4 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -8134,8 +8134,9 @@ void netdev_run_todo(void) BUG_ON(!list_empty(&dev->ptype_specific)); WARN_ON(rcu_access_pointer(dev->ip_ptr)); WARN_ON(rcu_access_pointer(dev->ip6_ptr)); +#if IS_ENABLED(CONFIG_DECNET) WARN_ON(dev->dn_ptr); - +#endif if (dev->priv_destructor) dev->priv_destructor(dev); if (dev->needs_free_netdev) |