From nobody Sun Oct 02 04:29:30 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 4Mg9wV32dqz4dt9L; Sun, 2 Oct 2022 04:29:30 +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 4Mg9wV2Ppxz44dv; Sun, 2 Oct 2022 04:29:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664684970; 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=9DL6u4KVK+yT6ab/mdFGesQhqoZLDAzyb+1SBIuiJJs=; b=ElyNTRYMEtS5Mj82Edt3RW0txyeJp5X0RfrWSghhQlgxYbuE21Nh+3FWJtQoelGlJU9xWB KsrKKVwHoVOLsv8hu2iW6fGQIH/FmQ3MnIVPKbwQwYTl2FveCuPH6cGkGcMz2iMNwaE5We PI2yvIYD7zTDveBFRHI6vjnxfyg289FSBsmndZ8eHY8+VjMcJ2dmIQh+WiUC5yBvHWGsZu xfvP/NNSp5wIucqyfWA0gdOaZjPNnyaonkipU274VxzG6eDf4gtOCG+mSEH8XyIjth3MET c4f8SzuHSti0Y/OuJ0TGgSezrVJk448Wa8JLaaFmycinWC1TzmEIbOyMCZRJmQ== 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 4Mg9wV1QTmzlf6; Sun, 2 Oct 2022 04:29:30 +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 2924TUPg058257; Sun, 2 Oct 2022 04:29:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2924TUsQ058256; Sun, 2 Oct 2022 04:29:30 GMT (envelope-from git) Date: Sun, 2 Oct 2022 04:29:30 GMT Message-Id: <202210020429.2924TUsQ058256@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Warner Losh Subject: git: 95cde8b10be2 - stable/13 - pmc_save_user_callchain: eliminate write only td variable 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 95cde8b10be21e504222ad9877ecb0a2345f5184 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664684970; 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=9DL6u4KVK+yT6ab/mdFGesQhqoZLDAzyb+1SBIuiJJs=; b=SNUX7MK7ZLBNtxYhfPIkzTQRd+9vfIvL7MgWtHWKDwfh1FMa1fe/0Wwkfx+K6cGM2UG3Cc pSMaWZBUNbRSOAsvrZtfwNAVir0pCET34ZtKgTbe3NMZLKf4ebgBRcl3RkdpZzc+zv06zI nK67A8cGVt5p74QK0uc/h4JOYc7OOMPfBh4OE5RyXiolA5yA8PHhiRJ9SSMP2nJwJ7hy4E shEtziPLKoXHYB8B+DRew3j5vIU2PMOMlTyAVHu1sbzQIvNY6E89oWjkAMP61rYLJtF1GL jEOVUZdoFMUXDA9rV2LDi8PGRjdDUEvpjVKOsR0y2lV1+mVo/XTABgspHcbFpA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664684970; a=rsa-sha256; cv=none; b=vKqwcGK1VAlpYu6iMQUrmB4tt9f1wRhJ63x6YATzMtqjPEPvtG7G1c27t3HXHU656Tkjo5 vtvbeEcA1UwcGtNVwdwi+pDUiBt8lkwapRzdqdev01OumGk+oiZ82Dj74wIf1U8JLFQEtU d8HYxsjc4hSMwVJeDCfSEYBtqZFiGPMQ6bgxtRJsLWRgU42F8rvNNtZwNHdr68uVxwb1rM HCIhbcJDaC/ccTcyfUmXfrRgiHg+Mqqp0ioRvt7H7Xqkt22kF2h70AeQM2unQ5S1L8Bzst C2MC8qO/TQfkmEYotlNT05qp4938aV6X6OTpiBCxmXrDre8eAXcbJVJG/9ZCvw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=95cde8b10be21e504222ad9877ecb0a2345f5184 commit 95cde8b10be21e504222ad9877ecb0a2345f5184 Author: Warner Losh AuthorDate: 2022-07-08 17:53:30 +0000 Commit: Warner Losh CommitDate: 2022-10-02 04:25:52 +0000 pmc_save_user_callchain: eliminate write only td variable Sponsored by: Netflix (cherry picked from commit 6ca6b8ea523daa6f17e010711458800f30d2e1ee) --- sys/dev/hwpmc/hwpmc_arm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/dev/hwpmc/hwpmc_arm.c b/sys/dev/hwpmc/hwpmc_arm.c index ad13ade9bfa5..c585a6cefd1e 100644 --- a/sys/dev/hwpmc/hwpmc_arm.c +++ b/sys/dev/hwpmc/hwpmc_arm.c @@ -128,13 +128,11 @@ pmc_save_user_callchain(uintptr_t *cc, int maxsamples, struct trapframe *tf) { uintptr_t pc, r, oldfp, fp; - struct thread *td; int count; KASSERT(TRAPF_USERMODE(tf), ("[x86,%d] Not a user trap frame tf=%p", __LINE__, (void *) tf)); - td = curthread; pc = PMC_TRAPFRAME_TO_PC(tf); *cc++ = pc;