Re: [PATCH net v3] net: ethernet: ti: fix build and remove TI_CPTS_MOD workaround

From
Arnd Bergmann <arnd@arndb.de>
Date
2020-05-12 08:53:28
Also in
linux-omap, lkml
Reply to
Grygorii Strashko, 2020-05-12
On Tue, May 12, 2020 at 10:35 AM Grygorii Strashko
[off-list ref] wrote:
Hi Arnd,

On 08/05/2020 14:25, Arnd Bergmann wrote:
quoted
On Fri, May 8, 2020 at 1:14 PM Grygorii Strashko
[off-list ref] wrote:
quoted
On 08/05/2020 13:10, Arnd Bergmann wrote:
quoted
On Fri, May 8, 2020 at 11:59 AM Grygorii Strashko
quoted
quoted
quoted
That's because TI_CPTS_MOD (which is the symbol gating the _compilation_ of
cpts.c) now depends on PTP_1588_CLOCK, and so is not enabled in these
configurations, but TI_CPTS (which is the symbol gating _calls_ to the cpts
functions) _is_ enabled. So we end up compiling calls to functions that
don't exist, resulting in the linker errors.

This patch fixes build errors and restores previous behavior by:
   - ensure PTP_1588_CLOCK=y in TI specific configs and CPTS will be built
   - use IS_REACHABLE(CONFIG_TI_CPTS) in code instead of IS_ENABLED()
I don't understand what IS_REACHABLE() is needed for once all the other
changes are in place. I'd hope we can avoid that. Do you still see
failures without
that or is it just a precaution. I can do some randconfig testing on your patch
to see what else might be needed to avoid IS_REACHABLE().
I've not changed this part of original patch, but seems you're right.

I can drop it and resend, but, unfortunately, i do not have time today for full build testing.
I have applied to patch locally to my randconfig tree, with the IS_REACHABLE()
changes taken out.
What will be the conclusion here?
I have seen no other problems with it, please leave out the the IS_REACHABLE()
changes and just use the dependencies.

       Arnd
Thread (6 messages) 6 messages, 2 authors, last reply 2020-05-12
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help