Page MenuHomeFreeBSD

linuxkpi: Add __same_type and __must_be_array macros
ClosedPublic

Authored by manu on May 22 2020, 10:36 AM.
Tags
None
Referenced Files
F158809079: D24953.id72229.diff
Sat, Jun 6, 5:40 AM
Unknown Object (File)
Fri, Jun 5, 7:25 PM
Unknown Object (File)
Thu, Jun 4, 2:27 AM
Unknown Object (File)
Sat, May 30, 8:17 PM
Unknown Object (File)
Apr 20 2026, 7:14 PM
Unknown Object (File)
Apr 20 2026, 4:41 AM
Unknown Object (File)
Apr 8 2026, 10:55 PM
Unknown Object (File)
Mar 22 2026, 6:26 PM
Subscribers

Details

Summary

The same_type macro simply wraps around builtin_types_compatible_p which
exist for both GCC and CLANG, which returns 1 if both types are the same.
The __must_be_array macros returns 1 if the argument is an array.

This is needed for DRM v5.3

Sponsored-by: The FreeBSD Foundation

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable