From nobody Thu Mar 17 10:00: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 067B91A17B13; Thu, 17 Mar 2022 10:00: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 4KK2h244f4z4SjW; Thu, 17 Mar 2022 10:00:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647511218; 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=IjT1fVUySh1LlTWMcfeZWfed5rpooC+M+flhh+ywvjA=; b=ZYr9KP02MSFeMkYsrkwqkkjYhUJP1vLcxplyjPPHlMx4XWI0DUmDi7RkYrAG5Fm6VKoRLd bTMv84KVKEzboAAWUfkfCxR1RU071GmCWJ3XP8qFLrpagJilOSt6DFS/unGCggMP2V1E3U Kmq9+fHD1+xBpbYpJihfzfRWgcRg16a+3x+/VM2F2GfeeP4PU4oplWDTG/R1jnouNjZiVG jBWz5T9w2GNIDbKZ2JsFJX/bOmqgSlCumWHmlpkgrXkkgbuNpP+seEXsyK9fDJhhvuxcGD kC2eV/xiqYYaIldpVBeJ6rzadPYx4eMpsOsd8cjwTf5OfGwf5NTNTVoV/aPUBg== 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 567B327D72; Thu, 17 Mar 2022 10:00: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 22HA0I0C088765; Thu, 17 Mar 2022 10:00:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22HA0IcW088759; Thu, 17 Mar 2022 10:00:18 GMT (envelope-from git) Date: Thu, 17 Mar 2022 10:00:18 GMT Message-Id: <202203171000.22HA0IcW088759@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Hans Petter Selasky Subject: git: a16772a81110 - stable/13 - lindebugfs: The Linux file operations use negative return values in the kernel. 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: hselasky X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: a16772a8111095a0358be9c046d321988f2696c2 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647511218; 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=IjT1fVUySh1LlTWMcfeZWfed5rpooC+M+flhh+ywvjA=; b=uxffpmGztkBYk3Ca6yRt9amt5hOCvO8GDFLJCJe78qmaUqEE/7iYAalkL7Dx04FenjnS7k W1q7595hJicOYRcOcnySfDo1WIHYkBXkRD99F7t9q2D9/vEcBVyD5Zk06vMM1u09qmYVlQ MUTi4u65OkqgLGrMztKx07ZRt2hRYwd3pXZNM4T8O5jpa8DyoXuAsjFcHTcZwd38/79tle qgO5FTeZYkJrf59ecR9HZkWIUjq8g9TjephH4Qv10tPuAcbHYjfmwrVWtlXEPJXuf44WX4 +au/hjgBbvQB5XCa6rWoq5NSqR1j2LPM+99Z0qG4I/rQh6CO6PFhNtGMlrX6cQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647511218; a=rsa-sha256; cv=none; b=PwgYD6R9xqwQQ24qIKnQzkfNPvWXj3UHAcH0pVEyyOAQjgfLzl8L72xl4+hcgz5Q6uUpaZ uMr7uxXKiyJYwGWQ75Q+/imhQSbvE1Q11NDYm112tJnjU0VnrNFlwY2rvUIM5Qhgj9EZ7J XiQn8/UUooA6gZtQh7fsQXrohiELHefspgy91W5qQqU5ggYV2dVV/AlpiENWBrKfpTJs5h 8QwZNJalE/47LR8Or88k8s5tClPqlwjBvmR4Ec055LI7nN1323rDZ1U/hwPqFMSLFbBmC1 5HIOEoTiiE6t4V/x3/dqtSVB57mx2OJ2Q5qbSngdglxJjxeUYnfBx8uPTAo4cw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=a16772a8111095a0358be9c046d321988f2696c2 commit a16772a8111095a0358be9c046d321988f2696c2 Author: Hans Petter Selasky AuthorDate: 2022-03-11 16:37:46 +0000 Commit: Hans Petter Selasky CommitDate: 2022-03-17 09:55:07 +0000 lindebugfs: The Linux file operations use negative return values in the kernel. Fix sign. Sponsored by: NVIDIA Networking (cherry picked from commit 68ec2949ad3411aa8a684dfca2cae90cbe202675) --- sys/compat/lindebugfs/lindebugfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/compat/lindebugfs/lindebugfs.c b/sys/compat/lindebugfs/lindebugfs.c index 9507cded9ebd..cbfdfbbce876 100644 --- a/sys/compat/lindebugfs/lindebugfs.c +++ b/sys/compat/lindebugfs/lindebugfs.c @@ -152,12 +152,12 @@ debugfs_fill(PFS_FILL_ARGS) if (d->dm_fops->read) rc = d->dm_fops->read(&lf, NULL, len, &off); else - rc = ENODEV; + rc = -ENODEV; } else { if (d->dm_fops->write) rc = d->dm_fops->write(&lf, buf, len, &off); else - rc = ENODEV; + rc = -ENODEV; } if (d->dm_fops->release) d->dm_fops->release(&vn, &lf);