Page MenuHomeFreeBSD

linuxkpi: Add __same_type and __must_be_array macros
ClosedPublic

Authored by manu on Fri, May 22, 10:36 AM.

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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

manu created this revision.Fri, May 22, 10:36 AM
manu requested review of this revision.Fri, May 22, 10:36 AM
hselasky accepted this revision.Fri, May 22, 8:43 PM
This revision is now accepted and ready to land.Fri, May 22, 8:43 PM
This revision was automatically updated to reflect the committed changes.