From nobody Thu May 23 16:27:56 2024 X-Original-To: dev-commits-src-main@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 4VlYW10bvrz5KYhN; Thu, 23 May 2024 16:27:57 +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 4VlYW05s5wz4h07; Thu, 23 May 2024 16:27:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716481676; 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=bblVp0tyK6WXCdxKolsz0e4+L6AOuiSZ5gTcjF5/u6Y=; b=RsSh8FGDEFp6GV4MyO4So5Ach7OOM8ATtbvF9b2rEpzk85OcUslFbKJZn/4bvpfDJ07/Si yYzDpLhgbijTTXp2mNpBT8V2litbuKVTyznvun5WDVK1XhyRf7cWiHLOoRDFK+IIR/bp6S OnKWCUCfPgLorRYzG+xRr5A95Giv7RcTMFcHVv0CUje0kM0crtQu3MLmM97OYs20qKZSSl eo0tiAdbT6PIKRmk9682IR2/l/98IBKQuWNFTHQw8e8ElVYEASli4JKHm1l6mLwFSoOXUg fPxno6EbBtNnv8NRc017GUwD+lJ2AxNI9F0bIOQ1fFvZ7UqtsrwadbRJ952DXw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716481676; a=rsa-sha256; cv=none; b=n/y4519aV/uRlkNvsNPjul/0JQRE9R8qCNXdGXqThYPsL1kxyV6wRNWYRS5LylI8gAAMdH iYfNAR9eIGOpph41d2rr8MK+IDw8OnmisJ33roTsTq09G6PivPRBWQ/UpRpC/rFr8E8s7H Vo1geuQVn4G1gMhR8iQtp/ElO0Ja6Sr2fs6nxzwyl80gN/9TKEu2zYzTqka6E3AUsTSLEq Ka8Nf9iWzDcuw5RvYRA0zZF+Wdp3IwonqkOCTNLFpXNYfPVtf+1QREOJeLFXB0Rg/2j+MK c+FzTqMvFKuavKUjiRbDMQJHyAv04dm9oqGEK8XO6uWAj9gqyPe7wijAPmclzg== 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=1716481676; 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=bblVp0tyK6WXCdxKolsz0e4+L6AOuiSZ5gTcjF5/u6Y=; b=LMqYid9CfXG7eoDvu9SfWM61nOazPOjNtgaP94UGIZN1iF77gSdZqoIN1RQgi30HBczJJi bLn07NQk+Jd1dWil6dEgTYNZSwKMrbR5YiUDunW5ABw4i+GFqDOhtQE+Zn1/pHZ6EWXaqJ WfX9pr4m+WFn/kyKaC/2M8liWjtiekyEm/GBYiua8ksyfeKW2n9/wm9HyL4RBhsDW0X54+ RYIl4vTvEZuPbT5hWhwPueR5Bx1STMLiiU6z3FSUfybfFIuSR3W2d6uqdgDSz66XGUxAKI /ubs+x7Nf51vl/zBadBSJ7C9FK1E6r2c9L9JSTypCRhjc2zg6qavpODdgM2I2w== 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 4VlYW04ktLzxCH; Thu, 23 May 2024 16:27:56 +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 44NGRuSf047862; Thu, 23 May 2024 16:27:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44NGRuAO047859; Thu, 23 May 2024 16:27:56 GMT (envelope-from git) Date: Thu, 23 May 2024 16:27:56 GMT Message-Id: <202405231627.44NGRuAO047859@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Brooks Davis Subject: git: 6729e8a40bd9 - main - libpmc: remove tautological assert List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: brooks X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6729e8a40bd9b15c2790bc96c58817493de4f6f0 Auto-Submitted: auto-generated The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/src/commit/?id=6729e8a40bd9b15c2790bc96c58817493de4f6f0 commit 6729e8a40bd9b15c2790bc96c58817493de4f6f0 Author: Brooks Davis AuthorDate: 2024-05-23 16:26:24 +0000 Commit: Brooks Davis CommitDate: 2024-05-23 16:27:37 +0000 libpmc: remove tautological assert gcc13 whines about this assert than an unsigned integer is >= 0. Reviewed by: luporl Fixes: b48a2770d48b9 powerpc64: add Power8 and Power9 PMCs Differential Revision: https://reviews.freebsd.org/D45232 --- lib/libpmc/libpmc_pmu_util.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/libpmc/libpmc_pmu_util.c b/lib/libpmc/libpmc_pmu_util.c index fa2e76e8d026..74a93ae963d7 100644 --- a/lib/libpmc/libpmc_pmu_util.c +++ b/lib/libpmc/libpmc_pmu_util.c @@ -622,7 +622,6 @@ pmc_pmu_pmcallocate_md(const char *event_name, struct pmc_op_pmcallocate *pm) if (pmu_parse_event(&ped, pe->event)) return (ENOENT); - assert(ped.ped_event >= 0); pm->pm_ev = idx; pm->pm_md.pm_event = ped.ped_event; pm->pm_class = PMC_CLASS_POWER8;