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)
Mon, Sep 7, 10:24 PM
Unknown Object (File)
Mon, Aug 31, 4:42 PM
Unknown Object (File)
Sat, Aug 29, 12:22 AM
Unknown Object (File)
Thu, Aug 20, 12:50 PM
Unknown Object (File)
Wed, Aug 19, 3:47 AM
Unknown Object (File)
Tue, Aug 18, 8:50 PM
Unknown Object (File)
Tue, Aug 18, 8:39 PM
Unknown Object (File)
Tue, Aug 18, 4:42 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