All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH-RT] preempt.h: Fix implicit declaration of 'preempt_check_resched_rt'
@ 2012-03-08 20:13 ` John Kacur
  0 siblings, 0 replies; 11+ messages in thread
From: John Kacur @ 2012-03-08 20:13 UTC (permalink / raw)
  To: Thomas Gleixner, rt-users
  Cc: lkml, Steven Rostedt, John Kacur, Clark Williams

When building a non-preempt kernel where CONFIG_PREEMPT_COUNT is not
defined the following build break occurs.

/home/jkacur/linux-rt/block/blk-softirq.c: In function ‘trigger_softirq’:
/home/jkacur/linux-rt/block/blk-softirq.c:54: error: implicit declaration of function ‘preempt_check_resched_rt’
make[2]: *** [block/blk-softirq.o] Error 1
make[1]: *** [block/blk-softirq.o] Error 2
make: *** [sub-make] Error 2

This patch fixes the build error by adding a define to the
!CONFIG_PREEMPT_COUNT section.

Signed-off-by: Clark Williams <williams@redhat.com>
Signed-off-by: John Kacur <jkacur@redhat.com>
---
 include/linux/preempt.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/linux/preempt.h b/include/linux/preempt.h
index fa40695..58d8982 100644
--- a/include/linux/preempt.h
+++ b/include/linux/preempt.h
@@ -107,6 +107,7 @@ do { \
 #define preempt_disable_notrace()		do { } while (0)
 #define preempt_enable_no_resched_notrace()	do { } while (0)
 #define preempt_enable_notrace()		do { } while (0)
+#define preempt_check_resched_rt()	do { } while (0)
 
 #endif /* CONFIG_PREEMPT_COUNT */
 
-- 
1.7.2.3


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-03-13 19:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-08 20:13 [PATCH-RT] preempt.h: Fix implicit declaration of 'preempt_check_resched_rt' John Kacur
2012-03-08 20:13 ` John Kacur
2012-03-08 20:17 ` Steven Rostedt
2012-03-08 20:17   ` Steven Rostedt
2012-03-08 20:22   ` Clark Williams
2012-03-08 20:34     ` Steven Rostedt
2012-03-08 20:34       ` Steven Rostedt
2012-03-08 21:04       ` John Kacur
2012-03-08 21:04         ` John Kacur
2012-03-13 19:24 ` Steven Rostedt
2012-03-13 19:24   ` Steven Rostedt

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.