aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fd.h
diff options
context:
space:
mode:
authorJohannes Stezenbach <js@sig21.net>2011-07-07 02:18:18 -0400
committerJens Axboe <jaxboe@fusionio.com>2011-07-07 02:18:18 -0400
commit719c0c590609809365c6f3da2f923cd84dc99113 (patch)
tree24b89ce02697d723ce65be12d557313c3a398988 /include/linux/fd.h
parent0f79960391a5a1e3679956024e18aeeb0369ac44 (diff)
compat_ioctl: fix make headers_check regression
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>
Diffstat (limited to 'include/linux/fd.h')
-rw-r--r--include/linux/fd.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/fd.h b/include/linux/fd.h
index c6a68d011608..72202b1b9a6a 100644
--- a/include/linux/fd.h
+++ b/include/linux/fd.h
@@ -3,7 +3,6 @@
3 3
4#include <linux/ioctl.h> 4#include <linux/ioctl.h>
5#include <linux/compiler.h> 5#include <linux/compiler.h>
6#include <linux/compat.h>
7 6
8/* New file layout: Now the ioctl definitions immediately follow the 7/* New file layout: Now the ioctl definitions immediately follow the
9 * definitions of the structures that they use */ 8 * definitions of the structures that they use */
@@ -378,7 +377,11 @@ struct floppy_raw_cmd {
378#define FDEJECT _IO(2, 0x5a) 377#define FDEJECT _IO(2, 0x5a)
379/* eject the disk */ 378/* eject the disk */
380 379
380
381#ifdef __KERNEL__
381#ifdef CONFIG_COMPAT 382#ifdef CONFIG_COMPAT
383#include <linux/compat.h>
384
382struct compat_floppy_struct { 385struct compat_floppy_struct {
383 compat_uint_t size; 386 compat_uint_t size;
384 compat_uint_t sect; 387 compat_uint_t sect;
@@ -394,5 +397,6 @@ struct compat_floppy_struct {
394 397
395#define FDGETPRM32 _IOR(2, 0x04, struct compat_floppy_struct) 398#define FDGETPRM32 _IOR(2, 0x04, struct compat_floppy_struct)
396#endif 399#endif
400#endif
397 401
398#endif 402#endif