Whamcloud - gitweb
LU-8179 libcfs: Do not include libcfs/util/ioctl.h in kernel code 75/20375/5
authorOleg Drokin <oleg.drokin@intel.com>
Sun, 22 May 2016 17:01:46 +0000 (13:01 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 14 Jun 2016 03:49:01 +0000 (03:49 +0000)
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 <oleg.drokin@intel.com>
Reviewed-on: http://review.whamcloud.com/20375
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Frank Zago <fzago@cray.com>
lustre/include/lustre_ioctl.h

index 2d51337..c004eb8 100644 (file)
@@ -30,7 +30,6 @@
 
 #include <linux/types.h>
 #include <libcfs/libcfs.h>
 
 #include <linux/types.h>
 #include <libcfs/libcfs.h>
-#include <libcfs/util/ioctl.h>
 #include <lustre/lustre_idl.h>
 
 #ifdef __KERNEL__
 #include <lustre/lustre_idl.h>
 
 #ifdef __KERNEL__
@@ -40,6 +39,7 @@
 #else /* __KERNEL__ */
 # include <malloc.h>
 # include <string.h>
 #else /* __KERNEL__ */
 # include <malloc.h>
 # include <string.h>
+#include <libcfs/util/ioctl.h>
 #endif /* !__KERNEL__ */
 
 #if !defined(__KERNEL__) && !defined(LUSTRE_UTILS)
 #endif /* !__KERNEL__ */
 
 #if !defined(__KERNEL__) && !defined(LUSTRE_UTILS)