summaryrefslogtreecommitdiff
path: root/ethtool-util.h
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2009-11-29 15:40:42 +0000
committerJeff Garzik <jgarzik@redhat.com>2009-11-30 08:30:12 -0500
commit55d4da2671358139ee17b1a4251aaef25f5bf11a (patch)
treeeea9fa70f3251bf795418a4caf26730e9a239f62 /ethtool-util.h
parent6e0512ce5c0ee1ba1da0f4773c5b56bf3d1987c5 (diff)
downloadethtool-55d4da2671358139ee17b1a4251aaef25f5bf11a.tar.gz
ethtool: Remove duplicate type definitions
<linux/ethtool.h> and ethtool-copy.h now include <linux/types.h>, which provides these type definitions. The duplicate type definitions in ethtool-util.h conflict with those in <asm/types.h> on Alpha, as reported in <http://bugs.debian.org/545850>. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'ethtool-util.h')
-rw-r--r--ethtool-util.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/ethtool-util.h b/ethtool-util.h
index 5572771..8ae7e47 100644
--- a/ethtool-util.h
+++ b/ethtool-util.h
@@ -5,11 +5,7 @@
#include <sys/types.h>
-/* hack, so we may include kernel's ethtool.h */
-typedef unsigned long long __u64;
-typedef __uint32_t __u32; /* ditto */
-typedef __uint16_t __u16; /* ditto */
-typedef __uint8_t __u8; /* ditto */
+#include "ethtool-copy.h"
/* historical: we used to use kernel-like types; remove these once cleaned */
typedef unsigned long long u64;
@@ -17,8 +13,6 @@ typedef __uint32_t u32; /* ditto */
typedef __uint16_t u16; /* ditto */
typedef __uint8_t u8; /* ditto */
-#include "ethtool-copy.h"
-
/* National Semiconductor DP83815, DP83816 */
int natsemi_dump_regs(struct ethtool_drvinfo *info, struct ethtool_regs *regs);
int natsemi_dump_eeprom(struct ethtool_drvinfo *info,