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)
Sun, Dec 7, 8:18 AM
Unknown Object (File)
Fri, Nov 28, 10:35 AM
Unknown Object (File)
Thu, Nov 27, 4:54 PM
Unknown Object (File)
Sun, Nov 23, 2:22 PM
Unknown Object (File)
Thu, Nov 20, 8:14 AM
Unknown Object (File)
Nov 18 2025, 5:12 AM
Unknown Object (File)
Nov 18 2025, 12:59 AM
Unknown Object (File)
Nov 16 2025, 3:50 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