[PATCH] mci: mci-core: Compile fix
Sascha Hauer
s.hauer at pengutronix.de
Tue Apr 8 00:50:03 PDT 2025
On Tue, Apr 08, 2025 at 10:03:39AM +0300, Alexander Shiyan wrote:
> Fix compilation error:
> drivers/mci/mci-core.c: In function 'mci_part_add':
> drivers/mci/mci-core.c:693:32: error: invalid storage class for function 'mmc_extract_gpp_units'
> 693 | static __maybe_unused unsigned mmc_extract_gpp_units(const char *ecsd_info, unsigned idx)
> | ^~~~~~~~~~~~~~~~~~~~~
> drivers/mci/mci-core.c:693:1: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
> 693 | static __maybe_unused unsigned mmc_extract_gpp_units(const char *ecsd_info, unsigned idx)
> ...
>
> Signed-off-by: Alexander Shiyan <eagle.alexander923 at gmail.com>
> ---
> drivers/mci/mci-core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c
> index 76d679ed2e..2c82379b0d 100644
> --- a/drivers/mci/mci-core.c
> +++ b/drivers/mci/mci-core.c
> @@ -676,7 +676,7 @@ static void mci_part_add(struct mci *mci, uint64_t size,
>
> if (area_type == MMC_BLK_DATA_AREA_RPMB)
> mci->rpmb_part = part;
> - else if (area_type == MMC_BLK_DATA_AREA_MAIN) {
> + else if (area_type == MMC_BLK_DATA_AREA_MAIN)
That was a mismerge on the -next branch. I just fixed it up, thanks for
noting.
Sascha
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list