[PATCH] -Wundef fixes (hamachi)
authorviro@ZenIV.linux.org.uk <viro@ZenIV.linux.org.uk>
Wed, 7 Sep 2005 22:16:59 +0000 (23:16 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 8 Sep 2005 00:17:33 +0000 (17:17 -0700)
All uses of ADDRLEN are comparisons with 64 (it's an address width).
added define to 32 (again, we only care about comparisons with 64)
if not defined.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/net/hamachi.c

index d9df1d9..bc9a3bf 100644 (file)
@@ -204,6 +204,10 @@ KERN_INFO "   Further modifications by Keith Underwood <keithu@parl.clemson.edu>
 
 #define RUN_AT(x) (jiffies + (x))
 
+#ifndef ADDRLEN
+#define ADDRLEN 32
+#endif
+
 /* Condensed bus+endian portability operations. */
 #if ADDRLEN == 64
 #define cpu_to_leXX(addr)      cpu_to_le64(addr)