ifdef just checked if this was build into the kernel and not if it was
build as a module.

Signed-off-by: Hauke Mehrtens <[email protected]>
---
 backport/compat/compat-3.5.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backport/compat/compat-3.5.c b/backport/compat/compat-3.5.c
index f9590d7..2727eb3 100644
--- a/backport/compat/compat-3.5.c
+++ b/backport/compat/compat-3.5.c
@@ -66,7 +66,7 @@ EXPORT_SYMBOL_GPL(overflowuid);
 EXPORT_SYMBOL_GPL(overflowgid);
 #endif
 
-#ifdef CONFIG_PTP_1588_CLOCK
+#if IS_ENABLED(CONFIG_PTP_1588_CLOCK)
 int ptp_clock_index(struct ptp_clock *ptp)
 {
        return ptp->index;
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to