From 093a6c67005148ae32a5c9e4553491b9f5c2457b Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Fri, 10 May 2024 07:40:51 +0000
Subject: [PATCH] disable kernel build waring
---
kernel/include/linux/bottom_half.h | 34 ----------------------------------
1 files changed, 0 insertions(+), 34 deletions(-)
diff --git a/kernel/include/linux/bottom_half.h b/kernel/include/linux/bottom_half.h
index 40dd5ef..a19519f 100644
--- a/kernel/include/linux/bottom_half.h
+++ b/kernel/include/linux/bottom_half.h
@@ -4,39 +4,6 @@
#include <linux/preempt.h>
-#ifdef CONFIG_PREEMPT_RT_FULL
-
-extern void __local_bh_disable(void);
-extern void _local_bh_enable(void);
-extern void __local_bh_enable(void);
-
-static inline void local_bh_disable(void)
-{
- __local_bh_disable();
-}
-
-static inline void __local_bh_disable_ip(unsigned long ip, unsigned int cnt)
-{
- __local_bh_disable();
-}
-
-static inline void local_bh_enable(void)
-{
- __local_bh_enable();
-}
-
-static inline void __local_bh_enable_ip(unsigned long ip, unsigned int cnt)
-{
- __local_bh_enable();
-}
-
-static inline void local_bh_enable_ip(unsigned long ip)
-{
- __local_bh_enable();
-}
-
-#else
-
#ifdef CONFIG_TRACE_IRQFLAGS
extern void __local_bh_disable_ip(unsigned long ip, unsigned int cnt);
#else
@@ -64,6 +31,5 @@
{
__local_bh_enable_ip(_THIS_IP_, SOFTIRQ_DISABLE_OFFSET);
}
-#endif
#endif /* _LINUX_BH_H */
--
Gitblit v1.6.2