Subject: port-mac68k/16233: mac68k bus.h not up-to-date
To: None <gnats-bugs@gnats.netbsd.org>
From: None <hauke@Espresso.Rhein-Neckar.DE>
List: netbsd-bugs
Date: 04/07/2002 18:25:26
>Number:         16233
>Category:       port-mac68k
>Synopsis:       mac68k bus.h not up-to-date
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-mac68k-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 07 09:57:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
>Release:        -current of 2002-04-07
>Organization:
Einzeln auftretender Radfahrer
>Environment:
	
System: NetBSD q700.causeuse.org 1.5ZB NetBSD 1.5ZB (FG54) #0: Sun Mar 10 04:28:15 CET 2002 hauke@q700.causeuse.org:/usr/src/sys/arch/mac68k/compile/FG54 mac68k
Architecture: m68k
Machine: mac68k
>Description:
	The current mac68k 'bus.h' 

	$NetBSD: bus.h,v 1.18 2001/09/14 00:58:08 briggs Exp $

	is out of sync with the bus_space.9 manpage and the other ports. 
	The fourth argument of bus_space_write_region_?() and friends,
	a pointer to the data source, has been turned into a const, 
	which leads to e.g.

cc  -msoft-float -ffreestanding  -pipe -O -m68020-40 -Werror -Wall -Wno-main -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-uninitialized  -Dmac68k -I.  -I../../../../arch -I../../../.. -nostdinc -DHZ="0x3c" -DM68040 -DM68030 -DDIAGNOSTIC -DDEBUG -DSIOP_53C7X0 -DSCSIPIDEBUG -DSIOP_DEBUG -DMAXUSERS=8 -D_KERNEL -D_KERNEL_OPT   -c ../../../../dev/ic/siop.c
cc1: warnings being treated as errors
../../../../dev/ic/siop.c: In function `siop_reset':
../../../../dev/ic/siop.c:276: warning: passing arg 4 discards `const' from pointer target type
../../../../dev/ic/siop.c: In function `siop_get_lunsw':
../../../../dev/ic/siop.c:1728: warning: passing arg 4 discards `const' from pointer target type
../../../../dev/ic/siop.c: In function `siop_add_dev':
../../../../dev/ic/siop.c:1878: warning: passing arg 4 discards `const' from pointer target type
*** Error code 1



>How-To-Repeat:
	Try to port a -current MI driver to mac68k.

>Fix:
	Please sync up bus.h and mac68k/bus_space.c with the rest of NetBSD.
>Release-Note:
>Audit-Trail:
>Unformatted: