Skip to content

Commit

Permalink
compat_ioctl: fix make headers_check regression
Browse files Browse the repository at this point in the history
Fix headers_check error introduced by 390192b:

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>
  • Loading branch information
Johannes Stezenbach authored and Jens Axboe committed Jul 7, 2011
1 parent 0f79960 commit 719c0c5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/linux/fd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down Expand Up @@ -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;
Expand All @@ -394,5 +397,6 @@ struct compat_floppy_struct {

#define FDGETPRM32 _IOR(2, 0x04, struct compat_floppy_struct)
#endif
#endif

#endif

0 comments on commit 719c0c5

Please sign in to comment.