From nobody Wed Jun 05 22:18:43 2024 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 4Vvhgl3mnpz5L0kL; Wed, 05 Jun 2024 22:18:43 +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 4Vvhgl3Fq4z44Pf; Wed, 5 Jun 2024 22:18:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717625923; 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=jV6XFC4pI7cBdlHAHQp8bNCAyfDlj1x381K1GsD+asQ=; b=Rzf/aYDWPsHqTVtO+vCNxxTuYt5QLO/ZaBIDkIR91QdgMiOmYo0NZmcOYi65LVmdzUDxl5 YqUfdoziXyPSLSVRGKvpse0m+9u7Kce+Z1el9o+ECxPKxkTx1cEMaDjrfTX0TbkIUl6f4p ZbGqdbLvU6wMSROpibh8CTU6c/8l7rn4EjAJgSdiFw7zA6ziRoM79wCsC2Jad6Q3MG+iKb 25p27k928r8aLyvwLNbKmqmJySehQ8M4P7yx2P0uzQQYTqwhJefw5EG81NM8fbzBjsBMxc iXA0cffVCjIrpiNE/B3UcsVDo4dqG3UUIlg+A8oqJqZNDkwp/T76nlvLUaPQag== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1717625923; a=rsa-sha256; cv=none; b=doN1TrX7xAwc9Bx7793DIe+ntZ8x0D4LCJe0bObVMYI2h8Bzi6zp7DIXsKdLQhgrKoEaUU 6H6PWThCgZZVCgZTlXwyo02lIgEukKs3HBBQhUUhMP3/PT+SO3C4lASKNh/u6GoLt5xEGf by/JtBOluFhivq7tyXdlWsFTJGoignoGYsNHZ6tjV2VyME9FMfEd2NOnfpgJ6WuwDNdANN lZOEPRmpANXDxzaioGLeB8gwYkJayaxLRwjJaedhVcFfFEjY/SLR9Ey9Ugu7RPnoD+PoiK Exytm5+Q8NE2dQgpG1kGFJH1SbSa7YhyX9PDefLbHUfJEC0sIznORMCcgz2jlw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717625923; 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=jV6XFC4pI7cBdlHAHQp8bNCAyfDlj1x381K1GsD+asQ=; b=BJLRm5ZcWNZZpAAAllHCgEZ2m9gWEgcSUKqe7u7pkGkRmlTZtBAVkJhtZVbQRbteFHX9Aq iBak3900x7UpOchk6oAY17mQn7+DtsiAF3UiLyNlLIBe96q2bX9ikYM9X3G+Bqtwn7/uLZ rRfYkSw8tnIS0Z42zF+gF2lFRfYJhNzh9YYclhlX5eEfOSzx5pXSJozhPHuOIPQM4qhKop GXDywpq4KljsymkxPaDPccR+NicXODuAS7T0oK4jCLWPInquvSady1FtHiV7n9wkNKG4o9 Qly6LY1IURgCBVEDWEekbMqC8PAM1DYUpOReL7OpT4V+iLyzK0rMM1fRM7IjEA== 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 4Vvhgl2kFdzKnb; Wed, 5 Jun 2024 22:18:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 455MIhQ7032459; Wed, 5 Jun 2024 22:18:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 455MIhld032456; Wed, 5 Jun 2024 22:18:43 GMT (envelope-from git) Date: Wed, 5 Jun 2024 22:18:43 GMT Message-Id: <202406052218.455MIhld032456@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: c70c791f0660 - main - drm2: Remove one more implementation of ilog2() 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c70c791f06601309201f6ca99d39fee83f5dd368 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=c70c791f06601309201f6ca99d39fee83f5dd368 commit c70c791f06601309201f6ca99d39fee83f5dd368 Author: Mark Johnston AuthorDate: 2024-06-05 22:18:19 +0000 Commit: Mark Johnston CommitDate: 2024-06-05 22:18:19 +0000 drm2: Remove one more implementation of ilog2() Reviewed by: dougm Fixes: b0056b31e900 ("libkern: add ilog2 macro") Differential Revision: https://reviews.freebsd.org/D45504 --- sys/dev/drm2/drm_os_freebsd.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/sys/dev/drm2/drm_os_freebsd.h b/sys/dev/drm2/drm_os_freebsd.h index 0ce0dede6d73..58523a33da2a 100644 --- a/sys/dev/drm2/drm_os_freebsd.h +++ b/sys/dev/drm2/drm_os_freebsd.h @@ -297,13 +297,6 @@ get_unaligned_le32(const void *p) } #endif -static inline unsigned long -ilog2(unsigned long x) -{ - - return (flsl(x) - 1); -} - int64_t timeval_to_ns(const struct timeval *tv); struct timeval ns_to_timeval(const int64_t nsec);