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)
Wed, Mar 4, 2:37 PM
Unknown Object (File)
Mon, Mar 2, 11:58 AM
Unknown Object (File)
Feb 8 2026, 4:23 AM
Unknown Object (File)
Feb 8 2026, 12:41 AM
Unknown Object (File)
Jan 31 2026, 5:47 AM
Unknown Object (File)
Dec 7 2025, 8:18 AM
Unknown Object (File)
Nov 28 2025, 10:35 AM
Unknown Object (File)
Nov 27 2025, 4: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