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
F132512887: D24953.id72229.diff
Fri, Oct 17, 1:30 PM
F132512165: D24953.id72110.diff
Fri, Oct 17, 1:20 PM
F132506018: D24953.diff
Fri, Oct 17, 11:58 AM
Unknown Object (File)
Sun, Oct 12, 3:03 AM
Unknown Object (File)
Sat, Sep 27, 11:57 AM
Unknown Object (File)
Sat, Sep 27, 11:47 AM
Unknown Object (File)
Sat, Sep 27, 11:41 AM
Unknown Object (File)
Sat, Sep 27, 11:33 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