Import bitfield.h from OpenBSD.
This defines bf_shf which is a wrapper for builting_ffsll and
FIELD_GET which apply a mask to a given value.
Sponsored-by: The FreeBSD Foundation
Differential D26681
linuxkpi: Add bitfield.h manu on Oct 5 2020, 1:44 PM. Authored by Tags None Referenced Files
Details
Import bitfield.h from OpenBSD. This defines bf_shf which is a wrapper for builting_ffsll and Sponsored-by: The FreeBSD Foundation
Diff Detail
Event TimelineComment Actions Can I ask you to drop this one? I don't know why I missed it (or why it didn't conflict). I have this one: https://people.freebsd.org/~bz/tmp/bitfield.h ; happy to put up into review as I haven't touched it since July. Comment Actions It doesn't conflict because drm-kmod uses include from drm-kmod first so if the macros/inline are in the same file in both drm-kmod or base you don't have any problem. |