Re: mmotm 2010-07-01-12-19 uploaded (mmc)

From: Andrew Morton
Date: Wed Jul 07 2010 - 17:36:18 EST


On Thu, 1 Jul 2010 16:28:42 -0700
Randy Dunlap <randy.dunlap@xxxxxxxxxx> wrote:

> On Thu, 01 Jul 2010 12:19:51 -0700 akpm@xxxxxxxxxxxxxxxxxxxx wrote:
>
> > The mm-of-the-moment snapshot 2010-07-01-12-19 has been uploaded to
> >
> > http://userweb.kernel.org/~akpm/mmotm/
> >
> > and will soon be available at
> >
> > git://zen-kernel.org/kernel/mmotm.git
> >
> > It contains the following patches against 2.6.35-rc3:
>
>
> mmc-fix-all-hangs-related-to-mmc-sd-card-insert-removal-during-suspend-resume.patch:
>
> if CONFIG_PM is not enabled:
>
> (.text+0xc380c4): undefined reference to `mmc_pm_notify'
>

Thanks. This, I guess:

--- a/include/linux/mmc/host.h~mmc-fix-all-hangs-related-to-mmc-sd-card-insert-removal-during-suspend-resume-fix
+++ a/include/linux/mmc/host.h
@@ -258,8 +258,12 @@ int mmc_card_can_sleep(struct mmc_host *
int mmc_host_enable(struct mmc_host *host);
int mmc_host_disable(struct mmc_host *host);
int mmc_host_lazy_disable(struct mmc_host *host);
+#ifdef CONFIG_PM
int mmc_pm_notify(struct notifier_block *notify_block, unsigned long mode,
void *unused);
+#else
+#define mmc_pm_notify NULL
+#endif

static inline void mmc_set_disable_delay(struct mmc_host *host,
unsigned int disable_delay)
_

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/