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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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




[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux