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)
Dec 23 2023, 1:08 AM
Unknown Object (File)
Dec 12 2023, 9:33 AM
Unknown Object (File)
Jul 1 2023, 7:49 PM
Unknown Object (File)
Jul 1 2023, 7:48 PM
Unknown Object (File)
Jun 29 2023, 6:13 AM
Unknown Object (File)
Jun 29 2023, 5:44 AM
Unknown Object (File)
Dec 28 2022, 1:35 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 Skipped
Unit
Tests Skipped