From: viro@ZenIV.linux.org.uk Date: Wed, 7 Sep 2005 22:16:59 +0000 (+0100) Subject: [PATCH] -Wundef fixes (hamachi) X-Git-Tag: accepted/tizen/common/20141203.182822~43526 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f20badbe1207bb10a8ad5fdadc2131c94344b5d9;p=platform%2Fkernel%2Flinux-arm64.git [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 d9df1d9..bc9a3bf 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)