Skip to content

Commit 1cd9b3a

Browse files
committed
net: drop_monitor: use IS_REACHABLE() to guard net_dm_hw_report()
In net/Kconfig, NET_DEVLINK implies NET_DROP_MONITOR. The original behavior of the 'imply' keyword prevents NET_DROP_MONITOR from being 'm' when NET_DEVLINK=y. With the planned Kconfig change that relaxes the 'imply', the combination of NET_DEVLINK=y and NET_DROP_MONITOR=m would be allowed. Use IS_REACHABLE() to avoid the vmlinux link error for this case. Reported-by: Stephen Rothwell <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]> Acked-by: Neil Horman <[email protected]>
1 parent 54b7784 commit 1cd9b3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/net/drop_monitor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ struct net_dm_hw_metadata {
1919
struct net_device *input_dev;
2020
};
2121

22-
#if IS_ENABLED(CONFIG_NET_DROP_MONITOR)
22+
#if IS_REACHABLE(CONFIG_NET_DROP_MONITOR)
2323
void net_dm_hw_report(struct sk_buff *skb,
2424
const struct net_dm_hw_metadata *hw_metadata);
2525
#else

0 commit comments

Comments
 (0)