From 5af111ce75ea93d40df1333b5e334b13c5f604a2 Mon Sep 17 00:00:00 2001 From: Nick Alcock Date: Tue, 24 Jan 2017 16:29:56 +0000 Subject: [PATCH] dtrace: handle modular IPv6 We want to build in the IPv6 code even when IPv6 is built as a module (as it is in UEK). Adjust the config conditionals accordingly. Signed-off-by: Nick Alcock Orabug: 25557554 --- dtrace/dtrace_dif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dtrace/dtrace_dif.c b/dtrace/dtrace_dif.c index c6c297dfbf7f..f434df47c1e7 100644 --- a/dtrace/dtrace_dif.c +++ b/dtrace/dtrace_dif.c @@ -3686,7 +3686,7 @@ next: *end-- = '.'; } ASSERT(end + 1 >= base); -#ifdef CONFIG_IPV6 +#if IS_ENABLED(CONFIG_IPV6) } else if (af == AF_INET6) { in6_addr_t ip6; int firstzero, tryzero, numzero, v6end; @@ -3829,7 +3829,7 @@ next: break; } -#ifdef CONFIG_IPV6 +#if IS_ENABLED(CONFIG_IPV6) inetout: #endif regs[rd] = (uintptr_t)end + 1; -- 2.50.1