diff options
author | viro@ZenIV.linux.org.uk <viro@ZenIV.linux.org.uk> | 2005-09-07 18:16:59 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-07 20:17:33 -0400 |
commit | f20badbe1207bb10a8ad5fdadc2131c94344b5d9 (patch) | |
tree | 8d63cfeb7f9247c336af4859b946f5910fc4d5b6 /drivers/net/hamachi.c | |
parent | 95608261dae863bc43292e6fbd946a3abd3aa49f (diff) |
[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 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> | |||
204 | 204 | ||
205 | #define RUN_AT(x) (jiffies + (x)) | 205 | #define RUN_AT(x) (jiffies + (x)) |
206 | 206 | ||
207 | #ifndef ADDRLEN | ||
208 | #define ADDRLEN 32 | ||
209 | #endif | ||
210 | |||
207 | /* Condensed bus+endian portability operations. */ | 211 | /* Condensed bus+endian portability operations. */ |
208 | #if ADDRLEN == 64 | 212 | #if ADDRLEN == 64 |
209 | #define cpu_to_leXX(addr) cpu_to_le64(addr) | 213 | #define cpu_to_leXX(addr) cpu_to_le64(addr) |