Subject: kern/2038: conflicting types for `cpu_fork' and `vunmapbuf'
To: None <gnats-bugs@NetBSD.ORG>
From: Thorsten Frueauf <frueauf@ira.uka.de>
List: netbsd-bugs
Date: 02/06/1996 15:47:18
>Number:         2038
>Category:       kern
>Synopsis:       conflicting types for `cpu_fork' and `vunmapbuf'
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb  6 10:20:03 1996
>Last-Modified:
>Originator:     Thorsten Frueauf
>Organization:
private
>Release:        <NetBSD-current source date> NetBSD current 06.02.1996
>Environment:
	
NetBSD cybersil 1.1A NetBSD 1.1A (Milano) #1: Tue Feb  6 15:24:17 MET 1996     milano@cybersil:/amd/home/milano/source/netbsd-src/sys/arch/hp300/compile/Milano hp300

>Description:
	
conflicting types for `cpu_fork' and `vunmapbuf' in /src/sys/vm/vm_extern.h and
/src/sys/arch/hp300/hp300/vm_machdep.c.

>How-To-Repeat:
	
Try to compile a kernel with current 06.02.1996 ans watch:

cc  -O2 -Werror -msoft-float -I. -I../../../../arch -I../../../.. -DMILANO -DHP3
80 -DHP375 -DHP370 -DHP360 -DHP350 -DHP340 -DHP330 -DHP320 -DGENERIC -DDIAGNOSTI
C -DDEBUG -DDDB -DCOMPAT_HPUX -DCOMPAT_NOLABEL -DUSELEDS -DFPSP -DTCP_COMPAT_42 
-DMROUTING -DGATEWAY -DINET -DMFS -DPROCFS -DFDESC -DKERNFS -DUNION -DNFSCLIENT 
-DNFSSERVER -DCD9660 -DQUOTA -DFFS -DFIFO -DNKMEMCLUSTERS=1024 -DKTRACE -DSYSVMS
G -DSYSVSEM -DSYSVSHM -DCOMPAT_10 -DCOMPAT_09 -DCOMPAT_44 -DCOMPAT_43 -DDEVPAGER
 -DVNODEPAGER -DSWAPPAGER -D_KERNEL -Dmc68020 -Dhp300 -DFPCOPROC  -c ../../../..
/arch/hp300/hp300/vm_machdep.c
../../../../arch/hp300/hp300/vm_machdep.c:73: conflicting types for `cpu_fork'
../../../../vm/vm_extern.h:138: previous declaration of `cpu_fork'
../../../../arch/hp300/hp300/vm_machdep.c:345: conflicting types for `vunmapbuf'
../../../../vm/vm_extern.h:136: previous declaration of `vunmapbuf'
*** Error code 1

Stop.

>Fix:
	
Apply the followin patch:

*** vm_extern.h-orig    Tue Feb  6 13:57:03 1996
--- vm_extern.h Tue Feb  6 15:20:23 1996
***************
*** 135,140 ****
  void          vmapbuf __P((struct buf *, vm_size_t));
  void          vunmapbuf __P((struct buf *, vm_size_t));
  void          remrq __P((struct proc *));
! int           cpu_fork __P((struct proc *, struct proc *));
  
  #endif
--- 135,140 ----
  void          vmapbuf __P((struct buf *, vm_size_t));
  void          vunmapbuf __P((struct buf *, vm_size_t));
  void          remrq __P((struct proc *));
! void          cpu_fork __P((struct proc *, struct proc *));
  
  #endif
*** vm_machdep.c-orig   Tue Feb  6 13:56:34 1996
--- vm_machdep.c        Tue Feb  6 15:23:58 1996
***************
*** 341,346 ****
--- 341,347 ----
   * Free the io map PTEs associated with this IO operation.
   */
  /*ARGSUSED*/
+ void
  vunmapbuf(bp, sz)
        register struct buf *bp;
        vm_size_t sz;
>Audit-Trail:
>Unformatted:
conflicting types for `cpu_fork' and `vunmapbuf'