Re: Failing randconfig builds with CONFIG_TRIM_UNUSED_KSYMS

From: Arnd Bergmann
Date: Thu Apr 28 2016 - 17:20:59 EST


On Thursday 28 April 2016 16:56:23 Nicolas Pitre wrote:
> On Thu, 28 Apr 2016, Arnd Bergmann wrote:
> Well, the actual explanation is that this module uses only one symbol.
> And when only one symbol was listed, it got ignored.

Ok.

>
> Now fixing this wasn't all that obvious either. I had a really nice sed
> rule to parse multiple instances per line, but sed regexp can only do
> greedy matching. I found out how people work around that limitation but
> that doesn't work well for string delimiters.
>
> In the end the best workaround is simple: substitute any ';' with '\n':

Wow, I could have spent days trying to figure these out, glad I gave
up earlier ;-)

I've applied both patches locally now, and have successfully built
all the configurations that failed before. I'll let you know if something
else should come up.

Thanks,

Arnd