diff options
author | Piotr Jaroszyński | 2010-08-19 23:39:17 +0200 |
---|---|---|
committer | Michael Brown | 2010-08-20 11:13:04 +0200 |
commit | b9eaf24df211591793bfe151169a23ab1567bdf9 (patch) | |
tree | 0d08906e0754715c4eaeb1322459baecb050eeeb /src/net/ipv4.c | |
parent | [compiler] Prevent empty weak function stubs from being removed (diff) | |
download | ipxe-b9eaf24df211591793bfe151169a23ab1567bdf9.tar.gz ipxe-b9eaf24df211591793bfe151169a23ab1567bdf9.tar.xz ipxe-b9eaf24df211591793bfe151169a23ab1567bdf9.zip |
[build] Fix misaligned table entries when using gcc 4.5
Declarations without the accompanying __table_entry cause misalignment
of the table entries when using gcc 4.5. Fix by adding the
appropriate __table_entry macro or (where possible) by removing
unnecessary forward declarations.
Signed-off-by: Piotr Jaroszyński <p.jaroszynski@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/ipv4.c')
-rw-r--r-- | src/net/ipv4.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/net/ipv4.c b/src/net/ipv4.c index 95486527..a3cbdb03 100644 --- a/src/net/ipv4.c +++ b/src/net/ipv4.c @@ -26,8 +26,6 @@ FILE_LICENCE ( GPL2_OR_LATER ); /* Unique IP datagram identification number */ static uint16_t next_ident = 0; -struct net_protocol ipv4_protocol; - /** List of IPv4 miniroutes */ struct list_head ipv4_miniroutes = LIST_HEAD_INIT ( ipv4_miniroutes ); |