Re: linux-next: Tree for June 29 (staging/spectra)

From: Randy Dunlap
Date: Tue Jun 29 2010 - 11:08:56 EST


On Tue, 29 Jun 2010 15:19:38 +1000 Stephen Rothwell wrote:

> Hi all,
>
> Changes since 20100628:
>
> My fixes tree is now empty.


When CONFIG_MTD=m and
CONFIG_SPECTRA=y
# CONFIG_SPECTRA_MRST_HW is not set
CONFIG_SPECTRA_MTD=y
# CONFIG_SPECTRA_EMU is not set

build-r3554.out:(.text+0x28bc7c): undefined reference to `put_mtd_device'
build-r3554.out:(.text+0x28bcb1): undefined reference to `get_mtd_device'

due to this in spectra/Kconfig:

config SPECTRA_MTD
bool "Linux MTD mode"
depends on MTD

so when CONFIG_MTD=m, the "depends on MTD" on a 'bool' makes the bool become 'y',
which is not good.

Is this supposed to build a separate lld_mtd driver?
Can't it be tristate instead of bool?



---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
--
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/