[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-backports
Subject:    [PATCH 05/13] backports: fix build when CONFIG_PTP_1588_CLOCK=m
From:       Hauke Mehrtens <hauke () hauke-m ! de>
Date:       2014-05-31 17:16:02
Message-ID: 1401556570-3363-6-git-send-email-hauke () hauke-m ! de
[Download RAW message or body]

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

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
 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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic