Subject: kern/12798: -current syssrc grf_compat.c compile error
To: None <gnats-bugs@gnats.netbsd.org>
From: None <thomason@physio1.utmem.edu>
List: netbsd-bugs
Date: 05/01/2001 07:58:14
>Number:         12798
>Category:       kern
>Synopsis:       -current syssrc grf_compat.c compile error
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 01 07:58:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Don Thomason
>Release:        1.5U
>Organization:
U Tenn. Health Sci Center
>Environment:
NetBSD physio64.utmem.edu 1.5U NetBSD 1.5U (CUSTOM) #0: Mon Apr 30 16:35:57 CDT
2001     thomason@physio64.utmem.edu:/usr/syssrc/sys/arch/mac68k/compile/CUSTOM
mac68k

>Description:
Change made by Chuck Silvers to grf_compat.c (CVS commit: syssrc 3/15/01) gives following compile error (file diffs noted below)

cc  -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith
-Wno-uninitialized -Wno-main -msoft-float -I. -I../../../../arch -I../../../.. -nostdinc -DHZ="0x3c" -DM68040 -DM68030 -DFPU_EMULATE -DLKM -DDIAGNOSTIC -DGRF_COMPAT -DMAXUSERS=16 -D_KERNEL -Dmac68k  -c ../../../../arch/mac68k/dev/grf_compat.c
cc1: warnings being treated as errors
../../../../arch/mac68k/dev/grf_compat.c: In function `grfunmap':
../../../../arch/mac68k/dev/grf_compat.c:390: warning: unused variable `rv'
*** Error code 1

diff src/sys/arch/mac68k/dev/grf_compat.c syssrc/sys/arch/mac68k/
dev/grf_compat.c
1c1
< /*    $NetBSD: grf_compat.c,v 1.3.2.1 2000/06/30 16:27:27 simonb Exp $       *
/
---
> /*    $NetBSD: grf_compat.c,v 1.6 2001/03/15 06:10:41 chs Exp $       */
57d56
< #include <vm/vm.h>
399,403c398,399
<
<       rv = uvm_unmap(&p->p_vmspace->vm_map, (vaddr_t)addr,
<           (vaddr_t)addr + size);
<
<       return (rv == KERN_SUCCESS ? 0 : EINVAL);
---
>       uvm_unmap(&p->p_vmspace->vm_map, (vaddr_t)addr, (vaddr_t)addr + size);
>       return 0;
>How-To-Repeat:

>Fix:
compile without -Werror
>Release-Note:
>Audit-Trail:
>Unformatted: