Subject: -current kernel won't compile on alpha
To: None <current-users@netbsd.org>
From: Dave Huang <khym@azeotrope.org>
List: current-users
Date: 09/22/2001 13:40:33
cc -g -O2 -mcpu=21164a -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith -Wno-uninitialized -Wno-main -mno-fp-regs -I. -I../../../../arch -I../../../.. -nostdinc -DDIAGNOSTIC -DNMBCLUSTERS="0x800" -DLKM -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -Dalpha   -c ../../../../net/if_ieee80211subr.c
cc1: warnings being treated as errors
../../../../net/if_ieee80211subr.c: In function `ieee80211_decap':
../../../../net/if_ieee80211subr.c:439: warning: cast from pointer to integer of different size

Perhaps something like this is needed?

--- /usr/src/sys/net/if_ieee80211subr.c	Sat Sep 22 02:16:00 2001
+++ if_ieee80211subr.c	Sat Sep 22 13:35:04 2001
@@ -436,7 +436,7 @@
 		return NULL;
 	}
 	if (ALIGN(mtod(m, caddr_t) + sizeof(*eh)) !=
-	    (u_int)(mtod(m, caddr_t) + sizeof(*eh))) {
+	    (uintptr_t)(mtod(m, caddr_t) + sizeof(*eh))) {
 		struct mbuf *n, *n0, **np;
 		caddr_t newdata;
 		int off;