From cbc5d49e4973400737aab50b60dc5d86e71f5420 Mon Sep 17 00:00:00 2001 From: Andrea Bastoni Date: Sat, 19 Jun 2010 13:45:36 -0400 Subject: Bugfix: avoid conditional compilation dependent error If RELEASE_MASTER is not selected the "info" hrtimer_start_on_info structure in release_heap structure is not visible and trying to access "info" from reinit_release_heap() causes the following error: error: 'struct release_heap' has no member named 'info' info should not be referenced if RELEASE_MASTER is not used. The problem was first reported by Glenn --- litmus/rt_domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'litmus') diff --git a/litmus/rt_domain.c b/litmus/rt_domain.c index b5de181e62db..8a3ff706c208 100644 --- a/litmus/rt_domain.c +++ b/litmus/rt_domain.c @@ -158,7 +158,7 @@ static void reinit_release_heap(struct task_struct* t) /* initialize */ bheap_init(&rh->heap); -#ifdef CONFIG_ARCH_HAS_SEND_PULL_TIMERS +#ifdef CONFIG_RELEASE_MASTER atomic_set(&rh->info.state, HRTIMER_START_ON_INACTIVE); #endif } -- cgit v1.2.2