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
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
Unknown Object (File)
Jun 15 2026, 2:42 PM
Unknown Object (File)
Jun 7 2026, 12:02 PM
Unknown Object (File)
Jun 6 2026, 5:40 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