diff options
author | viro@ZenIV.linux.org.uk <viro@ZenIV.linux.org.uk> | 2005-09-08 00:16:59 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-08 02:17:33 +0200 |
commit | f20badbe1207bb10a8ad5fdadc2131c94344b5d9 (patch) | |
tree | 8d63cfeb7f9247c336af4859b946f5910fc4d5b6 /drivers/net/hamachi.c | |
parent | [PATCH] bogus symbol used in arch/um/os-Linux/elf_aux.c (diff) | |
download | linux-f20badbe1207bb10a8ad5fdadc2131c94344b5d9.tar.xz linux-f20badbe1207bb10a8ad5fdadc2131c94344b5d9.zip |
[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 <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/hamachi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/hamachi.c b/drivers/net/hamachi.c index d9df1d9a5739..bc9a3bf8d560 100644 --- a/drivers/net/hamachi.c +++ b/drivers/net/hamachi.c @@ -204,6 +204,10 @@ KERN_INFO " Further modifications by Keith Underwood <keithu@parl.clemson.edu> #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) |