From nobody Mon Jan 5 20:09:29 2026 X-Original-To: dev-commits-src-main@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 4dlQPQ29j1z6N00V for ; Mon, 05 Jan 2026 20:09:30 +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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dlQPP69f1z3R2b for ; Mon, 05 Jan 2026 20:09:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767643769; 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=0/BfgTxhYydJDZp2PPFa7bTdLqo3sW7vnuZtWMJHkbo=; b=KNJX35MT4sKnx7YFR8q8G9hfoEZmXDINupfVLBDLN45H556I7Oo7JpFSqMQ/vtLhMlahhc 8biWuezuBmejCGeZMT85htQ33L0BMQENckZhlffeIANVtpWtZY45wcBDvqhS6Ag2aQBN/f lQBSDgtQ5qTJ+G3+/1GQdH8CZqdyJ9n2GqyCScFMDx94py+A3VSHk8nz41dpNBq1FmX+G+ aofA1Yu3Cp39taPtijo+1ySApbhSEUsquTQ5YQOvBJRStgiaMURPNxwjET5MF9gk4e8gv5 daJ8sG52ulvPWhai2/ACbyxtK1cmdCkUnZhRjPtMCIBFIv0t4Bfs0+FPzHyzxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767643769; 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=0/BfgTxhYydJDZp2PPFa7bTdLqo3sW7vnuZtWMJHkbo=; b=vIVvIaWcto2fStI6xUQjGGDbLko7kVy9NoyQXxe93+4swZMexF8SdLG+NJb2LULl9/zWAC yF9lLtJb6Q7R3sUQwhFfCfoA9ewcY1T6xo8flcXpF/a3I5+ZROxeJ+RbJ7dV9IwGZSSzb0 9s21SQo8fUKlzeiqmaPGRO9+se0d/uL/8dXkAcyMQ3DMjKmPNIoknWFXxIXeXeFTFqzAY5 kbQmgng4S+zN/ckENbHhECXSI3/czvQ52RaHRyTWi737oXQj+tzqDpYJ3e7HmhX4TPtYBX UsCdxTdvepU8Zm8fp5YVhz8hXqIoEO+RNFhu/XnwYPpic0kMGk/YnsRgGXm0yA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767643769; a=rsa-sha256; cv=none; b=J/h1J8/FKuV51sawFH//VSZHa08/bl7TQHvvac42O6w97PVAZb1O9e1Uc8ktag3RSA0eOy AmRd2rFUFvCGdo6CMiTUwNaoNEsFqMVHUSqrICpI+VUYL3GaZ1bvvHZ/vhC4OvivmyUEMq 4SoxqXg49xrp+UhETpdxwI7sFQybbGDo1hKcrU6iNHQQvLrsx7QZuvpGkuuCSmTuJ7ZqTK +XzubUGAgeDRvPVWUXLxX/OwwYHnaJ3S+smoqnznUMaIIGy4Je7kJtXHXUjwnarPHglIEi q/IxZOLF1YmBRurQgPgXgx2T3qbW0zSoQgmpcTm/WFHszv5oNPR3a7X4oH9rRw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dlQPP5mwnzbjJ for ; Mon, 05 Jan 2026 20:09:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 8598 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 05 Jan 2026 20:09:29 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Jean-=?utf-8?Q?S=C3=A9bast?==?utf-8?Q?ien P=C3=A9?=dron Subject: git: a9462e32fa75 - main - linuxkpi: Add `rol64()` List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dumbbell X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a9462e32fa75a9a1e3f49964bc42b5303e0dd092 Auto-Submitted: auto-generated Date: Mon, 05 Jan 2026 20:09:29 +0000 Message-Id: <695c1a79.8598.20d4de8d@gitrepo.freebsd.org> The branch main has been updated by dumbbell: URL: https://cgit.FreeBSD.org/src/commit/?id=a9462e32fa75a9a1e3f49964bc42b5303e0dd092 commit a9462e32fa75a9a1e3f49964bc42b5303e0dd092 Author: Jean-Sébastien Pédron AuthorDate: 2025-09-07 23:22:22 +0000 Commit: Jean-Sébastien Pédron CommitDate: 2026-01-05 19:32:49 +0000 linuxkpi: Add `rol64()` This is used by added in a separate future commit. Reviewed by: bz Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D54499 --- sys/compat/linuxkpi/common/include/linux/bitops.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/bitops.h b/sys/compat/linuxkpi/common/include/linux/bitops.h index 8fac80820f30..969b5e8245e7 100644 --- a/sys/compat/linuxkpi/common/include/linux/bitops.h +++ b/sys/compat/linuxkpi/common/include/linux/bitops.h @@ -437,4 +437,10 @@ sign_extend32(uint32_t value, int index) return ((int32_t)(value << shift) >> shift); } +static inline uint64_t +rol64(uint64_t word, unsigned int shift) +{ + return ((word << (shift & 63)) | (word >> ((-shift) & 63))); +} + #endif /* _LINUXKPI_LINUX_BITOPS_H_ */