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
F114601089: D24953.diff
Mon, Apr 14, 7:51 AM
F114582589: D24953.id.diff
Mon, Apr 14, 4:10 AM
F114572251: D24953.id72229.diff
Mon, Apr 14, 2:05 AM
F114544183: D24953.id72110.diff
Sun, Apr 13, 8:45 PM
Unknown Object (File)
Mon, Mar 31, 11:28 PM
Unknown Object (File)
Wed, Mar 26, 9:17 AM
Unknown Object (File)
Mar 7 2025, 9:21 PM
Unknown Object (File)
Mar 7 2025, 9:57 AM
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