[PATCH] -Wundef fixes (hamachi)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>
----
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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux