Skip to content

Commit 899ad0c

Browse files
bwhackstytso
authored andcommitted
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>
1 parent f084db9 commit 899ad0c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎fs/ext4/ext4.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,7 @@ struct ext4_new_group_data {
498498
#define EXT4_IOC_ALLOC_DA_BLKS _IO('f', 12)
499499
#define EXT4_IOC_MOVE_EXT _IOWR('f', 15, struct move_extent)
500500

501+
#if defined(__KERNEL__) && defined(CONFIG_COMPAT)
501502
/*
502503
* ioctl commands in 32 bit emulation
503504
*/
@@ -513,6 +514,7 @@ struct ext4_new_group_data {
513514
#endif
514515
#define EXT4_IOC32_GETVERSION_OLD FS_IOC32_GETVERSION
515516
#define EXT4_IOC32_SETVERSION_OLD FS_IOC32_SETVERSION
517+
#endif
516518

517519

518520
/*

0 commit comments

Comments
 (0)