Thread (45 messages) 45 messages, 6 authors, 2014-05-15
STALE4449d

[PATCH]Fix the Compiling failed problem with the default arch/x86/configs/x86_64_defconfig(3.14-rt1)

From: eagle.rtlinux <hidden>
Date: 2014-05-01 12:39:09
Subsystem: scheduler, the rest · Maintainers: Ingo Molnar, Peter Zijlstra, Juri Lelli, Vincent Guittot, Linus Torvalds

Hello,

After applied the 3.14-rt1 patch set, one compiling error occurred.

Compile failed with the default arch/x86/configs/x86_64_defconfig on my 
laptop(Intel(R) Core(TM) i5-3230M CPU).
The configure command is 'make defconfig'.
Error messages:
linux-3.14/kernel/softirq.c: In function ‘__local_bh_enable_ip’:
linux-3.14/kernel/softirq.c:328:2: error: implicit declaration of fu    
nction ‘preempt_check_resched’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors

The reason is when configured with 'CONFIG_PREEMPT_VOLUNTARY', the 
compiler can not find the definiation of function preempt_check_resched.
This  patch is supplied to fix this problem.

Signed-off-by: Yang Honggang <redacted>
---
  include/linux/preempt.h |    1 +
  1 file changed, 1 insertion(+)
diff --git a/include/linux/preempt.h b/include/linux/preempt.h
index 116af6a..7d4f557 100644
--- a/include/linux/preempt.h
+++ b/include/linux/preempt.h
@@ -155,6 +155,7 @@ do { \
  #define preempt_enable_no_resched_notrace()    barrier()
  #define preempt_enable_notrace()        barrier()
  #define preempt_check_resched_rt()        barrier()
+#define preempt_check_resched()  barrier()

  #endif /* CONFIG_PREEMPT_COUNT */
-- 
1.7.10.4


Best regards,

Yang Honggang
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help