Subject: Re: another -current compile error
To: None <fair@clock.org>
From: Gordon W. Ross <gwr@mc.com>
List: port-sun3
Date: 03/16/1998 11:08:13
> Date: Sun, 15 Mar 1998 01:41:02 -0800
> From: "Erik E. Fair" <fair@clock.org>
> 
> all ===> sys/lkm/netinet/if_ipl
> rm -f machine &&  ln -s /usr/src/sys/arch/sun3/include machine
> rm -f m68k &&  ln -s /usr/src/sys/arch/m68k/include m68k
> cc -O  -D_KERNEL -D_LKM -I. -I/usr/src/sys/lkm/netinet/if_ipl
> -I/usr/src/sys -I/
> usr/src/sys/arch -Werror  -DIPFILTER_LOG -c /usr/src/sys/netinet/ip_fil.c
> In file included from /usr/src/sys/vm/vm.h:84,
>                  from /usr/src/sys/netinet/ip_compat.h:306,
>                  from /usr/src/sys/netinet/ip_fil.c:91:
> /usr/src/sys/vm/pmap.h:125: syntax error before `vm_offset_t'
[...]
> Some definition or other is missing here.
> 
> 	Erik <fair@clock.org>

Yes, the type pmap_t was not typedef'ed.  It seems that the best
way to fix this is to elevate the pmap_t typedef out of pmap3x.h
and pmap3.h into pmap.h so the LKM build will have what it needs.
I'll go ahead and commit that change.

Note that the details of struct pmap are private to each kernel
implementation (may vary on differen m68k kernels) so it will be
an anonymous struct unless one of _SUN3_ or _SUN3X_ is defined.
(Which should only happen when building a kernel.)

Gordon