Subject: Re: build GENERIC -current on 1.4X shapshot, kd.c
To: Secret Asian Man <cchen@nougat.org>
From: Jim Bernard <jbernard@mines.edu>
List: port-sparc
Date: 05/20/2000 21:00:42
On Sat, May 20, 2000 at 07:16:42PM -0700, Secret Asian Man wrote:
> Hi... I've been up all night trying to bootstrap up to the latest -CURRENT, and I'm seeing a reoccuring error building kernels.
> 
> cc  -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith -Wno-uninitialized -Wno-main -I. -I../../../../arch 
> -I../../../.. -nostdinc -I../../../../../gnu/sys -DSUN4 -DSUN4C -DSUN4M -DRASTERCONSOLE -DLKM -DMIIVERBOSE -DMAXUSERS=32 -D_KERNEL  
> -c ../../../../arch/sparc/dev/kd.c
> ../../../../arch/sparc/dev/kd.c: In function `consinit':
> ../../../../arch/sparc/dev/kd.c:687: too few arguments to function `cons_attach_input'
> *** Error code 1

  Try the following patch.  It fixes the compilation problem, and I think
it's the right thing to do, but I don't want to risk a remote boot to test
it just now.

--- kd.c-dist	Fri May 19 14:07:11 2000
+++ kd.c	Sat May 20 20:50:59 2000
@@ -682,11 +682,11 @@
 
 	/* Set up initial PROM input channel for /dev/console */
 	prom_cons_channel.cc_dev = NULL;
 	prom_cons_channel.cc_iopen = kd_rom_iopen;
 	prom_cons_channel.cc_iclose = kd_rom_iclose;
-	cons_attach_input(&prom_cons_channel);
+	cons_attach_input(&prom_cons_channel, cn_tab);
 
 #ifdef	KGDB
 	zs_kgdb_init();	/* XXX */
 #endif
 }