netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] hdlc: fix compile problem
@ 2009-01-07 22:13 Stephen Hemminger
  2009-01-07 23:21 ` Krzysztof Halasa
  0 siblings, 1 reply; 8+ messages in thread
From: Stephen Hemminger @ 2009-01-07 22:13 UTC (permalink / raw)
  To: David Miller, Krzysztof Hałasa; +Cc: netdev

Fix build problem with hdlc driver. hdlc_null_ops was being referenced
before it was defined!

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>

--- a/drivers/net/wan/hdlc.c	2009-01-07 14:08:43.510247589 -0800
+++ b/drivers/net/wan/hdlc.c	2009-01-07 14:09:39.093495837 -0800
@@ -40,6 +40,8 @@
 
 static const char* version = "HDLC support module revision 1.22";
 
+static const struct header_ops hdlc_null_ops;
+
 #undef DEBUG_LINK
 
 static struct hdlc_proto *first_proto;
@@ -218,8 +220,6 @@ int hdlc_ioctl(struct net_device *dev, s
 	return -EINVAL;
 }
 
-static const struct header_ops hdlc_null_ops;
-
 static void hdlc_setup_dev(struct net_device *dev)
 {
 	/* Re-init all variables changed by HDLC protocol drivers,

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-01-08 15:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-07 22:13 [PATCH] hdlc: fix compile problem Stephen Hemminger
2009-01-07 23:21 ` Krzysztof Halasa
2009-01-07 23:28   ` Stephen Hemminger
2009-01-08  1:00     ` Krzysztof Halasa
2009-01-08  1:08       ` Stephen Hemminger
2009-01-08  1:26         ` Krzysztof Halasa
2009-01-08  2:13           ` David Miller
2009-01-08 15:40         ` Krzysztof Halasa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).