From f9394bb11e68f55ac3073fb40842c989b2cc27f8 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sat, 31 May 2014 15:34:55 +0200 Subject: [PATCH] backports: fix build if CONFIG_PTP_1588_CLOCK=m ifdef just checked if this was build into the kernel and not if it was build as a module. Signed-off-by: Hauke Mehrtens --- 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 f9590d730b20..2727eb323b9c 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; -- 2.30.2