2007-10-13 07:16:24

by Kamalesh Babulal

[permalink] [raw]
Subject: 2.6.23-git2 buid failure

Hi,

The 2.6.23-git2 build fails with build error

CC [M] drivers/mmc/core/core.o
CC [M] drivers/mmc/core/sysfs.o
CC [M] drivers/mmc/core/bus.o
CC [M] drivers/mmc/core/host.o
drivers/mmc/core/host.c: In function ‘mmc_remove_host’:
drivers/mmc/core/host.c:146: error: implicit declaration of function ‘led_trigger_unregister’
drivers/mmc/core/host.c:146: error: ‘struct mmc_host’ has no member named ‘led’
make[3]: *** [drivers/mmc/core/host.o] Error 1
make[2]: *** [drivers/mmc/core] Error 2
make[1]: *** [drivers/mmc] Error 2
make: *** [drivers] Error 2

--
Thanks & Regards,
Kamalesh Babulal,
Linux Technology Center,
IBM, ISTL.


2007-10-14 11:18:19

by Ahmed S. Darwish

[permalink] [raw]
Subject: Re: 2.6.23-git2 buid failure

On Sat, Oct 13, 2007 at 12:45:47PM +0530, Kamalesh Babulal wrote:
> Hi,
>
> The 2.6.23-git2 build fails with build error
>
> CC [M] drivers/mmc/core/core.o
> CC [M] drivers/mmc/core/sysfs.o
> CC [M] drivers/mmc/core/bus.o
> CC [M] drivers/mmc/core/host.o
> drivers/mmc/core/host.c: In function ‘mmc_remove_host’:
> drivers/mmc/core/host.c:146: error: implicit declaration of function ‘led_trigger_unregister’
> drivers/mmc/core/host.c:146: error: ‘struct mmc_host’ has no member named ‘led’
> make[3]: *** [drivers/mmc/core/host.o] Error 1
> make[2]: *** [drivers/mmc/core] Error 2
> make[1]: *** [drivers/mmc] Error 2
> make: *** [drivers] Error 2
>

You can fix it using this patch: http://lkml.org/lkml/2007/10/12/380
Or the patch titled: mmc-fix-compile-without-led-triggers.patch

Regards,

--
Ahmed S. Darwish
HomePage: http://darwish.07.googlepages.com
Blog: http://darwish-07.blogspot.com