lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090107141343.3e256119@extreme>
Date:	Wed, 7 Jan 2009 14:13:43 -0800
From:	Stephen Hemminger <shemminger@...tta.com>
To:	David Miller <davem@...emloft.net>,
	Krzysztof HaƂasa <khc@...waw.pl>
Cc:	netdev@...r.kernel.org
Subject: [PATCH] hdlc: fix compile problem

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

Signed-off-by: Stephen Hemminger <shemminger@...tta.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,
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ