Message ID | 20240823225917.2826156-1-vladimir.zapolskiy@linaro.org |
---|---|
State | New |
Headers | show |
Series | mmc: core: remove left-over data structure declarations | expand |
On Sat, 24 Aug 2024 at 00:59, Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org> wrote: > > 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> Applied for next, thanks! Kind regards Uffe > --- > Build-tested only. > > include/linux/mmc/core.h | 12 ------------ > include/linux/mmc/host.h | 10 ---------- > 2 files changed, 22 deletions(-) > > diff --git a/include/linux/mmc/core.h b/include/linux/mmc/core.h > index 2c7928a50907..f0ac2e469b32 100644 > --- a/include/linux/mmc/core.h > +++ b/include/linux/mmc/core.h > @@ -11,18 +11,6 @@ > 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; > diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h > index 88c6a76042ee..21e5534ddbe6 100644 > --- a/include/linux/mmc/host.h > +++ b/include/linux/mmc/host.h > @@ -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 > * > -- > 2.45.2 >
diff --git a/include/linux/mmc/core.h b/include/linux/mmc/core.h index 2c7928a50907..f0ac2e469b32 100644 --- a/include/linux/mmc/core.h +++ b/include/linux/mmc/core.h @@ -11,18 +11,6 @@ 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; diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index 88c6a76042ee..21e5534ddbe6 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h @@ -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 *
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> --- Build-tested only. include/linux/mmc/core.h | 12 ------------ include/linux/mmc/host.h | 10 ---------- 2 files changed, 22 deletions(-)