Re: linux-next: Tree for June 24 (mtd + of)

From: Randy Dunlap
Date: Fri Jun 24 2011 - 16:39:33 EST


On 06/24/11 13:26, Artem Bityutskiy wrote:
> On Fri, 2011-06-24 at 09:04 -0700, Randy Dunlap wrote:
>> On Fri, 24 Jun 2011 15:58:22 +1000 Stephen Rothwell wrote:
>>
>>> Hi all,
>>>
>>> Changes since 20110623:
>>>
>>> My fixes tree includes:
>>> (as an experiment) the early part of mmotm-2011-06-22-13-05
>>> STAGING: Comedi: Build only on arches providing PAGE_KERNEL_NOCACHE
>>
>>
>> When CONFIG_MTD=m, CONFIG_MTD_OF_PARTS=y:
>>
>> drivers/mtd/ofpart.o: In function `init_module':
>> ofpart.c:(.init.text+0x0): multiple definition of `init_module'
>> drivers/mtd/mtdcore.o:(.init.text+0x43): first defined here
>
> I guess this is some old issue? I do not think ofpart can be compiled-in
> if the mtd core is a module...

[adding driver author, Vitaly]

No, it's a current issue.

config MTD_OF_PARTS
def_bool y
depends on OF

and (implicitly) depends on MTD. MTD=m, so boolean => y.


--
~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/