Skip to content

Commit

Permalink
[PATCH] -Wundef fixes (hamachi)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
viro@ZenIV.linux.org.uk authored and Linus Torvalds committed Sep 8, 2005
1 parent 9560826 commit f20badb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/net/hamachi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f20badb

Please sign in to comment.