Subject: kern/7319: sys/dev/raidframe/rf_netbsdkintf.c contains some type mismatches
To: None <gnats-bugs@gnats.netbsd.org>
From: None <h-masuda@ootani.nagata.kobe.jp>
List: netbsd-bugs
Date: 04/04/1999 17:02:04
>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 (Kernel Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Apr 4 00:05:00 1999
>Last-Modified:
>Originator:
>Organization:
NAGATA, Kobe, JAPAN
>Release: NetBSD-current source updated 1999/04/03 by sup
>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);
}
}
>Audit-Trail:
>Unformatted: