Skip to contentSkip to conversation

undefined reference to `mmc_pm_notify' when selected MMC without PM.

PATCH Kukjin Kim 2 participants 2 messages Aug 13, 2010 MMC, SD and SDIO

lore
Share & tools
lore

Kukjin Kim

author
#0 lore raw

Hi,

Following is build error when selected MMC without PM.

drivers/built-in.o: In function `mmc_alloc_host':
drivers/mmc/core/host.c:108: undefined reference to `mmc_pm_notify' make[1]: *** [.tmp_vmlinux1] Error 1
make: *** [sub-make] Error 2

That is added from Maxim's ' mmc: fix all hangs related to mmc/sd card insert/removal during suspend/resume '
(commit ID: 4c2ef25fe0b847d2ae818f74758ddb0be1c27d8e)

Below is temporary patch for avoiding build error. But I'm not sure about this... :-(

---

drivers/mmc/core/host.c +0 -0
index 0efe631..d80cfdc 100644
@@ -86,7 +86,9 @@ struct mmc_host *mmc_alloc_host(int extra, struct device

*dev)

        init_waitqueue_head(&host->wq);
        INIT_DELAYED_WORK(&host->detect, mmc_rescan);
        INIT_DELAYED_WORK_DEFERRABLE(&host->disable,
mmc_host_deeper_disable);
+#ifdef CONFIG_PM
        host->pm_notify.notifier_call = mmc_pm_notify;

+#endif

/*
* By default, hosts do not support SGIO or large requests.

---

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.

#1 lore raw

Hello.

Quoted 21 lines · Kukjin Kim

Following is build error when selected MMC without PM.

drivers/built-in.o: In function `mmc_alloc_host':
drivers/mmc/core/host.c:108: undefined reference to `mmc_pm_notify' make[1]: *** [.tmp_vmlinux1] Error 1
make: *** [sub-make] Error 2

That is added from Maxim's ' mmc: fix all hangs related to mmc/sd card insert/removal during suspend/resume '
(commit ID: 4c2ef25fe0b847d2ae818f74758ddb0be1c27d8e)

Below is temporary patch for avoiding build error. But I'm not sure about this... :-(

---

drivers/mmc/core/host.c +0 -0
index 0efe631..d80cfdc 100644

drivers/mmc/core/host.c struct mmc_host *mmc_alloc_host(int extra, struct device · line 90

Quoted 5 lines
drivers/mmc/core/host.c +0 -0
@@ -86,7 +86,9 @@ struct mmc_host *mmc_alloc_host(int extra, struct device
 *dev)
        init_waitqueue_head(&host->wq);
        INIT_DELAYED_WORK(&host->detect, mmc_rescan);
        INIT_DELAYED_WORK_DEFERRABLE(&host->disable,
 mmc_host_deeper_disable);

Looks like your patch is line-wrapped...

drivers/mmc/core/host.c struct mmc_host *mmc_alloc_host(int extra, struct device · line 93

Quoted 3 lines
drivers/mmc/core/host.c +2 -0
+#ifdef CONFIG_PM
        host->pm_notify.notifier_call = mmc_pm_notify;
+#endif

WBR, Sergei