From nobody Wed Jan 19 21:25:05 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 79C65193F32E; Wed, 19 Jan 2022 21:25:05 +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 4JfJZT337bz4fpJ; Wed, 19 Jan 2022 21:25:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642627505; 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=wFfeb8ckWuyIMj1l7viDAaukVSb1jxCLW3gvyKdezsg=; b=YtM9XiWrxZb+ZLb71HkIbsQEoNcQJvmuv02pwcOYGCK6OlwRVSqYaVfsqKxsAo4MRyIEEP EZGzP9HEQ4veJReBeW8FUW8UN1s//HjaC7OzdV86ToduwrHQ1qXtskGvCEpVvHjl2ksYU+ TjdODfL8XCgzNDFGnOqrvgXopS2D4N/pZ+zY83qKMHNr0vsiSOm8bsznKcBC7UUjxBr2J1 V1h+xLzwwsfcaHaGuuVnaZJpE6wtz6Hev0LsZEo9H0qUz95FeTWg4eUDnyThl5wnNaFe0s yrPksy3gxuap9tduSmShUuRMav9R5t+tH09hLXyMVyLS5xS5ASWpyXU/2KWWNA== 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 464041C383; Wed, 19 Jan 2022 21:25:05 +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 20JLP5ZC072470; Wed, 19 Jan 2022 21:25:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20JLP5rF072469; Wed, 19 Jan 2022 21:25:05 GMT (envelope-from git) Date: Wed, 19 Jan 2022 21:25:05 GMT Message-Id: <202201192125.20JLP5rF072469@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mitchell Horne Subject: git: eb81812fb782 - main - riscv: fix unused var in page_fault_handler() 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: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: eb81812fb782c302d849953c68c9e1e61facd03d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642627505; 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=wFfeb8ckWuyIMj1l7viDAaukVSb1jxCLW3gvyKdezsg=; b=RTjXqDnhozNJ1yvb76kdi5sQ1LHonmSkoYV1C57Fq1DXBqRqDKv7l+bOOitvmgf7AhNuQx TFl3K9o2xWQCQUNHooQBMBAbWQWpdK7dVqKmeDPJBrqWHHLAEHjnfU9v7Fu79aoJc5IrzC iQBAn/Nya5Nq3xsaZnSSWUjIjK4I5ImtLeTUlDzNBtbDDUWeu11X+F0d9hTFq0j/yF5hRF eUcRiQhiFlzsj9wBTWKmRm6ePolpVD1xck49mjvOXyvPzNoowij065M0N+AD4V1V2PUmc+ 5n7MUQN83VAZ88C43oLGhvAs7mFLJK4pwrM3r3dv0zmwCdIgEvQyJa1+PB61Qg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642627505; a=rsa-sha256; cv=none; b=mZH4QCoGlxnmWMYkwiAbOvHimBhltRZMJriYZyb7hQZExDTG24eQDyXkWWA9E4mEGFaCWZ g/sQHmgrC05t84vtRzYZTTVqKS4310DT3n+fN5KlHrE1zK6IHFuCxlW2JUls71ZKWtl1Z3 XTc+ka+119bziRFUAXJVgQfiR74C5YPDcqu6HkHSVoezHsdgUoGGR8ZKJ5W48Eo2WdivEE JKJvJW4MGJbeTiXdNTq8CV7vUb0Bz+F9jclHJNQcBAhfPZVM+Se0KdtRxxb0Ii9twk1HB+ BxGFuEktsuyLem7s7rEazx5vsFyPeFX4a0VWy3wMa7aGK0Yeo4wRye6g98R2ww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=eb81812fb782c302d849953c68c9e1e61facd03d commit eb81812fb782c302d849953c68c9e1e61facd03d Author: Mitchell Horne AuthorDate: 2022-01-11 15:24:30 +0000 Commit: Mitchell Horne CommitDate: 2022-01-19 21:21:25 +0000 riscv: fix unused var in page_fault_handler() clang warns that p is set-but-not-used, so let's use it. --- sys/riscv/riscv/trap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/riscv/riscv/trap.c b/sys/riscv/riscv/trap.c index 8eb52fcc5337..b89eae325e0c 100644 --- a/sys/riscv/riscv/trap.c +++ b/sys/riscv/riscv/trap.c @@ -205,7 +205,7 @@ page_fault_handler(struct trapframe *frame, int usermode) frame->tf_scause & SCAUSE_CODE); goto done; } - map = &td->td_proc->p_vmspace->vm_map; + map = &p->p_vmspace->vm_map; } else { /* * Enable interrupts for the duration of the page fault. For @@ -221,7 +221,7 @@ page_fault_handler(struct trapframe *frame, int usermode) } else { if (pcb->pcb_onfault == 0) goto fatal; - map = &td->td_proc->p_vmspace->vm_map; + map = &p->p_vmspace->vm_map; } }