Fix compile-time warnings caused by duplicate struct typedefs

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.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com>
Closes #16660 
Closes #16665
This commit is contained in:
Tomohiro Kusumi
2024-10-21 01:43:16 +09:00
committed by Brian Behlendorf
parent ace2e17a9b
commit 2b359c7824
2 changed files with 7 additions and 8 deletions
+1 -2
View File
@@ -38,8 +38,7 @@
#include <sys/rwlock.h>
#include <sys/wait.h>
#include <sys/wmsum.h>
typedef struct kstat_s kstat_t;
#include <sys/kstat.h>
#define TASKQ_NAMELEN 31