git: c70c791f0660 - main - drm2: Remove one more implementation of ilog2()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 05 Jun 2024 22:18:43 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=c70c791f06601309201f6ca99d39fee83f5dd368
commit c70c791f06601309201f6ca99d39fee83f5dd368
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-06-05 22:18:19 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
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);