* [PATCH] Remove a direct include of rwlock.h which fail on a kernel with the RT patches
@ 2013-05-28 1:46 Raphaël Beamonte
0 siblings, 0 replies; only message in thread
From: Raphaël Beamonte @ 2013-05-28 1:46 UTC (permalink / raw)
To: systemtap; +Cc: Raphaël Beamonte, Yannick Brosseau
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-05-28 1:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-28 1:46 [PATCH] Remove a direct include of rwlock.h which fail on a kernel with the RT patches Raphaël Beamonte
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).