From nobody Sat May 11 19:05:44 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VcFZf0Qjlz5Kcl7; Sat, 11 May 2024 19:05:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VcFZc6jWhz4QZY; Sat, 11 May 2024 19:05:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715454344; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IHOpFZ4nGD8ZUyGHPrqoGc3cKNsIl+OVh3VJ6P1/i9s=; b=IRG2Xe0WNZP1HYN+OUEDLFuSElz9wtdxr0OT/kGdGdZHFC47gtdz+1b0t5dIzNwnfh1nUV diPwZ6ErFEi/NtFdr07UPriHwjoRH8p9KWJYq7HYZnEdA4mWqTQEdirQg934n1W1qKkaeF tRJoNqVHzdhZIA81SWAv7S5t2NS1Zty2T3sWkW0tzIJ94ZT+Ff3Hc4/pmRjvA4KkdsHGtX SYhMzD0YuzPPbJhX+F80pGw03s14yC7NZ2ZgXTraQtrS+Te/06iwLLqrI3ztHdajNq5ySk Zy2Qb/YnqZ1TVB2dssnPgUUGuJnJWWoXnAmfzzYegN/QWajFggUsjF1L9GZqWw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715454344; a=rsa-sha256; cv=none; b=iPDW+VbcwrHz3l3sBO7uIaYP/QR7PQS6b/wiyj4UpB2AJR+l6vsFmN9yybI1MzrYXvxJP5 oFfkzq3AisRoB29lyA1bsmTiL9ueCG3azqd9mUHmkqgYn9fHiwZQPfkq1IOC6PFHYaJz37 6u6DZLni0jckptBbZ7FJaGdloapfgGjNLmr70KVPGJ3WetdM2C7vsgZ73Sb3DadAnaNAmC idiILxIA6M+Yx1ICPRW5C9c/PsMUkgswv+eIFM/3e65nvyB9vfGCx5ughxSAtoH93T0STy ZHviCboo10nRjEBoLhWvWfvcVQBb/ZoLt3l1Xi7SNxaWvJbDndTVZkQaRft00Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715454344; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IHOpFZ4nGD8ZUyGHPrqoGc3cKNsIl+OVh3VJ6P1/i9s=; b=OV0oqlpBLT9WTTuRpq8Q6pJVsr2hzrN8ctfJLivF5H+rZQAPseTq3PNoOZKeHzpZrhNajj wrsNf8ol8ZQjBEEkYfp52ZwQul+EhAKtevNkStajdYDlTIIcT5FWxhhb1h2i/525LRu8TL 2rWLIEk4Op1VmhOotdTN5qrNfkAQPNY77HfFUbSQXSzWhpiWDfmsn4aR09+5phSJrS7MMN g3oQTcs80SfHPR1DPE14htkrPAPa2C7z3Dh4TR4IX0R/Q3FdmFL+02a+C56kDnBmBuf2E3 tkBd6csUGP0h5Eamlb+h/ceEi2Z05i0wD0ixVuy+ks3kBlny6lWZ1aRysTZ54A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VcFZc6KjgzYQT; Sat, 11 May 2024 19:05:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 44BJ5imW094520; Sat, 11 May 2024 19:05:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44BJ5iFR094517; Sat, 11 May 2024 19:05:44 GMT (envelope-from git) Date: Sat, 11 May 2024 19:05:44 GMT Message-Id: <202405111905.44BJ5iFR094517@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 3d966ae7895b - main - nvmecontrol: Appease a meaningless signed error warning thing List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3d966ae7895b40c7a4985f61ff4819c25c8618c9 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=3d966ae7895b40c7a4985f61ff4819c25c8618c9 commit 3d966ae7895b40c7a4985f61ff4819c25c8618c9 Author: Warner Losh AuthorDate: 2024-05-11 19:01:10 +0000 Commit: Warner Losh CommitDate: 2024-05-11 19:03:29 +0000 nvmecontrol: Appease a meaningless signed error warning thing Consistently use the weird ssize_t type for things I know are unsigned, but which none-the-less need to be compared to signed things to prevent a bogus warning. Sigh, these aren't bugs, can't possibly be bugs and a waste of time to fix. Sponsored by: Netflix --- sbin/nvmecontrol/telemetry.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/nvmecontrol/telemetry.c b/sbin/nvmecontrol/telemetry.c index df83382d50ed..72c304229a80 100644 --- a/sbin/nvmecontrol/telemetry.c +++ b/sbin/nvmecontrol/telemetry.c @@ -96,9 +96,9 @@ telemetry_log(const struct cmd *f, int argc, char *argv[]) int fd, fdout; char *path; uint32_t nsid; - uint64_t size; + ssize_t size; uint64_t off; - uint32_t chunk; + ssize_t chunk; struct nvme_controller_data cdata; bool can_telemetry; struct nvme_telemetry_log_page tlp, buf;