From nobody Mon Feb 6 19:07:48 2023 X-Original-To: dev-commits-src-branches@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 4P9bPJ2d15z3n4Hj; Mon, 6 Feb 2023 19:07:48 +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 4P9bPJ1kTrz3Q63; Mon, 6 Feb 2023 19:07:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675710468; 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=DlhbJh/h1MtCglP99/5dHAjWkO/jxPAVUleEaUuM9f8=; b=TuVukaJK9/m3eq0iZboIrKns6iJkOG/NDhUu1dcvhwDvtgukow5CL6lACMxd3Arcz13pH/ BShBhfkEA4fJ0G+nUIz96Z43xao+3lBTe72aEmPFTHau0W+XGr0Lu8ziqFSlm65FR7mykv NX4F07ocPbGfgP97+bjuT4iKdH4h+qG6UGitgHz7PB+Hbvmn989C6aXiwYESccmkG9b07X 52h62zgeZUeea0TSUmZu+DYf3I3075VDJ2kj002KetRHzLt6VahFXubPHw14MH6gav8S06 Z1jU1sCW+SFsGkpRf3x1r7tEriBhfPOOlzd8rDlroJRtQkcBamYGZRIUwY8lOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675710468; 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=DlhbJh/h1MtCglP99/5dHAjWkO/jxPAVUleEaUuM9f8=; b=DEOtnVYM5SMr535OKhIpED8cLBsmGqFORg13YJ6xL49maNbNki5uuXeuFfHmMTIgAfMyfD DfYKD8SFngxD9N8VnSiTunoylNC3OqoXeSqtdYHdhtQ1d17QsOLsScYcRMN+K77PUL6Son 5m6aM/v4yT1vT6N/p7v4V1Fr7NZfAoDF097SpXiwJYCmzN1ehH9BokVMdsWnj36DxvvYSY qJIU4AtVds/J0h+4UHU77Ducx41PZzZH/rDWFZtF/5LVMz2XBXNkC3fbEbzFDffVABBw46 Ps3D3IUpMpExVYsxgSNtdtotywq7DdKSExK1maPAKJUzGhlP2IHB+pYzeW8Xzw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675710468; a=rsa-sha256; cv=none; b=kEQU+F4ZIEl6EXvK9iwb+yhPH11AWIK1cELsoTq34I9ZzDZEMWnjPvE2W9AIZ9KL1R4ntn 7t/pEBpXQjJ0VpzQZk2/yj0Hyy2B/bpAL11uGdrdCmqHebVuruU/k/yX9GXnCNJ3vj7B2k 29+A9ac58BAssOMO+8Jcay6G52TMvvwywgT150LiIcagHV2KptqRtbq89aGeeJn9u2p7gd rLDcgeq5S/FjlP3p7H6RuaCVy4u2heH2Gzh6yEbJoozMihDuYIMD9qDpUGWdPhktgUOZEA 5upC4tWvHwAOa4iEdx/hpuVmkg23tfMu2WO71uO0yK9CozZmkjpw+c8iJrpz9w== 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 4P9bPJ0pltzmJN; Mon, 6 Feb 2023 19:07:48 +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 316J7mTY076959; Mon, 6 Feb 2023 19:07:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 316J7moD076958; Mon, 6 Feb 2023 19:07:48 GMT (envelope-from git) Date: Mon, 6 Feb 2023 19:07:48 GMT Message-Id: <202302061907.316J7moD076958@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dmitry Chagin Subject: git: 0c21dc519c83 - stable/13 - libthr: Trim trailing whitespaces in pthread_attr_affinity. List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/13 X-Git-Reftype: branch X-Git-Commit: 0c21dc519c838326c90e8b3bbdcc0ad0abf50614 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=0c21dc519c838326c90e8b3bbdcc0ad0abf50614 commit 0c21dc519c838326c90e8b3bbdcc0ad0abf50614 Author: Dmitry Chagin AuthorDate: 2023-01-29 12:38:04 +0000 Commit: Dmitry Chagin CommitDate: 2023-02-06 19:06:31 +0000 libthr: Trim trailing whitespaces in pthread_attr_affinity. MFC after: 1 week (cherry picked from commit f8660ea4b14d8ef8beefd4699d79098c738dddd8) --- 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);