diff options
author | viro@ZenIV.linux.org.uk <viro@ZenIV.linux.org.uk> | 2005-09-07 22:16:59 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-08 00:17:33 (GMT) |
commit | f20badbe1207bb10a8ad5fdadc2131c94344b5d9 (patch) | |
tree | 8d63cfeb7f9247c336af4859b946f5910fc4d5b6 /drivers/net/hamachi.c | |
parent | 95608261dae863bc43292e6fbd946a3abd3aa49f (diff) | |
download | linux-fsl-qoriq-f20badbe1207bb10a8ad5fdadc2131c94344b5d9.tar.xz |
[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 'drivers/net/hamachi.c')
-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 d9df1d9..bc9a3bf 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) |