summaryrefslogtreecommitdiff
path: root/include/linux/atalk.h
diff options
context:
space:
mode:
authorDavid Ahern <dsa@cumulusnetworks.com>2018-02-13 19:52:02 +0300
committerDavid S. Miller <davem@davemloft.net>2018-02-14 19:55:33 +0300
commit89e58148fbf2e4cbd84006e263061c19a2b47adf (patch)
treec9fc2fee40da060a7a26748c53e95fe8e6e543c2 /include/linux/atalk.h
parent19ff13f2a411d99af67d8e51867d54b86e1bf017 (diff)
downloadlinux-89e58148fbf2e4cbd84006e263061c19a2b47adf.tar.xz
net: Make atalk_ptr depend on ATALK or IRDA
Signed-off-by: David Ahern <dsa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/atalk.h')
-rw-r--r--include/linux/atalk.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/atalk.h b/include/linux/atalk.h
index 4d356e168692..40373920ea58 100644
--- a/include/linux/atalk.h
+++ b/include/linux/atalk.h
@@ -113,10 +113,12 @@ extern void aarp_proto_init(void);
/* Inter module exports */
/* Give a device find its atif control structure */
+#if IS_ENABLED(CONFIG_IRDA) || IS_ENABLED(CONFIG_ATALK)
static inline struct atalk_iface *atalk_find_dev(struct net_device *dev)
{
return dev->atalk_ptr;
}
+#endif
extern struct atalk_addr *atalk_find_dev_addr(struct net_device *dev);
extern struct net_device *atrtr_get_dev(struct atalk_addr *sa);