Skip to content

Commit 89e5814

Browse files
David Aherndavem330
authored andcommitted
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>
1 parent 19ff13f commit 89e5814

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎include/linux/atalk.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,12 @@ extern void aarp_proto_init(void);
113113
/* Inter module exports */
114114

115115
/* Give a device find its atif control structure */
116+
#if IS_ENABLED(CONFIG_IRDA) || IS_ENABLED(CONFIG_ATALK)
116117
static inline struct atalk_iface *atalk_find_dev(struct net_device *dev)
117118
{
118119
return dev->atalk_ptr;
119120
}
121+
#endif
120122

121123
extern struct atalk_addr *atalk_find_dev_addr(struct net_device *dev);
122124
extern struct net_device *atrtr_get_dev(struct atalk_addr *sa);

‎include/linux/netdevice.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1798,7 +1798,9 @@ struct net_device {
17981798
#if IS_ENABLED(CONFIG_TIPC)
17991799
struct tipc_bearer __rcu *tipc_ptr;
18001800
#endif
1801+
#if IS_ENABLED(CONFIG_IRDA) || IS_ENABLED(CONFIG_ATALK)
18011802
void *atalk_ptr;
1803+
#endif
18021804
struct in_device __rcu *ip_ptr;
18031805
#if IS_ENABLED(CONFIG_DECNET)
18041806
struct dn_dev __rcu *dn_ptr;

0 commit comments

Comments
 (0)