-Wundef fixes (hamachi)
PATCH 1/1 -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 <[email protected]>
----
drivers/net/hamachi.c +4 -0
@@ -204,6 +204,10 @@#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)