From nobody Tue Apr 05 04:32:18 2022 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 DDD671A90A83; Tue, 5 Apr 2022 04:32:19 +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 4KXZVq2sJ3z4frN; Tue, 5 Apr 2022 04:32:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133139; 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=KXwLVfAWdObGhyvmsiZWE2dtZtDNPxyKgHNEGqW3oT8=; b=UHPf4h0816m+mK9ho5l5OX6s1svGpgQztTn2pGkQsn0ItRUxxLZqbBFqb8nLw+5+UEol73 FzrvFLD2W7d1phBBAu50qffydfbOm/tR4k42i88JaBIKlCaYi3bClFjOj6HBKnHpLTMe1M V+C4dTtZx+aQe3cineJ7/kVWrlibQ5CjTJPQmtU+3S1IQ8ATnrRF4QRq0kRQDarQVaBMHe Fc+ynRBlvkAnBUq30U9zw6tzzL3mcmQSL5YNt2TGcEYfRIW8JSuX1rpTc96WJfyxmfwu5l 2jlOTsh+m2XE4QKkOtjE3TR8oKiV1BJxi0CKzBOaeyhRg9/aU1WWqwDT+zlQ2w== 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 CA29A1FDB4; Tue, 5 Apr 2022 04:32:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2354WITJ008833; Tue, 5 Apr 2022 04:32:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2354WIbv008832; Tue, 5 Apr 2022 04:32:18 GMT (envelope-from git) Date: Tue, 5 Apr 2022 04:32:18 GMT Message-Id: <202204050432.2354WIbv008832@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: 8a46fc9a9bdc - main - armv7_allocate_pmc: remove write only variable pac 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: 8a46fc9a9bdc18bc559ddae155cedcdcc1365c46 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649133139; 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=KXwLVfAWdObGhyvmsiZWE2dtZtDNPxyKgHNEGqW3oT8=; b=bbQlpO0Cytoy9MLDdRytRIJgJvqNOOjcRFsrycESEsTWvuuAZCA85X+Q2mr16X1ETTGUMg pSc3VdnevImMg9AFm+Srn+WHcxFQCBwHoDuSiGQjhl3Bk+XEIey6oWyc0MHwvby8F1/4kk ApiruWX/It89BPF/N2j4aOV8TmXtNdjtWncWjg/3OMks3mGgWAYQ7wX/0N8+zsH5S09FRk Mg4mIeZ3i3QLA/jNl1lb238q4ky/R+orutZPNW1U1Vel4dowKK7h9DOhBeHh8SQyUg99Jk UfoBwA5r0342zRXJ+1BXdN6aGNRLJFeU+fAmg2rlbYPiSIn5YS+0GF25g5mRLg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649133139; a=rsa-sha256; cv=none; b=CqbIZRyMacG5uPDapfkRIm7v1mfTxVmycjN+InB4DEL2dIp+5yuHpqtDkLpoReUB9eiIO1 5IV2A5xEGnl2mKyRETjbVam9U3P+q2yUUsGrKcs1/fRhGnHku9/9nauXk2luQVPwrtEjTR UW6Zsf9V5hVU9pSvivmh9S0y50lcSqxBkDKDRdbGcG0bzrdvt3vFS9xtyonh2fE9O5v0wa FDnsgSw+NMr5OKp/V+jXsTpRXfYxTtgKWYIbRfEAQLrf/HL1CknJlUy3kssJhvYZ9HgEPW 452BxRWPaXhERv829pnQdf1J0VJf8PsH5PMix8C+RzBJsPBW6ZUHIGV8wfx3Vw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=8a46fc9a9bdc18bc559ddae155cedcdcc1365c46 commit 8a46fc9a9bdc18bc559ddae155cedcdcc1365c46 Author: Warner Losh AuthorDate: 2022-04-05 01:34:12 +0000 Commit: Warner Losh CommitDate: 2022-04-05 04:29:34 +0000 armv7_allocate_pmc: remove write only variable pac Sponsored by: Netflix --- sys/dev/hwpmc/hwpmc_armv7.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sys/dev/hwpmc/hwpmc_armv7.c b/sys/dev/hwpmc/hwpmc_armv7.c index 090e4523102d..95ac9a56abb7 100644 --- a/sys/dev/hwpmc/hwpmc_armv7.c +++ b/sys/dev/hwpmc/hwpmc_armv7.c @@ -138,7 +138,6 @@ static int armv7_allocate_pmc(int cpu, int ri, struct pmc *pm, const struct pmc_op_pmcallocate *a) { - struct armv7_cpu *pac; enum pmc_event pe; uint32_t config; @@ -147,8 +146,6 @@ armv7_allocate_pmc(int cpu, int ri, struct pmc *pm, KASSERT(ri >= 0 && ri < armv7_npmcs, ("[armv7,%d] illegal row index %d", __LINE__, ri)); - pac = armv7_pcpu[cpu]; - if (a->pm_class != PMC_CLASS_ARMV7) return (EINVAL); pe = a->pm_ev; @@ -334,7 +331,6 @@ armv7_release_pmc(int cpu, int ri, struct pmc *pmc) static int armv7_intr(struct trapframe *tf) { - struct armv7_cpu *pc; int retval, ri; struct pmc *pm; int error; @@ -345,7 +341,6 @@ armv7_intr(struct trapframe *tf) ("[armv7,%d] CPU %d out of range", __LINE__, cpu)); retval = 0; - pc = armv7_pcpu[cpu]; for (ri = 0; ri < armv7_npmcs; ri++) { pm = armv7_pcpu[cpu]->pc_armv7pmcs[ri].phw_pmc;