Subject: port-i386/32382: /usr/src/sys/arch/i386/i386/mem.c fails to build
To: None <port-i386-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <paul@Plectere.com>
List: netbsd-bugs
Date: 12/25/2005 18:40:00
>Number:         32382
>Category:       port-i386
>Synopsis:       /usr/src/sys/arch/i386/i386/mem.c fails to build
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 25 18:40:00 +0000 2005
>Originator:     Paul Shupak
>Release:        NetBSD 3.99.15
>Organization:
	
>Environment:
	
	
System: NetBSD svcs 3.99.10 NetBSD 3.99.10 (SVCS) #22: Wed Oct 19 14:35:15 PDT 2005 root@svcs:/sys/arch/i386/compile/SVCS i386
Architecture: i386
Machine: i386
>Description:
	The file /usr/src/sys/arch/i386/i386/mem.c still declares an
	(unused) argument of type proc pointer where a lwp pointer is
	required
>How-To-Repeat:
	Try to build a kernel for i386.
>Fix:
	Trivial patch

Index: mem.c
===================================================================
RCS file: /cvsroot/src/sys/arch/i386/i386/mem.c,v
retrieving revision 1.59
diff -c -r1.59 mem.c
*** mem.c	7 Aug 2003 16:27:55 -0000	1.59
--- mem.c	25 Dec 2005 18:34:28 -0000
***************
*** 112,121 ****
  
  /*ARGSUSED*/
  int
! mmopen(dev, flag, mode, p)
  	dev_t dev;
  	int flag, mode;
! 	struct proc *p;
  {
  
  	switch (minor(dev)) {
--- 112,121 ----
  
  /*ARGSUSED*/
  int
! mmopen(dev, flag, mode, l)
  	dev_t dev;
  	int flag, mode;
! 	struct lwp *l;
  {
  
  	switch (minor(dev)) {

>Unformatted:
 	/usr/src/sys/arch/i386/i386/mem.c uses proc * instead of lwp *