* [PATCH] -Wundef fixes (hamachi)
@ 2005-09-07 22:16 viro
0 siblings, 0 replies; only message in thread
From: viro @ 2005-09-07 22:16 UTC (permalink / raw)
To: Linus Torvalds; +Cc: Jeff Garzik, linux-kernel
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>
----
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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-09-07 22:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-07 22:16 [PATCH] -Wundef fixes (hamachi) viro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox