The DRM drivers generic code started to use HWEIGHT64() in the definition of an array field in a structure. Therefore, the array size needs to be known at compile time. This was not the case with the HWEIGHT*() macros based on bitcount*(). The use of __builtin_popcountg() solves that problem.
Sponsored by: The FreeBSD Foundation