Messages in this thread | | | Date | Mon, 13 Aug 2018 20:44:20 -0700 (PDT) | Subject | Re: [PATCH 2/2] net: lan743x: fix building without CONFIG_PTP_1588_CLOCK | From | David Miller <> |
| |
From: Arnd Bergmann <arnd@arndb.de> 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@arndb.de>
Applied.
| |