Subject: Re: CVS commit: src/sys/dev/wscons
To: None <joerg@netbsd.org>
From: KIYOHARA Takashi <kiyohara@kk.iij4u.or.jp>
List: source-changes
Date: 10/18/2007 17:04:04
Hi! Joerg,


From: Joerg Sonnenberger <joerg@netbsd.org>
Date: Tue, 16 Oct 2007 21:06:10 +0000 (UTC)

> Module Name:	src
> Committed By:	joerg
> Date:		Tue Oct 16 21:06:10 UTC 2007
> 
> Modified Files:
> 	src/sys/dev/wscons: wsdisplay_compat_usl.c wskbd.c wsmouse.c
> 
> Log Message:
> Use callout_setfunc/callout_schedule instead of callout_reset.
> Use mstohz for the calculations.
> 
> 
> To generate a diff of this commit:
> cvs rdiff -r1.41 -r1.42 src/sys/dev/wscons/wsdisplay_compat_usl.c
> cvs rdiff -r1.105 -r1.106 src/sys/dev/wscons/wskbd.c
> cvs rdiff -r1.52 -r1.53 src/sys/dev/wscons/wsmouse.c
> 
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.
> 

Build faileds with landisk.  X-<


#   compile  GENERIC/wskbd.o
/usr/src/../cross/sh3el/bin/shle--netbsdelf-gcc -ffreestanding -fno-zero-initialized-in-bss -m4-nofpu -O1 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare -Wno-pointer-sign -Wno-attributes -fno-strict-aliasing -Dlandisk -I. -I../../../../../common/include -I../../../../arch -I../../../.. -nostdinc -DSH7751R -DDONT_INIT_BSC -DSH4_CACHE_DISABLE_EMODE -DLKM -DMAXUSERS=16 -D_KERNEL -D_KERNEL_OPT -I../../../../lib/libkern/../../../common/lib/libc/quad -I../../../../lib/libkern/../../../common/lib/libc/string -I../../../../lib/libkern/../../../common/lib/libc/arch/sh3/string -I../../../../dist/ipf -c ../../../../dev/wscons/wskbd.c
../../../../dev/wscons/wskbd.c: In function 'wskbd_attach':
../../../../dev/wscons/wskbd.c:418: error: 'wskbd_repeat' undeclared (first use in this function)
../../../../dev/wscons/wskbd.c:418: error: (Each undeclared identifier is reported only once
../../../../dev/wscons/wskbd.c:418: error: for each function it appears in.)

*** Failed target:  wskbd.o
*** Failed command: echo '# ' "compile GENERIC/wskbd.o"; echo /usr/src/../cross/sh3el/bin/shle--netbsdelf-gcc -ffreestanding -fno-zero-initialized-in-bss -m4-nofpu -O1 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare -Wno-pointer-sign -Wno-attributes -fno-strict-aliasing -Dlandisk -I. -I../../../../../common/include -I../../../../arch -I../../../.. -nostdinc -DSH7751R -DDONT_INIT_BSC -DSH4_CACHE_DISABLE_EMODE -DLKM -DMAXUSERS=16 -D_KERNEL -D_KERNEL_OPT -I../../../../lib/libkern/../../../common/lib/libc/quad -I../../../../lib/libkern/../../../common/lib/libc/string -I../../../../lib/libkern/../../../common/lib/libc/arch/sh3/string -I../../../../dist/ipf -c ../../../../dev/wscons/wskbd.c; /usr/src/../cross/sh3el/bin/shle--netbsdelf-gcc -ffreestanding -fno-zero-initialized-in-bss -m4-nofpu -O1 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wm!
 issing-prototypes -Wstrict-prototypes -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare -Wno-pointer-sign -Wno-attributes -fno-strict-aliasing -Dlandisk -I. -I../../../../../common/include -I../../../../arch -I../../../.. -nostdinc -DSH7751R -DDONT_INIT_BSC -DSH4_CACHE_DISABLE_EMODE -DLKM -DMAXUSERS=16 -D_KERNEL -D_KERNEL_OPT -I../../../../lib/libkern/../../../common/lib/libc/quad -I../../../../lib/libkern/../../../common/lib/libc/string -I../../../../lib/libkern/../../../common/lib/libc/arch/sh3/string -I../../../../dist/ipf -c ../../../../dev/wscons/wskbd.c
*** Error code 1

Stop.
nbmake: stopped in /usr/src/sys/arch/landisk/compile/GENERIC



I think.  ;-)

Warning: No xauth data; using fake authentication data for X11 forwarding.
Index: wskbd.c
===================================================================
RCS file: /cvsroot/src/sys/dev/wscons/wskbd.c,v
retrieving revision 1.106
diff -u -r1.106 wskbd.c
--- wskbd.c     16 Oct 2007 21:06:09 -0000      1.106
+++ wskbd.c     18 Oct 2007 08:01:48 -0000
@@ -318,9 +318,7 @@
 };
 #endif
 
-#if NWSDISPLAY > 0
 static void wskbd_repeat(void *v);
-#endif
 
 static int wskbd_console_initted;
 static struct wskbd_softc *wskbd_console_device;


Thanks,
--
kiyohara