NetBSD Problem Report #7319

Received: (qmail 25525 invoked from network); 4 Apr 1999 08:02:07 -0000
Message-Id: <199904040802.RAA00476@meril.mangajin.org>
Date: Sun, 4 Apr 1999 17:02:04 +0900 (JST)
From: h-masuda@ootani.nagata.kobe.jp
Reply-To: h-masuda@ootani.nagata.kobe.jp
To: gnats-bugs@gnats.netbsd.org
Cc: h-masuda@ootani.nagata.kobe.jp
Subject: sys/dev/raidframe/rf_netbsdkintf.c contains some type mismatches
X-Send-Pr-Version: 3.95

>Number:         7319
>Category:       kern
>Synopsis:       sys/dev/raidframe/rf_netbsdkintf.c contains some type mismatches
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 04 00:05:00 +0000 1999
>Closed-Date:    Sat May 01 10:58:18 +0000 1999
>Last-Modified:  Sat May 01 11:04:44 +0000 1999
>Originator:     
>Release:        NetBSD-current source updated 1999/04/03 by sup
>Organization:
	NAGATA, Kobe, JAPAN
>Environment:
	DEC3000/300
System: NetBSD meril.mangajin.org 1.4_ALPHA NetBSD 1.4_ALPHA (MERIL) #5: Sun Apr 4 14:07:35 JST 1999 h-masuda@meril.mangajin.org:/usr/src/sys/arch/alpha/compile/MERIL alpha


>Description:
	when compiling kernel, stop by following reason.

cc  -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith 
-Wno-main -mno-fp-regs -I. -I../../../../arch -I../../../.. -nostdinc -DDIAGNOST
IC -DLKM -DMAXUSERS=32 -D_KERNEL -Dalpha  -c ../../../../dev/raidframe/rf_netbsd
kintf.c 
cc1: warnings being treated as errors
../../../../dev/raidframe/rf_netbsdkintf.c: In function `raidgetdisklabel':
../../../../dev/raidframe/rf_netbsdkintf.c:1863: warning: int format, different 
type arg (arg 4)
../../../../dev/raidframe/rf_netbsdkintf.c:1869: warning: int format, different 
type arg (arg 4)
*** Error code 1

Stop.

>How-To-Repeat:
	config KERNEL with "pseudo-device raid 4" and build kernel.
>Fix:
	apply following patch.

*** sys/dev/raidframe/rf_netbsdkintf.c.orig	Sat Mar 27 21:23:15 1999
--- sys/dev/raidframe/rf_netbsdkintf.c	Sun Apr  4 16:51:17 1999
***************
*** 1859,1872 ****
  		if (lp->d_secperunit != rs->sc_size)
  			printf("WARNING: %s: "
  			    "total sector size in disklabel (%d) != "
! 			    "the size of raid (%d)\n", rs->sc_xname,
! 			    lp->d_secperunit, rs->sc_size);
  		for (i = 0; i < lp->d_npartitions; i++) {
  			pp = &lp->d_partitions[i];
  			if (pp->p_offset + pp->p_size > rs->sc_size)
  				printf("WARNING: %s: end of partition `%c' "
! 				    "exceeds the size of raid (%d)\n",
! 				    rs->sc_xname, 'a' + i, rs->sc_size);
  		}
  	}

--- 1859,1872 ----
  		if (lp->d_secperunit != rs->sc_size)
  			printf("WARNING: %s: "
  			    "total sector size in disklabel (%d) != "
! 			    "the size of raid (%ld)\n", rs->sc_xname,
! 			    lp->d_secperunit, (long)rs->sc_size);
  		for (i = 0; i < lp->d_npartitions; i++) {
  			pp = &lp->d_partitions[i];
  			if (pp->p_offset + pp->p_size > rs->sc_size)
  				printf("WARNING: %s: end of partition `%c' "
! 				    "exceeds the size of raid (%ld)\n",
! 				    rs->sc_xname, 'a' + i, (long)rs->sc_size);
  		}
  	}

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: hwr 
State-Changed-When: Sat May 1 03:58:18 PDT 1999 
State-Changed-Why:  
This is addressed in 1.18 of rf_netbsdkintf.c 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.