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/rwsem.h |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/kernel/include/linux/rwsem.h b/kernel/include/linux/rwsem.h
index 4f71699..e851cd5 100644
--- a/kernel/include/linux/rwsem.h
+++ b/kernel/include/linux/rwsem.h
@@ -16,11 +16,6 @@
 #include <linux/spinlock.h>
 #include <linux/atomic.h>
 #include <linux/err.h>
-
-#ifdef CONFIG_PREEMPT_RT
-#include <linux/rwsem-rt.h>
-#else /* PREEMPT_RT */
-
 #ifdef CONFIG_RWSEM_SPIN_ON_OWNER
 #include <linux/osq_lock.h>
 #endif
@@ -139,13 +134,6 @@
 {
 	return !list_empty(&sem->wait_list);
 }
-
-#endif /* !PREEMPT_RT */
-
-/*
- * The functions below are the same for all rwsem implementations including
- * the RT specific variant.
- */
 
 /*
  * lock for reading

--
Gitblit v1.6.2