[PATCH] -Wundef fixes (hamachi)

From: viro
Date: Wed Sep 07 2005 - 17:17:47 EST


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@xxxxxxxxxxxxxxxxxx>
----
diff -urN RC13-git7-ncr5380/drivers/net/hamachi.c RC13-git7-hamachi/drivers/net/hamachi.c
--- RC13-git7-ncr5380/drivers/net/hamachi.c 2005-08-28 23:09:44.000000000 -0400
+++ RC13-git7-hamachi/drivers/net/hamachi.c 2005-09-07 13:55:45.000000000 -0400
@@ -204,6 +204,10 @@

#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)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/