NetBSD Problem Report #10136

Received: (qmail 6120 invoked from network); 17 May 2000 07:12:02 -0000
Message-Id: <200005170711.QAA00667@baradagi.ootani.nagata.kobe.jp>
Date: Wed, 17 May 2000 16:11:51 +0900 (JST)
From: h-masuda@ootani.nagata.kobe.jp
Reply-To: h-masuda@ootani.nagata.kobe.jp
To: gnats-bugs@gnats.netbsd.org
Subject: variable "booted_device" must be exported
X-Send-Pr-Version: 3.95

>Number:         10136
>Category:       port-newsmips
>Synopsis:       variable "booted_device" must be exported
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-newsmips-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 17 07:13:00 +0000 2000
>Closed-Date:    Thu Jun 15 09:55:14 +0000 2000
>Last-Modified:  Thu Jun 15 09:55:14 +0000 2000
>Originator:     MASUDA Hideo
>Release:        NetBSD-current source 2000/05/16 by rsync+cvs
>Organization:
	Ootani, Nagata, Kobe, JAPAN
>Environment:
System: NetBSD baradagi.ootani.nagata.kobe.jp 1.4Y NetBSD 1.4Y (BARADAGI) #7: Wed May 17 13:54:11 JST 2000 h-masuda@baradagi.ootani.nagata.kobe.jp:/usr/syssrc/sys/arch/newsmips/compile/BARADAGI newsmips

>Description:
	The variable "booted_device" is refered by "rf_buildroothack()" in
	sys/dev/raidframe/rf_netbsdkintf.c.
	So this variable must be exported.
>How-To-Repeat:
	enable "pseudo-device raid", config and make kernel
>Fix:
	"booted_device" in sys/arch/newsmips/newsmips/autoconf.c is
	private variable of cpu_rootconf() function.
	This will be fixed by exporting.
	Quick patch as following:

*** autoconf.c-dist	Thu Dec 23 07:34:32 1999
--- autoconf.c	Wed May 17 08:46:36 2000
***************
*** 114,123 ****
  	_splnone();	/* enable all source forcing SOFT_INTs cleared */
  }

  void
  cpu_rootconf()
  {
- 	struct device *booted_device;
  	int booted_partition;

  	findroot(&booted_device, &booted_partition);
--- 114,123 ----
  	_splnone();	/* enable all source forcing SOFT_INTs cleared */
  }

+ struct device *booted_device;
  void
  cpu_rootconf()
  {
  	int booted_partition;

  	findroot(&booted_device, &booted_partition);
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: tsubai 
State-Changed-When: Thu Jun 15 02:53:32 PDT 2000 
State-Changed-Why:  
Fixed in autoconf.c rev.1.12 and 1.13. 
Confirmed by the submitter. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.