This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Remove a direct include of rwlock.h which fail on a kernel with the RT patches


The file linux/rwlock.h should not be included directly as stated by
an #error message at the 5th line of the file. With a RT patched
kernel, linux/rwlock_rt.h should be included instead of linux/rwlock.h.
The file linux/spinlock.h already do the proper check. We then should
let the include be done by this file.

Signed-off-by: RaphaÃl Beamonte <raphael.beamonte@gmail.com>
Signed-off-by: Yannick Brosseau <yannick.brosseau@gmail.com>
---
 runtime/linux/uprobes-inode.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/runtime/linux/uprobes-inode.c b/runtime/linux/uprobes-inode.c
index f16cd8e..5137f58 100644
--- a/runtime/linux/uprobes-inode.c
+++ b/runtime/linux/uprobes-inode.c
@@ -15,7 +15,6 @@
 #include <linux/list.h>
 #include <linux/namei.h>
 #include <linux/mutex.h>
-#include <linux/rwlock.h>
 #include <linux/spinlock.h>
 #include <linux/uprobes.h>
 
-- 
1.7.10.4


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]