]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mmc: sdhci-omap: Remove forward declaration of sdhci_omap_context_save()
authorGeert Uytterhoeven <geert@linux-m68k.org>
Wed, 20 Oct 2021 08:39:02 +0000 (10:39 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 21 Oct 2021 19:37:36 +0000 (21:37 +0200)
If CONFIG_PM_SLEEP=n:

    drivers/mmc/host/sdhci-omap.c:1213:13: error: ‘sdhci_omap_context_save’ declared ‘static’ but never defined [-Werror=unused-function]
     1213 | static void sdhci_omap_context_save(struct sdhci_omap_host *omap_host);
  |             ^~~~~~~~~~~~~~~~~~~~~~~

The referenced commit added an unrelated forward declaration of
sdhci_omap_context_save(), which is unneeded in general, and unused when
CONFIG_PM_SLEEP=n.

Fixes: f433e8aac6b94218 ("mmc: sdhci-omap: Implement PM runtime functions")
Reported-by: noreply@ellerman.id.au
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://lore.kernel.org/r/20211020083902.3669769-1-geert@linux-m68k.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-omap.c

index 0dec2f849b81e24209ae1b6daba33fe9aece23c2..a4a1734dcb84e9cfdc88eb7bc3edc59974a36680 100644 (file)
@@ -1210,8 +1210,6 @@ static const struct soc_device_attribute sdhci_omap_soc_devices[] = {
        }
 };
 
-static void sdhci_omap_context_save(struct sdhci_omap_host *omap_host);
-
 static int sdhci_omap_probe(struct platform_device *pdev)
 {
        int ret;