From 6a8fd57fa7f76e07172aa2c517f2c79296ba322e Mon Sep 17 00:00:00 2001 From: cao Date: Fri, 2 Dec 2016 07:36:25 +0800 Subject: [PATCH] Compile zio.h and zio_impl.h mutual include zio.h includes zio_impl.h but zio_impl.h also includes zio.h, so the header files to contain each other. Get rid of the zio_impl.h include in zio.h and update zio_inject.c to include zio.h instead of zio_impl.h. Reviewed-by: Brian Behlendorf Signed-off-by: cao.xuewen Closes #5439 --- include/sys/zio_impl.h | 3 --- module/zfs/zio_inject.c | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/include/sys/zio_impl.h b/include/sys/zio_impl.h index a36749a30..4d56e9066 100644 --- a/include/sys/zio_impl.h +++ b/include/sys/zio_impl.h @@ -30,9 +30,6 @@ #ifndef _ZIO_IMPL_H #define _ZIO_IMPL_H -#include -#include - #ifdef __cplusplus extern "C" { #endif diff --git a/module/zfs/zio_inject.c b/module/zfs/zio_inject.c index 61b7d25e6..0e8e9d932 100644 --- a/module/zfs/zio_inject.c +++ b/module/zfs/zio_inject.c @@ -41,7 +41,7 @@ */ #include -#include +#include #include #include #include