summaryrefslogtreecommitdiff
path: root/include/net/ax25.h
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2018-02-13 08:52:01 -0800
committerDavid S. Miller <davem@davemloft.net>2018-02-14 11:55:33 -0500
commit19ff13f2a411d99af67d8e51867d54b86e1bf017 (patch)
treeed927a216d9bc02fea84de07153e843cc67391b3 /include/net/ax25.h
parent330c7272c40e965b8ab510d1022acd6e6a32e9c8 (diff)
net: Make ax25_ptr depend on CONFIG_AX25
Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ax25.h')
-rw-r--r--include/net/ax25.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/ax25.h b/include/net/ax25.h
index 76fb39c272a7..c91bc87931c7 100644
--- a/include/net/ax25.h
+++ b/include/net/ax25.h
@@ -318,10 +318,12 @@ void ax25_digi_invert(const ax25_digi *, ax25_digi *);
extern ax25_dev *ax25_dev_list;
extern spinlock_t ax25_dev_lock;
+#if IS_ENABLED(CONFIG_AX25)
static inline ax25_dev *ax25_dev_ax25dev(struct net_device *dev)
{
return dev->ax25_ptr;
}
+#endif
ax25_dev *ax25_addr_ax25dev(ax25_address *);
void ax25_dev_device_up(struct net_device *);