HomeFreeBSD

Fix compile-time warnings caused by duplicate struct typedefs (#16880)

Description

Fix compile-time warnings caused by duplicate struct typedefs (#16880)

Some compiler/versions warn these typedefs according to #16660.

The platform specific header sys/abd_os.h shouldn't define or use abd_t,
as it's defined in its non-platform specific consumer sys/abd.h.
Do the same as what FreeBSD header does.

Original-patch-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com>
Signed-off-by: Rob Norris <robn@despairlabs.com>
(cherry picked from commit a9851ea3dd6af6f789e221f2ccd7ad43561eff81)

Co-authored-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>

Details

Provenance
rob.norris_klarasystems.comAuthored on Dec 18 2024, 11:54 PM
GitHub <noreply@github.com>Committed on Dec 18 2024, 11:54 PM
Parents
rG5c51f8fc2f12: config: fix dequeue_signal check for kernels <4.20
Branches
Unknown
Tags
Unknown