netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2.4.30-pre3] net/{icmp,ipv6}.h: include net/snmp.h
@ 2005-03-18 21:22 Matt Domsch
  2005-04-25  2:43 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Matt Domsch @ 2005-03-18 21:22 UTC (permalink / raw)
  To: netdev

Compiling linux-2.4.30-pre3 with FC4-test1 compiler gcc-4.0.0-0.32 on
x86_64 fails because icmp_statistics[NR_CPUS*2] is declared as a sized
array without struct icmp_mib having been defined, likewise
ipv6_statistics[NR_CPUS*2] without struct ipv6_mib first defined.

Solution is to include <net/snmp.h> before declaring either array.

Signed-off-by: Matt Domsch <Matt_Domsch@dell.com>

-- 
Matt Domsch
Software Architect
Dell Linux Solutions linux.dell.com & www.dell.com/linux
Linux on Dell mailing lists @ http://lists.us.dell.com

===== include/net/icmp.h 1.2 vs edited =====
--- 1.2/include/net/icmp.h	2002-02-05 01:39:17 -06:00
+++ edited/include/net/icmp.h	2005-03-18 15:11:59 -06:00
@@ -23,6 +23,7 @@
 
 #include <net/sock.h>
 #include <net/protocol.h>
+#include <net/snmp.h>
 
 struct icmp_err {
   int		errno;
===== include/net/ipv6.h 1.9 vs edited =====
--- 1.9/include/net/ipv6.h	2004-07-15 15:33:03 -05:00
+++ edited/include/net/ipv6.h	2005-03-18 15:13:13 -06:00
@@ -19,6 +19,7 @@
 #include <asm/hardirq.h>
 #include <net/ndisc.h>
 #include <net/flow.h>
+#include <net/snmp.h>
 
 #define SIN6_LEN_RFC2133	24
 

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

* Re: [PATCH 2.4.30-pre3] net/{icmp,ipv6}.h: include net/snmp.h
  2005-03-18 21:22 [PATCH 2.4.30-pre3] net/{icmp,ipv6}.h: include net/snmp.h Matt Domsch
@ 2005-04-25  2:43 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2005-04-25  2:43 UTC (permalink / raw)
  To: Matt Domsch; +Cc: netdev

On Fri, 18 Mar 2005 15:22:56 -0600
Matt Domsch <Matt_Domsch@dell.com> wrote:

> Compiling linux-2.4.30-pre3 with FC4-test1 compiler gcc-4.0.0-0.32 on
> x86_64 fails because icmp_statistics[NR_CPUS*2] is declared as a sized
> array without struct icmp_mib having been defined, likewise
> ipv6_statistics[NR_CPUS*2] without struct ipv6_mib first defined.
> 
> Solution is to include <net/snmp.h> before declaring either array.

I don't think we're going to take gcc-4.0 build fixes for the 2.4.x
tree.  I think deep maintainence mode should really mean deep
maintainence mode, and that's what the 2.4.x tree is in right now.

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

end of thread, other threads:[~2005-04-25  2:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-18 21:22 [PATCH 2.4.30-pre3] net/{icmp,ipv6}.h: include net/snmp.h Matt Domsch
2005-04-25  2:43 ` David S. Miller

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).