HomeFreeBSD

Linux 5.19 compat: zap_flags_t conflict

Description

Linux 5.19 compat: zap_flags_t conflict

As of the Linux 5.19 kernel an identically named zap_flags_t typedef
is declared in the include/linux/mm_types.h linux header. Sadly,
the inclusion of this header cannot be easily avoided. To resolve
the conflict a #define is used to remap the name in the OpenZFS
sources when building against the Linux kernel.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #13515

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on May 27 2022, 10:56 PM
Parents
rGd41e864181e4: Linux 5.19 compat: bdev_start_io_acct() / bdev_end_io_acct()
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG91350681b8c8: Linux 5.19 compat: zap_flags_t conflict (authored by Brian Behlendorf <behlendorf1@llnl.gov>).May 31 2022, 7:04 PM