Date: Mon, 10 Feb 2025 11:15:16 GMT From: Doug Moore <dougm@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 7443532d5eed - stable/14 - drm2: Remove one more implementation of ilog2() Message-ID: <202502101115.51ABFGAC016232@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by dougm: URL: https://cgit.FreeBSD.org/src/commit/?id=7443532d5eeda853af76434d99727b2ea76d03bd commit 7443532d5eeda853af76434d99727b2ea76d03bd Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2024-06-05 22:18:19 +0000 Commit: Doug Moore <dougm@FreeBSD.org> CommitDate: 2025-02-10 10:28:24 +0000 drm2: Remove one more implementation of ilog2() Reviewed by: dougm Fixes: b0056b31e900 ("libkern: add ilog2 macro") Differential Revision: https://reviews.freebsd.org/D45504 (cherry picked from commit c70c791f06601309201f6ca99d39fee83f5dd368) --- 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202502101115.51ABFGAC016232>