HomeFreeBSD

linuxkpi: Add __same_type and __must_be_array macros

Description

linuxkpi: Add same_type and must_be_array macros

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
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D24953

Details

Provenance
manuAuthored on
Reviewer
hselasky
Differential Revision
D24953: linuxkpi: Add __same_type and __must_be_array macros
Parents
rS361448: proc: refactor clearing credentials into proc_unset_cred
Branches
Unknown
Tags
Unknown