Re: [PATCH v3 0/2] memory: omap-gpmc: Allow module build

From: Krzysztof Kozlowski
Date: Wed Apr 13 2022 - 08:31:54 EST


On 13/04/2022 13:56, Roger Quadros wrote:
>
>
> On 13/04/2022 14:47, Krzysztof Kozlowski wrote:
>> On 13/04/2022 13:33, Roger Quadros wrote:
>>>> Previously it was building with COMPILE_TEST on sparc, so what else changed?
>>>>
>>> Previously it was like so
>>>
>>> bool "Texas Instruments OMAP SoC GPMC driver" if COMPILE_TEST
>>> depends on OF_ADDRESS
>>>
>>> Means it won't build if OF_ADDRESS is not set even if COMPILE_TEST is set.
>>>
>>> And OF_ADDRESS is not set for sparc
>>>
>>
>> Ah, yes, so dropping COMPILE_TEST seems the solution. There are no other
>> "depends" here.
>
> But the build failed at irq_domain_remove() which is only available if IRQ_DOMAIN
> is enabled.
>
> It could be possible that OF_ADDRESS is enabled but IRQ_DOMAIN is not right?

I must admit I did not dig this that much. OF_ADDRESS has !SPARC
dependency, so after removing COMPILE_TEST the issue should not happen
on SPARC. What about other platforms? They should behave I think the
same as before - fail if they were failing. Nothing gets worse which is
my main concern here.

If you have spare time, maybe you could investigate the compile testing
on other platforms as well and if something fails, fix it. But it seems
it is separate problem.

Best regards,
Krzysztof