From: Ben Hutchings Date: Mon, 17 May 2010 09:00:00 +0000 (-0400) Subject: ext4: Conditionally define compat ioctl numbers X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=899ad0cea6ad7ff4ba24b16318edbc3cbbe03fad;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 Signed-off-by: "Theodore Ts'o" --- diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 74414884580c..d8c28f658cb0 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 /*