Article View: muc.lists.netbsd.source-changes
Article #2Re: CVS commit: src
From: Taylor R Campbell
Date: Mon, 19 Oct 2026 17:10
Date: Mon, 19 Oct 2026 17:10
57 lines
4084 bytes
4084 bytes
> Module Name: src
> Committed By: tls
> Date: Sun Oct 18 14:56:33 UTC 2026
>
> Modified Files:
> src/sbin/raidctl: raidctl.c rf_configure.c
> src/sys/dev/raidframe: raidframevar.h rf_diskqueue.c rf_diskqueue.h
> rf_netbsdkintf.c
>
> Log Message:
> Fix PR kern/60896 queue-length bugs in RAIDframe configuration.
>
> ...
>
> + if (clabel->maxOutstanding <= 0)
> + config->maxOutstandingDiskReqs = RF_DEFAULT_QUEUE_DEPTH;
> + else if (clabel->maxOutstanding > RF_MAX_QUEUE_DEPTH)
> + config->maxOutstandingDiskReqs = RF_MAX_QUEUE_DEPTH;
> + else
> + config->maxOutstandingDiskReqs =
> + (uint8_t)clabel->maxOutstanding;
Did you forget to change maxOutstandingDiskReqs from `char' to
`unsigned char' or `uint8_t'?
The clang build is failing now on platforms where char is signed:
> /home/source/ab/HEAD-llvm/src/sys/rump/dev/lib/libraidframe/../../../../dev/raidframe/rf_netbsdkintf.c:3512:36: error: implicit conversion from 'int' to 'char' changes value from 255 to -1 [-Werror,-Wconstant-conversion]
> config->maxOutstandingDiskReqs = RF_MAX_QUEUE_DEPTH;
> ~ ^~~~~~~~~~~~~~~~~~
> /home/source/ab/HEAD-llvm/src/sys/rump/dev/lib/libraidframe/../../../../dev/raidframe/raidframevar.h:338:28: note: expanded from macro 'RF_MAX_QUEUE_DEPTH'
> #define RF_MAX_QUEUE_DEPTH 255
> ^~~
> 1 error generated.
> --- rf_netbsdkintf.pico ---
321 struct RF_Config_s {
...
336 char maxOutstandingDiskReqs; /* # concurrent reqs to be sent to a
337 * disk (uint8_t, 1..255). */
https://nxr.netbsd.org/xref/src/sys/dev/raidframe/raidframevar.h?r=1.24#336
Perhaps there are enough casts downstream that this hasn't created new
runtime issues, but it's bad if the declared type is mismatched with
reality so that all actual uses require casts.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<20261019171040.0C5A88558F@mail.netbsd.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mailReferences:
<20261018145633.3FC15FA2D@cvs.NetBSD.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail From: Taylor R Campbell <riastradh@NetBSD.org> Newsgroups: muc.lists.netbsd.source-changes Subject: Re: CVS commit: src Date: Mon, 19 Oct 2026 17:10:38 +0000 Organization: Newsgate at muc.de e.V. Sender: source-changes-d-owner@NetBSD.org Approved: news-admin@muc.de Distribution: world Message-ID: <20261019171040.0C5A88558F@mail.netbsd.org> References: <20261018145633.3FC15FA2D@cvs.NetBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="16191"; mail-complaints-to="news-admin@muc.de" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org; s=20240131; t=1792429844; bh=CJDlSib0NxUJFCJIGtt0nJeKnqTdhGL4LexQW9e7oXs=; h=To:CC:Subject:In-reply-to:Date:From:List-Id:List-Unsubscribe; b=KzulGT2aaze6tHmsxACyEdwtR0ud3x7SDNMhmdOi/W52oWvR4Kfb+WzEOwffLPdDy PW9HP5Heszef1Mq62n9ixM08ixS/5Satucbru/oR6AUrOINwQs+p+kToxBKE6GnsBf x7cyc1Sl5WTLZVTavNnrQ/9FYgIt5p6i1WdK3OBQ= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org; s=20240131; t=1792429840; bh=CJDlSib0NxUJFCJIGtt0nJeKnqTdhGL4LexQW9e7oXs=; h=To:CC:Subject:In-reply-to:Date:From; b=2GXU00fUjEj4rrMO47vjEeaNwzlYWnZZSlqSczKBbW/RGtX1Hi/Xqx01xSwmLul/y whyrd+6C8vTPTSmWIKTWqfNZbGnlMsJOL7mwAdjxh8YZmWiW9sMV0iIIWaeEoD+jH+ SYC2DLnNob+DtOrmOIJolX9bgzzQvhQQcYJCTQqU= In-reply-to: <20261018145633.3FC15FA2D@cvs.NetBSD.org> (tls@NetBSD.org) Precedence: bulk X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes