From nobody Mon Feb 14 00:13: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 5A62D19537BC; Mon, 14 Feb 2022 00:13:18 +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 4Jxl7223HKz4cYm; Mon, 14 Feb 2022 00:13:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644797598; 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=k3p5/imh4I7H/E2+8z7dbroR6xWibcPuGiIwafV4Dv8=; b=gB1Gw5bBYU+cuxDrjYcH8M+OYdl75PbPrRtn/4KHXZh4uencXwW3+oUfzR9r04y62jvRgf E/sb857ZR3+i2dQXc/WG1ZXRHWY1EE6zp53UwH5f7rEA1m2GbRSvfQwlw6wnZ+clXBs87t kBvRliPOXsUZmwGGZ26qx7zUAP006xkP90QKFpcrvoQHkglENWJ9vj+82ur8b9DIisbPGe Sghek0bOLIyuqyE7Z2yIkkYRE+dWiacnqcYtaJ/uxQ0GNoLkPZnZUG7nBsU96QL42ti59I zkyF32MyJxOKxBbhUlJ3lkt9rseOjApDeKyAA5u2d5viUnFxIfEqio82UUST0A== 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 26DB524D23; Mon, 14 Feb 2022 00:13: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 21E0DIDj069788; Mon, 14 Feb 2022 00:13:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21E0DIvL069787; Mon, 14 Feb 2022 00:13:18 GMT (envelope-from git) Date: Mon, 14 Feb 2022 00:13:18 GMT Message-Id: <202202140013.21E0DIvL069787@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: d17b78aa142d - main - LinuxKPI: add __ffs64() 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: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d17b78aa142d7c63490c7a2c3f202ef99fffad70 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644797598; 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=k3p5/imh4I7H/E2+8z7dbroR6xWibcPuGiIwafV4Dv8=; b=K/OKF9LHUEdmwB+Jk/00BUSwX6D5eOoDBkshsFf471petVc2T0eW8V4EBeQSKP+L1QBSpJ a8VEf/A1+FtG8jG9jM2wF3i4VWcpYGRQXTjVAzx5NrpCjq+rNzq3IrbkzZ0s+o3NCtEEF4 JIEuOQNHppuwMWXjmT1JZB/Y+heUO8X5TTTVmTPub5gC45823oEHdnnti0sYu48JZaTG9J cfqfPYCTooeDgSoMPloRM+lkSgs+z3S/PqwLs8pNDvEFcrFC2Uebbmz7ATgW8BGQV++mVN X5F4V9sGjuokO9n7z45qwyPFcRq0KYPRfu0i9yJcIhOlEqkQLgEtR2MVrWruzw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644797598; a=rsa-sha256; cv=none; b=jahrlIXZ1wgm6YxgwHK//ru8UnHIWTFatjqtdF7LdkvVMJa7xc61X3f0GE/qKDfqCQ0gqU 62Qywx5cpFhIO3FAICKVI1aPApiiC6RhSnsjWdQcfLqteZrFCXDdBdRoJpm1PFkigQQ7mY yGPrMYrpNa3J6UmBoG6OvdXg+x3gbhO/z8qUS6/Ulj9iaxJdPR0Q6SWIvsa9U/Eo774o91 8PdDvt3xyC+HBlXlHkpedfzJZen9YFGHc1eLvrDVWDY9xRjszLz8WBD/fK8Bu5xI5xxCtd ytSI8JokKbPYLh6rUKfcsYTbJFvUOCmIfK2rVwZSHMexOS1rRm6R8M1i7bA/oQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=d17b78aa142d7c63490c7a2c3f202ef99fffad70 commit d17b78aa142d7c63490c7a2c3f202ef99fffad70 Author: Bjoern A. Zeeb AuthorDate: 2022-02-09 11:43:33 +0000 Commit: Bjoern A. Zeeb CommitDate: 2022-02-14 00:12:09 +0000 LinuxKPI: add __ffs64() Add __ffs64() to linux/bitops.h needed by a driver. Reviewed by: hselasky MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D34225 --- 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 262e6b9b110f..b6c54b2e6858 100644 --- a/sys/compat/linuxkpi/common/include/linux/bitops.h +++ b/sys/compat/linuxkpi/common/include/linux/bitops.h @@ -86,6 +86,12 @@ __ffsl(long mask) return (ffsl(mask) - 1); } +static inline unsigned long +__ffs64(uint64_t mask) +{ + return (ffsll(mask) - 1); +} + static inline int __flsl(long mask) {