From: John Kacur <jkacur@redhat.com> To: Thomas Gleixner <tglx@linutronix.de>, Paul McKenney <paulmck@linux.vnet.ibm.com> Cc: lkml <linux-kernel@vger.kernel.org>, rt-users <linux-rt-users@vger.kernel.org>, John Kacur <jkacur@redhat.com> Subject: [PATCH] rcutree: Fix v3.4-rc2-rt2 build break Date: Wed, 11 Apr 2012 16:42:59 +0200 [thread overview] Message-ID: <1334155379-18088-1-git-send-email-jkacur@redhat.com> (raw) Fix build break of the following types. linux-rt/kernel/rcutree_plugin.h: In function ‘print_cpu_stall_fast_no_hz’: linux-rt/kernel/rcutree_plugin.h:2195: error: ‘rcu_idle_gp_timer’ undeclared (first use in this function) linux-rt/kernel/rcutree_plugin.h:2195: error: (Each undeclared identifier is reported only once linux-rt/kernel/rcutree_plugin.h:2195: error: for each function it appears in.) The build break only occurs with the PREEMPT_RT_FULL patch applied, however the patch is meant to go upstream and be applied to v3.4-rc2 as well because it makes the code more legible there, and will reduce the number of places where #ifdef PREEMPT_RT_FULL is required should that go upstream someday. Signed-off-by: John Kacur <jkacur@redhat.com> --- kernel/rcutree_plugin.h | 19 +++++++++---------- 1 files changed, 9 insertions(+), 10 deletions(-) diff --git a/kernel/rcutree_plugin.h b/kernel/rcutree_plugin.h index 14acafc..1db9471 100644 --- a/kernel/rcutree_plugin.h +++ b/kernel/rcutree_plugin.h @@ -1938,6 +1938,12 @@ static void rcu_prepare_for_idle(int cpu) { } +#ifdef CONFIG_RCU_CPU_STALL_INFO +static void print_cpu_stall_fast_no_hz(char *cp, int cpu) +{ +} +#endif /* #ifdef CONFIG_RCU_CPU_STALL_INFO */ + #else /* #if !defined(CONFIG_RCU_FAST_NO_HZ) */ /* @@ -2184,12 +2190,8 @@ static void rcu_prepare_for_idle(int cpu) trace_rcu_prep_idle("Callbacks drained"); } -#endif /* #else #if !defined(CONFIG_RCU_FAST_NO_HZ) */ #ifdef CONFIG_RCU_CPU_STALL_INFO - -#ifdef CONFIG_RCU_FAST_NO_HZ - static void print_cpu_stall_fast_no_hz(char *cp, int cpu) { struct hrtimer *hrtp = &per_cpu(rcu_idle_gp_timer, cpu); @@ -2201,14 +2203,11 @@ static void print_cpu_stall_fast_no_hz(char *cp, int cpu) ? ktime_to_us(hrtimer_get_remaining(hrtp)) : -1); } +#endif /* #ifdef CONFIG_RCU_CPU_STALL_INFO */ -#else /* #ifdef CONFIG_RCU_FAST_NO_HZ */ - -static void print_cpu_stall_fast_no_hz(char *cp, int cpu) -{ -} +#endif /* #else #if !defined(CONFIG_RCU_FAST_NO_HZ) */ -#endif /* #else #ifdef CONFIG_RCU_FAST_NO_HZ */ +#ifdef CONFIG_RCU_CPU_STALL_INFO /* Initiate the stall-info list. */ static void print_cpu_stall_info_begin(void) -- 1.7.2.3
WARNING: multiple messages have this Message-ID (diff)
From: John Kacur <jkacur@redhat.com> To: Thomas Gleixner <tglx@linutronix.de>, Paul McKenney <paulmck@linux.vnet.ibm.com> Cc: lkml <linux-kernel@vger.kernel.org>, rt-users <linux-rt-users@vger.kernel.org>, John Kacur <jkacur@redhat.com> Subject: [PATCH] rcutree: Fix v3.4-rc2-rt2 build break Date: Wed, 11 Apr 2012 16:42:59 +0200 [thread overview] Message-ID: <1334155379-18088-1-git-send-email-jkacur@redhat.com> (raw) Fix build break of the following types. linux-rt/kernel/rcutree_plugin.h: In function ‘print_cpu_stall_fast_no_hz’: linux-rt/kernel/rcutree_plugin.h:2195: error: ‘rcu_idle_gp_timer’ undeclared (first use in this function) linux-rt/kernel/rcutree_plugin.h:2195: error: (Each undeclared identifier is reported only once linux-rt/kernel/rcutree_plugin.h:2195: error: for each function it appears in.) The build break only occurs with the PREEMPT_RT_FULL patch applied, however the patch is meant to go upstream and be applied to v3.4-rc2 as well because it makes the code more legible there, and will reduce the number of places where #ifdef PREEMPT_RT_FULL is required should that go upstream someday. Signed-off-by: John Kacur <jkacur@redhat.com> --- kernel/rcutree_plugin.h | 19 +++++++++---------- 1 files changed, 9 insertions(+), 10 deletions(-) diff --git a/kernel/rcutree_plugin.h b/kernel/rcutree_plugin.h index 14acafc..1db9471 100644 --- a/kernel/rcutree_plugin.h +++ b/kernel/rcutree_plugin.h @@ -1938,6 +1938,12 @@ static void rcu_prepare_for_idle(int cpu) { } +#ifdef CONFIG_RCU_CPU_STALL_INFO +static void print_cpu_stall_fast_no_hz(char *cp, int cpu) +{ +} +#endif /* #ifdef CONFIG_RCU_CPU_STALL_INFO */ + #else /* #if !defined(CONFIG_RCU_FAST_NO_HZ) */ /* @@ -2184,12 +2190,8 @@ static void rcu_prepare_for_idle(int cpu) trace_rcu_prep_idle("Callbacks drained"); } -#endif /* #else #if !defined(CONFIG_RCU_FAST_NO_HZ) */ #ifdef CONFIG_RCU_CPU_STALL_INFO - -#ifdef CONFIG_RCU_FAST_NO_HZ - static void print_cpu_stall_fast_no_hz(char *cp, int cpu) { struct hrtimer *hrtp = &per_cpu(rcu_idle_gp_timer, cpu); @@ -2201,14 +2203,11 @@ static void print_cpu_stall_fast_no_hz(char *cp, int cpu) ? ktime_to_us(hrtimer_get_remaining(hrtp)) : -1); } +#endif /* #ifdef CONFIG_RCU_CPU_STALL_INFO */ -#else /* #ifdef CONFIG_RCU_FAST_NO_HZ */
next reply other threads:[~2012-04-11 14:43 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-04-11 14:42 John Kacur [this message] 2012-04-11 14:42 ` [PATCH] rcutree: Fix v3.4-rc2-rt2 build break John Kacur 2012-04-12 19:46 ` Thomas Gleixner 2012-04-12 23:11 ` Paul E. McKenney 2012-04-12 23:11 ` Paul E. McKenney 2012-04-12 23:13 ` John Kacur 2012-04-12 23:13 ` John Kacur
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1334155379-18088-1-git-send-email-jkacur@redhat.com \ --to=jkacur@redhat.com \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-rt-users@vger.kernel.org \ --cc=paulmck@linux.vnet.ibm.com \ --cc=tglx@linutronix.de \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.