From nobody Thu Oct 27 14:49:29 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 4MypVK5bWJz4gDGC; Thu, 27 Oct 2022 14:49:29 +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 4MypVK5687z3YSV; Thu, 27 Oct 2022 14:49:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666882169; 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=IDs+UAZeqwr055Q0rMbkjXM8BwzjpVEjLY7JASM38N4=; b=CQmXCQgsmyJLSMUyj+ibxQi3h5h4RlncGVQm/xMH3pVwAM1HAB5g8I4sGNNZgAuacFs1Bv GR5SYuRJfbLLlgfelSumjkE8LXka+DEuNiuRbl3TWe0jr+tmVi2Z7/pMrM+0tlUXflsXCu I5EnUTu85Ht3567fWnUNfs1pEsPAIpmzZzAToTenHWq3saFwyDXS89t6gQHjNfBndDIglD wfTYDcJL+M82c2UklDerB1yUmM1YUos0ytmJtWbTCKKvwVrm9qzC4gIwqH+Sw466bTrZHZ UxyrGKYuN2vxQZUHqvsXIXRijawbbmbaoTtWShYEvXBPS5ioXHeKdZHp6qlKRw== 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 4MypVK48J6z11KW; Thu, 27 Oct 2022 14:49:29 +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 29REnTt0049131; Thu, 27 Oct 2022 14:49:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29REnTO8049130; Thu, 27 Oct 2022 14:49:29 GMT (envelope-from git) Date: Thu, 27 Oct 2022 14:49:29 GMT Message-Id: <202210271449.29REnTO8049130@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: ae71263c6689 - main - bhyve: Remove an unused parameter from pci_nvme_append_iov_req() 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: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ae71263c6689a475f3df293475058048c0810dd7 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666882169; 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=IDs+UAZeqwr055Q0rMbkjXM8BwzjpVEjLY7JASM38N4=; b=BCLFoGTXpjGYfA014dL40sv8G1F/FB4zCFRxzQBo8l2em+oOhufkVC0Kp2HGL+3Zi0IVOy skGmm786KA1CypX3wwxuVy/wd92PnZ3CUwDocag8vbMi05VfxZHOKy0Dg8zHHco7eAg0uK 0HFsf9p1yZFLmf1+zDIpMEJTv+97pnUvaVNtyBOMdhl+x4kXdBz7whlyKz//hnh//tAUmW a9V3A/Ndit3Tiftyg6YXCpBXe1TEVYDYp3jaDnv1s66gn86L+qIFJr3oWCf0ZQx14Xc8Bm kcJYHkhbDgmNWBMWiYH9mQn/HgvSHu8Qr0YOGlHoal2YPYfyPu0/dmElMV2Xmg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666882169; a=rsa-sha256; cv=none; b=HIF7X8p9kv1V2YuBQgdxA6Fn57pfUUrE+w7r+xTaUeX4PZhXu6Lbgtu9PCDoyBMtismL7G GQigUsLCV0L5PfSlgYT7q2xb8geTQPv8rH8nHda8Vd7SP0O2btG/PlBq3CbE6VDoXLOoPS MO4wR0N7Yb9L0ADIWEjyldN3nayNQZvhy+FFGmPbwd1PYJhj2AT/g+yFPTyxOhvpcfG3/X Vtb5cOfIgod15xhJ1KvrcTGQdTV5Tw7hs1/YGrznrNzNbY0OtIykYlx+lsgpjvza/t2eWp N9sWUUFuSR5Xlg52h0cV//5yZSG0XYdR5PgkoK9jHoHbE4mr7mAvyj9tvarVlQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=ae71263c6689a475f3df293475058048c0810dd7 commit ae71263c6689a475f3df293475058048c0810dd7 Author: Mark Johnston AuthorDate: 2022-10-27 14:47:17 +0000 Commit: Mark Johnston CommitDate: 2022-10-27 14:48:55 +0000 bhyve: Remove an unused parameter from pci_nvme_append_iov_req() No functional change intended. MFC after: 1 week Reviewed by: jhb Differential Revision: https://reviews.freebsd.org/D37116 --- usr.sbin/bhyve/pci_nvme.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/usr.sbin/bhyve/pci_nvme.c b/usr.sbin/bhyve/pci_nvme.c index 321c29e565e5..01b7649642a8 100644 --- a/usr.sbin/bhyve/pci_nvme.c +++ b/usr.sbin/bhyve/pci_nvme.c @@ -2218,8 +2218,8 @@ pci_nvme_out_of_range(struct pci_nvme_blockstore *nvstore, uint64_t slba, } static int -pci_nvme_append_iov_req(struct pci_nvme_softc *sc, struct pci_nvme_ioreq *req, - uint64_t gpaddr, size_t size, int do_write, uint64_t offset) +pci_nvme_append_iov_req(struct pci_nvme_softc *sc __unused, + struct pci_nvme_ioreq *req, uint64_t gpaddr, size_t size, uint64_t offset) { int iovidx; bool range_is_contiguous; @@ -2450,8 +2450,7 @@ nvme_write_read_blockif(struct pci_nvme_softc *sc, uint16_t status = NVME_NO_STATUS; size = MIN(PAGE_SIZE - (prp1 % PAGE_SIZE), bytes); - if (pci_nvme_append_iov_req(sc, req, prp1, - size, is_write, offset)) { + if (pci_nvme_append_iov_req(sc, req, prp1, size, offset)) { err = -1; goto out; } @@ -2463,8 +2462,7 @@ nvme_write_read_blockif(struct pci_nvme_softc *sc, ; } else if (bytes <= PAGE_SIZE) { size = bytes; - if (pci_nvme_append_iov_req(sc, req, prp2, - size, is_write, offset)) { + if (pci_nvme_append_iov_req(sc, req, prp2, size, offset)) { err = -1; goto out; } @@ -2490,8 +2488,8 @@ nvme_write_read_blockif(struct pci_nvme_softc *sc, size = MIN(bytes, PAGE_SIZE); - if (pci_nvme_append_iov_req(sc, req, *prp_list, - size, is_write, offset)) { + if (pci_nvme_append_iov_req(sc, req, *prp_list, size, + offset)) { err = -1; goto out; }