From: viro@ZenIV.linux.org.uk Date: Wed, 7 Sep 2005 22:16:59 +0000 (+0100) Subject: [PATCH] -Wundef fixes (hamachi) X-Git-Tag: v2.6.14-rc1~537 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f20badbe1207bb10a8ad5fdadc2131c94344b5d9;p=linux-2.6 [PATCH] -Wundef fixes (hamachi) 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 Signed-off-by: Linus Torvalds --- diff --git a/drivers/net/hamachi.c b/drivers/net/hamachi.c index d9df1d9a57..bc9a3bf8d5 100644 --- a/drivers/net/hamachi.c +++ b/drivers/net/hamachi.c @@ -204,6 +204,10 @@ KERN_INFO " Further modifications by Keith Underwood #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)