This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[PATCH] Remove a direct include of rwlock.h which fail on a kernel with the RT patches
- From: RaphaÃl Beamonte <raphael dot beamonte at gmail dot com>
- To: systemtap at sourceware dot org
- Cc: RaphaÃl Beamonte <raphael dot beamonte at gmail dot com>, Yannick Brosseau <yannick dot brosseau at gmail dot com>
- Date: Mon, 27 May 2013 21:45:55 -0400
- Subject: [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