From 5fa0e32ed4f4a8a62998d0c955311cbfe92919af Mon Sep 17 00:00:00 2001 From: Bin Liu Date: Thu, 2 Apr 2026 07:31:55 -0500 Subject: [PATCH] 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 --- drivers/mmc/core/queue.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/core/queue.h b/drivers/mmc/core/queue.h index c254e6580afd..dd7211e3a6d5 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 {