]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mmc: core: remove left-over data structure declarations
authorVladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Fri, 23 Aug 2024 22:59:17 +0000 (01:59 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 26 Aug 2024 11:30:21 +0000 (13:30 +0200)
The last users of 'enum mmc_blk_status' and 'struct mmc_async_req'
were removed by commit 126b62700386 ("mmc: core: Remove code no longer
needed after the switch to blk-mq") in 2017, remove these two left-over
data structures.

Signed-off-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org>
Link: https://lore.kernel.org/r/20240823225917.2826156-1-vladimir.zapolskiy@linaro.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
include/linux/mmc/core.h
include/linux/mmc/host.h

index 2c7928a50907167b48c9c704c7d4997f266d0445..f0ac2e469b324ea19ecc8eafd89d85a03e90c14f 100644 (file)
 struct mmc_data;
 struct mmc_request;
 
-enum mmc_blk_status {
-       MMC_BLK_SUCCESS = 0,
-       MMC_BLK_PARTIAL,
-       MMC_BLK_CMD_ERR,
-       MMC_BLK_RETRY,
-       MMC_BLK_ABORT,
-       MMC_BLK_DATA_ERR,
-       MMC_BLK_ECC_ERR,
-       MMC_BLK_NOMEDIUM,
-       MMC_BLK_NEW_REQUEST,
-};
-
 struct mmc_command {
        u32                     opcode;
        u32                     arg;
index f85df7d045ca56bdda6e508b13a3cb4fa324eacc..ac01cd1622efb85c7caf8e994c9e427cd27a5b39 100644 (file)
@@ -264,16 +264,6 @@ struct mmc_cqe_ops {
        void    (*cqe_recovery_finish)(struct mmc_host *host);
 };
 
-struct mmc_async_req {
-       /* active mmc request */
-       struct mmc_request      *mrq;
-       /*
-        * Check error status of completed mmc request.
-        * Returns 0 if success otherwise non zero.
-        */
-       enum mmc_blk_status (*err_check)(struct mmc_card *, struct mmc_async_req *);
-};
-
 /**
  * struct mmc_slot - MMC slot functions
  *