]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mmc: core: Optimize size of struct mmc_queue_req
authorBin Liu <b-liu@ti.com>
Thu, 2 Apr 2026 12:31:55 +0000 (07:31 -0500)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 9 Apr 2026 15:49:54 +0000 (17:49 +0200)
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 <b-liu@ti.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/queue.h

index c254e6580afd62481afcf04eb6e13fddffd63503..dd7211e3a6d54857c5d1466089d2a0382b71b29a 100644 (file)
@@ -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;
+       u                     flags;
 };
 
 struct mmc_queue {