Skip to contentSkip to conversation

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

DISCUSSION Kukjin Kim 4 participants 6 messages Aug 13, 2010 – Aug 18, 2010 MMC, SD and SDIO

lore
Share & tools
lore

Kukjin Kim

author
#0 lore raw
Quoted 36 lines · Kukjin Kim

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 +2 -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.

Quoted 1 line

---

Kindly ignore this stuff because I found Uwe's same patch just now ;-) Sorry for bothering.

Thanks.

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

#1 lore raw

Hello,

Quoted 34 lines · Kukjin Kim
Quoted 33 lines · Kukjin Kim

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 +2 -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
 
Quoted 7 lines
Quoted 4 lines

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

---

Kindly ignore this stuff because I found Uwe's same patch just now ;-) Sorry for bothering.

For those who care:

	http://mid.gmane.org/1281691473-15481-1-git-send-email-u.kleine-koenig at pengutronix.de

Kgene, do you care to ack this change as it may prod akpm in taking the fix a bit earlier?

Best regards
Uwe

Signature · 2 lines
Pengutronix e.K.                           | Uwe Kleine-K?nig            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
author
#2 lore raw
Quoted 3 lines · Uwe Kleine-Konig

Hello,

Hi :-)

Quoted 43 lines · Kukjin Kim
Quoted 18 lines
Quoted 17 lines · Kukjin Kim

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... :-(

Quoted 7 lines

drivers/mmc/core/host.c struct mmc_host *mmc_alloc_host(int extra, struct

Quoted 7 lines

---

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

Quoted 9 lines
Quoted 9 lines
drivers/mmc/core/host.c +2 -0
 *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
 
Quoted 7 lines
Quoted 4 lines

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

---

Kindly ignore this stuff because I found Uwe's same patch just now ;-) Sorry for bothering.

Quoted 8 lines

For those who care:

	http://mid.gmane.org/1281691473-15481-1-git-send-email-u.kleine-

[email protected]

Kgene, do you care to ack this change as it may prod akpm in taking the fix a bit earlier?

Sure, I did it.

Thanks.

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

#3 lore raw
In reply to Uwe Kleine-König
Quoted 44 lines · On Mon, 16 Aug 2010 07:17:21 +0200 Uwe Kleine-K?nig wrote:

Hello,

Quoted 34 lines · Kukjin Kim
Quoted 33 lines · Kukjin Kim

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 +2 -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
 
Quoted 7 lines
Quoted 4 lines

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

---

Kindly ignore this stuff because I found Uwe's same patch just now ;-) Sorry for bothering.

Quoted 6 lines

For those who care:

	http://mid.gmane.org/1281691473-15481-1-git-send-email-u.kleine-koenig at pengutronix.de

Kgene, do you care to ack this change as it may prod akpm in taking the fix a bit earlier?

or this one from earlier:
http://lkml.org/lkml/2010/8/12/207

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

#4 lore raw

Hello Randy,

Quoted 48 lines · Randy Dunlap
Quoted 46 lines · On Mon, 16 Aug 2010 07:17:21 +0200 Uwe Kleine-K?nig wrote:

Hello,

Quoted 34 lines · Kukjin Kim
Quoted 33 lines · Kukjin Kim

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 +2 -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
 
Quoted 7 lines
Quoted 4 lines

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

---

Kindly ignore this stuff because I found Uwe's same patch just now ;-) Sorry for bothering.

For those who care:

Quoted 7 lines
Quoted 4 lines
	http://mid.gmane.org/1281691473-15481-1-git-send-email-u.kleine-koenig at pengutronix.de

Kgene, do you care to ack this change as it may prod akpm in taking the fix a bit earlier?

or this one from earlier:
http://lkml.org/lkml/2010/8/12/207

If I found your patch on gmane I could answer it with an Ack, on lkml and kerneltrap (where I found it) I don't get the Message-Id header.

Best regards
Uwe

Signature · 2 lines
Pengutronix e.K.                           | Uwe Kleine-K?nig            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
#5 lore raw
Quoted 6 lines
Quoted 3 lines

or this one from earlier:
http://lkml.org/lkml/2010/8/12/207

If I found your patch on gmane I could answer it with an Ack, on lkml and kerneltrap (where I found it) I don't get the Message-Id header.

Hi Uwe.

lkml.org has a nice "forward" feature. Look for [forward] on the second line just below the RSS image.

The mail I reply to is forwarded from lkml.org in this way.

this has been my way to answer lkml mails in periods where I have not been subscribed and works well.

Sam