From nobody Sun Jan 29 12:38:24 2023 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 4P4W7h2tK1z3cQ3t; Sun, 29 Jan 2023 12:38:24 +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 4P4W7h1lKKz3rYk; Sun, 29 Jan 2023 12:38:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674995904; 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=24fwMbT9SLpVKs+IyEInlevn8CwscEIL1HH2YHxuHeo=; b=MHZrNSKtzCT7qNo+zT4tzPGsPhZ4joFKcBsG9IkkFxRCjmabDNYFtp+5cZOIoy80WAUD+o u+bhV4EvVmfjFTdJ2t1+fJozYYu1p5jc2JNhX1K2wKA4aGwWsrE3eqTXpcARJNvA09jqvG 8LYmM1j4jOjXrM/+N7SJTUjmxiB0xUrTKrCGg7T72MoohllUb5CnM9HirQOYHB4pLCmm3e cdY/EXxJFIbhe2W34D1MqrJmf+MidwJJziKAWo77iDb8MhuHSc423V8aRgverEMn6QlbQR iewwYKIIXDsL6w9rgE4amohL2ydNxT+yP7IFJvZHyuny9u5l3AoS1TeYiI4pbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674995904; 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=24fwMbT9SLpVKs+IyEInlevn8CwscEIL1HH2YHxuHeo=; b=cAZK6iTXsXyzUDIhzzEHs6QF1G0xtHQvNTBwI7TBf9TSEHFy99+1/Cw4i79X9V6fqHjsT0 Fj+eWlxq/OxgymBjZkv+zHujbqWrutA3LKqd/MjngF+Eotju8EweGnqWYORR4iAdVgaxIW j4LWXz2LX0G2JBNW8+34XkFqlKt4kbiMGqf5RCNUsh9OqbhR45GSoZOH+6EYoydEgyeUNU ZY3wJgmFkeiCNfd9AOOTVMyXOisxVQIo+Uhc3fmlnhTnJJGBVqPYPjAozTmTN+KRPIF8Z3 klwxVrLY4UiKCjfovTgDPTfWxFDiwcuN97umN65F2jeb3q2Ljgo8M4FYupQQoA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674995904; a=rsa-sha256; cv=none; b=h9GSEyleFEprp8Gsh9a4QxUQxIsI9jt206+cbXysgXtp/qGhaG4ET4bGoxsbFTwiFvuvxH o/7QjtlALvyx8/HDiQCIBI8dyq7sXFR6bqLGhQ0pu5m4J+ILxz/kyip49FeEUoBUMyR3yH AhZ4bjSPwMupra+tZB1mOM754qtJb2CgeGOYkEuIbmTUwtpQIfbzlhaNVz8TEot3Jv3CtQ Lo0FthkinDPiYHJ5CxFsAwTIJF8CxlTI8S6gz4XoicKsxMhk8jRN7MzMXHpRZSU2l7BUli mqw2dnGZv2F4Iod1LVjH32ECG8IQSWTnNoR0iqncTY7ogySds55jsI64tzIoaw== 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 4P4W7h0qkBzSpr; Sun, 29 Jan 2023 12:38:24 +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 30TCcOaT051035; Sun, 29 Jan 2023 12:38:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30TCcO11051034; Sun, 29 Jan 2023 12:38:24 GMT (envelope-from git) Date: Sun, 29 Jan 2023 12:38:24 GMT Message-Id: <202301291238.30TCcO11051034@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dmitry Chagin Subject: git: f8660ea4b14d - main - libthr: Trim trailing whitespaces in pthread_attr_affinity. 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: dchagin X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f8660ea4b14d8ef8beefd4699d79098c738dddd8 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=f8660ea4b14d8ef8beefd4699d79098c738dddd8 commit f8660ea4b14d8ef8beefd4699d79098c738dddd8 Author: Dmitry Chagin AuthorDate: 2023-01-29 12:38:04 +0000 Commit: Dmitry Chagin CommitDate: 2023-01-29 12:38:04 +0000 libthr: Trim trailing whitespaces in pthread_attr_affinity. MFC after: 1 week --- lib/libthr/thread/thr_attr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libthr/thread/thr_attr.c b/lib/libthr/thread/thr_attr.c index 5a06f793f4f8..a5957fa407a8 100644 --- a/lib/libthr/thread/thr_attr.c +++ b/lib/libthr/thread/thr_attr.c @@ -629,7 +629,7 @@ _pthread_attr_setaffinity_np(pthread_attr_t *pattr, size_t cpusetsize, return (0); } size_t kern_size = _get_kern_cpuset_size(); - /* Kernel rejects small set, we check it here too. */ + /* Kernel rejects small set, we check it here too. */ if (cpusetsize < kern_size) return (ERANGE); if (cpusetsize > kern_size) { @@ -663,7 +663,7 @@ _pthread_attr_getaffinity_np(const pthread_attr_t *pattr, size_t cpusetsize, if (pattr == NULL || (attr = (*pattr)) == NULL) ret = EINVAL; else { - /* Kernel rejects small set, we check it here too. */ + /* Kernel rejects small set, we check it here too. */ size_t kern_size = _get_kern_cpuset_size(); if (cpusetsize < kern_size) return (ERANGE); @@ -673,7 +673,7 @@ _pthread_attr_getaffinity_np(const pthread_attr_t *pattr, size_t cpusetsize, else memset(cpusetp, -1, kern_size); if (cpusetsize > kern_size) - memset(((char *)cpusetp) + kern_size, 0, + memset(((char *)cpusetp) + kern_size, 0, cpusetsize - kern_size); } return (ret);