diff options
author | viro@ZenIV.linux.org.uk <viro@ZenIV.linux.org.uk> | 2005-09-07 23:16:59 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-07 17:17:33 -0700 |
commit | f20badbe1207bb10a8ad5fdadc2131c94344b5d9 (patch) | |
tree | 8d63cfeb7f9247c336af4859b946f5910fc4d5b6 | |
parent | 95608261dae863bc43292e6fbd946a3abd3aa49f (diff) | |
download | renesas_kernel-f20badbe1207bb10a8ad5fdadc2131c94344b5d9.tar.gz renesas_kernel-f20badbe1207bb10a8ad5fdadc2131c94344b5d9.tar.bz2 renesas_kernel-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>
-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 d9df1d9a573..bc9a3bf8d56 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) |