]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
compat_ioctl: fix make headers_check regression
authorJohannes Stezenbach <js@sig21.net>
Thu, 7 Jul 2011 06:18:18 +0000 (08:18 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Thu, 7 Jul 2011 06:18:18 +0000 (08:18 +0200)
Fix headers_check error introduced by 390192b30057:

include/linux/fd.h:6: included file 'linux/compat.h' is not exported

Signed-off-by: Johannes Stezenbach <js@sig21.net>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
include/linux/fd.h

index c6a68d011608abdd55de7d769b7deff2310303b9..72202b1b9a6a0e4fdd1184ee644e4d30f342b94a 100644 (file)
@@ -3,7 +3,6 @@
 
 #include <linux/ioctl.h>
 #include <linux/compiler.h>
-#include <linux/compat.h>
 
 /* New file layout: Now the ioctl definitions immediately follow the
  * definitions of the structures that they use */
@@ -378,7 +377,11 @@ struct floppy_raw_cmd {
 #define FDEJECT _IO(2, 0x5a)
 /* eject the disk */
 
+
+#ifdef __KERNEL__
 #ifdef CONFIG_COMPAT
+#include <linux/compat.h>
+
 struct compat_floppy_struct {
        compat_uint_t   size;
        compat_uint_t   sect;
@@ -394,5 +397,6 @@ struct compat_floppy_struct {
 
 #define FDGETPRM32 _IOR(2, 0x04, struct compat_floppy_struct)
 #endif
+#endif
 
 #endif