From 0ecdb18ea46790a21f35f60d452e8fc7a50ce838 Mon Sep 17 00:00:00 2001 From: Oleg Drokin Date: Sun, 22 May 2016 13:01:46 -0400 Subject: [PATCH 1/1] LU-8179 libcfs: Do not include libcfs/util/ioctl.h in kernel code lustre/include/lustre_ioctl.h included libcfs/include/libcfs/util/ioctl.h by mistake during kernel compiles, but it's strictly a user-space header so move it into appropriate ifdef. Test-Parameters: trivial Change-Id: I598ef54ad2cf8bab9788eefe487adddeb73f90c1 Signed-off-by: Oleg Drokin Reviewed-on: http://review.whamcloud.com/20375 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: John L. Hammond Reviewed-by: Frank Zago --- lustre/include/lustre_ioctl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/include/lustre_ioctl.h b/lustre/include/lustre_ioctl.h index 2d51337..c004eb8 100644 --- a/lustre/include/lustre_ioctl.h +++ b/lustre/include/lustre_ioctl.h @@ -30,7 +30,6 @@ #include #include -#include #include #ifdef __KERNEL__ @@ -40,6 +39,7 @@ #else /* __KERNEL__ */ # include # include +#include #endif /* !__KERNEL__ */ #if !defined(__KERNEL__) && !defined(LUSTRE_UTILS) -- 1.8.3.1