Skip to contentSkip to conversation

: Fix warning for !CONFIG_KMOD

RTNETLINK Applied Thomas Graf 2 participants 2 messages Jul 31, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

replay label is unused otherwise.

net/core/rtnetlink.c +2 -0
Index: net-2.6/net/core/rtnetlink.c
===================================================================
@@ -952,7 +952,9 @@ static int rtnl_newlink(struct sk_buff *
 	struct nlattr *linkinfo[IFLA_INFO_MAX+1];
 	int err;
 
+#ifdef CONFIG_KMOD
 replay:
+#endif
 	err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFLA_MAX, ifla_policy);
 	if (err < 0)
 		return err;