Re: [PATCH 1/2] rcu: export rcu_note_context_switch() function

From: Avi Kivity
Date: Thu Apr 28 2011 - 06:01:17 EST


On 04/28/2011 12:52 PM, Gleb Natapov wrote:
Signed-off-by: Gleb Natapov<gleb@xxxxxxxxxx>
@@ -93,11 +93,7 @@ static inline int rcu_needs_cpu(int cpu)

#endif /* #else #ifdef CONFIG_TINY_RCU */

-static inline void rcu_note_context_switch(int cpu)
-{
- rcu_sched_qs(cpu);
- rcu_preempt_note_context_switch();
-}
+extern void rcu_note_context_switch(int cpu);


Why are you uninlining this function? Why not export the two functions it calls instead?

--
error compiling committee.c: too many arguments to function

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/