HomeFreeBSD

Make sure avl_tree.avl_pad is not in kernel module (#16280)

Description

Make sure avl_tree.avl_pad is not in kernel module (#16280)

The commit b192a2c (Remove avl_size field from struct avl_tree) uses a
def _KERNEL to decide to include avl_pad or not, but this _KERNEL is
defined in sys/sysmacros.h. If avl.h and sysmacros.h are not included
in the right order, it can cause a headache when working on a zfs
related kernel module.

Add sysmacros.h in avl_impl.h to fix. sysmacros.h is also removed
from spa.h as it's reduntant.

Signed-off-by: Youzhong Yang <yyang@mathworks.com>
Co-authored-by: Youzhong Yang <yyang@mathworks.com>
Reviewed-by: Rob Norris <rob.norris@klarasystems.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>

Details

Provenance
youzhongyang <youzhong@gmail.com>Authored on Jul 17 2024, 8:54 PM
GitHub <noreply@github.com>Committed on Jul 17 2024, 8:54 PM
Parents
rGdc91e7452482: zdb: dump ZAP_FLAG_UINT64_KEY ZAPs properly (#16334)
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGab6d9bd89a87: Make sure avl_tree.avl_pad is not in kernel module (#16280) (authored by youzhongyang <youzhong@gmail.com>).Jul 17 2024, 8:54 PM