diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2010-05-17 05:00:00 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2010-05-17 05:00:00 -0400 |
commit | 899ad0cea6ad7ff4ba24b16318edbc3cbbe03fad (patch) | |
tree | 5a9b5b84cf47321fbf1ac10bde64bbf3ff75a269 /fs/ext4/ext4.h | |
parent | f084db932e6fe877bf8362bc256fc850de196deb (diff) | |
download | op-kernel-dev-899ad0cea6ad7ff4ba24b16318edbc3cbbe03fad.zip op-kernel-dev-899ad0cea6ad7ff4ba24b16318edbc3cbbe03fad.tar.gz |
ext4: Conditionally define compat ioctl numbers
It is unnecessary, and in general impossible, to define the compat
ioctl numbers except when building the filesystem with CONFIG_COMPAT
defined.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 7441488..d8c28f6 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@ -498,6 +498,7 @@ struct ext4_new_group_data { #define EXT4_IOC_ALLOC_DA_BLKS _IO('f', 12) #define EXT4_IOC_MOVE_EXT _IOWR('f', 15, struct move_extent) +#if defined(__KERNEL__) && defined(CONFIG_COMPAT) /* * ioctl commands in 32 bit emulation */ @@ -513,6 +514,7 @@ struct ext4_new_group_data { #endif #define EXT4_IOC32_GETVERSION_OLD FS_IOC32_GETVERSION #define EXT4_IOC32_SETVERSION_OLD FS_IOC32_SETVERSION +#endif /* |