Re: [PATCH 2/2] net: lan743x: fix building without CONFIG_PTP_1588_CLOCK
From: David Miller
Date: Tue Aug 14 2018 - 09:27:11 EST
From: Arnd Bergmann <arnd@xxxxxxxx>
Date: Mon, 13 Aug 2018 23:19:22 +0200
> Building without CONFIG_PTP_1588_CLOCK results in multiple failures,
> this was obviously not well tested:
...
> Those #ifdef checks are hard to get right, replace them all with
> IS_ENABLED() checks that leave the same code visible to the compiler
> but let it optimize out the unused bits based on the configuration.
>
> Fixes: 07624df1c9ef ("lan743x: lan743x: Add PTP support")
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
Applied.