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
F164354960: D24953.id72110.diff
Fri, Jul 31, 3:17 AM
Unknown Object (File)
Tue, Jul 28, 2:45 PM
Unknown Object (File)
Mon, Jul 27, 1:06 PM
Unknown Object (File)
Tue, Jul 21, 6:41 AM
Unknown Object (File)
Fri, Jul 3, 10:07 PM
Unknown Object (File)
Fri, Jul 3, 7:17 AM
Unknown Object (File)
Jun 20 2026, 9:58 PM
Unknown Object (File)
Jun 15 2026, 2:54 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