The definition of RFKILL_IOCTL_MAX_SIZE introduced by commit 54f586a91532 ("rfkill: make new event layout opt-in") is unusable since it is based on RFKILL_IOC_EXT_SIZE which has not been defined. Fix that by replacing the undefined constant with the constant which is intended to be used in this definition.
Showing the changes to include/uapi (1 of 1 file). Show all
Unified · Split
| @@ -184,7 +184,7 @@ struct rfkill_event_ext { · 183 unmodified lines | ||
| 184 | 184 | #define RFKILL_IOC_NOINPUT 1 |
| 185 | 185 | #define RFKILL_IOCTL_NOINPUT _IO(RFKILL_IOC_MAGIC, RFKILL_IOC_NOINPUT) |
| 186 | 186 | #define RFKILL_IOC_MAX_SIZE 2 |
| 187 | −#define RFKILL_IOCTL_MAX_SIZE _IOW(RFKILL_IOC_MAGIC, RFKILL_IOC_EXT_SIZE, __u32) | |
| 187 | +#define RFKILL_IOCTL_MAX_SIZE _IOW(RFKILL_IOC_MAGIC, RFKILL_IOC_MAX_SIZE, __u32) | |
| 188 | 188 | |
| 189 | 189 | /* and that's all userspace gets */ |
| 190 | 190 | |