Subject: some kernel compile warnings from -current
To: None <port-sun3@NetBSD.ORG>
From: Erik E. Fair <fair@clock.org>
List: port-sun3
Date: 03/11/1998 04:44:38
cc  -O2 -fno-defer-pop -msoft-float -Wall -Wstrict-prototypes -nostdinc -I.
-I..
/../../../arch -I../../../.. -undef -D__NetBSD__ -Dm68k -Dmc68000 -D_KERNEL
-Dmc
68020 -Dsun3 -D_SUN3_ -DFPU_EMULATE -DHAVECACHE -DKTRACE -DSYSVMSG
-DSYSVSEM -DS
YSVSHM -DDDB -DCOMPAT_SUNOS -DCOMPAT_43 -DCOMPAT_10 -DCOMPAT_11 -DCOMPAT_12
-DCO
MPAT_13 -DFIFO -DNFSSERVER -DQUOTA -DINET -DNFS_BOOT_RWSIZE="0x400"
-DLANCE_REVC
_BUG -DMAXUSERS=4  -c ../../../../arch/sun3/sun3/machdep.c

../../../../arch/sun3/sun3/machdep.c: In function `cpu_startup':
../../../../arch/sun3/sun3/machdep.c:281: warning: int format, long int arg
(arg
 2)
../../../../arch/sun3/sun3/machdep.c:362: warning: int format, long int arg
(arg
 2)

cc  -O2 -fno-defer-pop -msoft-float -Wall -Wstrict-prototypes -nostdinc -I.
-I..
/../../../arch -I../../../.. -undef -D__NetBSD__ -Dm68k -Dmc68000 -D_KERNEL
-Dmc
68020 -Dsun3 -D_SUN3_ -DFPU_EMULATE -DHAVECACHE -DKTRACE -DSYSVMSG
-DSYSVSEM -DS
YSVSHM -DDDB -DCOMPAT_SUNOS -DCOMPAT_43 -DCOMPAT_10 -DCOMPAT_11 -DCOMPAT_12
-DCO
MPAT_13 -DFIFO -DNFSSERVER -DQUOTA -DINET -DNFS_BOOT_RWSIZE="0x400"
-DLANCE_REVC
_BUG -DMAXUSERS=4  -c ../../../../arch/sun3/sun3/obio.c

../../../../arch/sun3/sun3/obio.c: In function `obio_find_mapping':
../../../../arch/sun3/sun3/obio.c:231: warning: assignment makes integer
from po
inter without a cast

and when I removed all VME & VAC support from a kernel intended just for
3/60's, I got this also:

cc  -O2 -fno-defer-pop -msoft-float -Wall -Wstrict-prototypes -nostdinc -I.
-I..
/../../../arch -I../../../.. -undef -D__NetBSD__ -Dm68k -Dmc68000 -D_KERNEL
-Dmc
68020 -Dsun3 -D_SUN3_ -DKTRACE -DSYSVMSG -DSYSVSEM -DSYSVSHM -DDDB
-DDDB_HISTORY
_SIZE="0x64" -DDIAGNOSTIC -DCOMPAT_SUNOS -DCOMPAT_43 -DCOMPAT_10
-DCOMPAT_11 -DC
OMPAT_12 -DCOMPAT_13 -DFIFO -DNFSSERVER -DQUOTA -DINET -DGATEWAY -DNTP
-DNFS_BOO
T_RWSIZE="0x400" -DLANCE_REVC_BUG -DMAXUSERS=4  -c
../../../../arch/sun3/sun3/pm
ap.c

../../../../arch/sun3/sun3/pmap.c: In function `pmap_protect_mmu':
../../../../arch/sun3/sun3/pmap.c:3160: warning: unused variable
`flush_by_page'
../../../../arch/sun3/sun3/pmap.c: In function `pmap_remove_mmu':
../../../../arch/sun3/sun3/pmap.c:3407: warning: unused variable
`flush_by_page'