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
F102978473: D24953.diff
Tue, Nov 19, 10:23 AM
F102906809: D24953.id.diff
Mon, Nov 18, 2:25 PM
Unknown Object (File)
Fri, Nov 15, 9:49 PM
Unknown Object (File)
Sep 30 2024, 11:44 PM
Unknown Object (File)
Sep 27 2024, 9:47 AM
Unknown Object (File)
Sep 21 2024, 5:54 AM
Unknown Object (File)
Sep 19 2024, 8:23 AM
Unknown Object (File)
Sep 2 2024, 6:33 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