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
rGee84970d4ffc: Linux 5.19 compat: bdev_start_io_acct() / bdev_end_io_acct()
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG69430e39e3b7: Linux 5.19 compat: zap_flags_t conflict (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Jun 1 2022, 9:24 PM