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 <eagle.rtlinux@xxxxxxxxx>
---
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html