From: Bin Liu Date: Thu, 2 Apr 2026 12:31:55 +0000 (-0500) Subject: mmc: core: Optimize size of struct mmc_queue_req X-Git-Tag: v7.1-rc1~157^2~3 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=5fa0e32ed4f4a8a62998d0c955311cbfe92919af;p=thirdparty%2Fkernel%2Flinux.git mmc: core: Optimize size of struct mmc_queue_req ioc_count won't be more than MMC_IOC_MAX_CMDS (255), retries won't be more than MMC_NO_RETRIES (6), flags is newly introduced and uses only 1 bit. Therefore let's change them all to become u8. Signed-off-by: Bin Liu Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/core/queue.h b/drivers/mmc/core/queue.h index c254e6580afd6..dd7211e3a6d54 100644 --- a/drivers/mmc/core/queue.h +++ b/drivers/mmc/core/queue.h @@ -69,9 +69,9 @@ struct mmc_queue_req { enum mmc_drv_op drv_op; int drv_op_result; void *drv_op_data; - unsigned int ioc_count; - int retries; - u32 flags; + u8 ioc_count; + u8 retries; + u8 flags; }; struct mmc_queue {