From: Raphaël Beamonte Date: Tue, 28 May 2013 01:45:55 +0000 (-0400) Subject: Remove a direct include of rwlock.h which fail on a kernel with the RT patches X-Git-Tag: release-2.3~231^2~1 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=b86fed351eda7055fddf3ea96583d716122027fc;p=systemtap.git 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 Signed-off-by: Yannick Brosseau --- diff --git a/runtime/linux/uprobes-inode.c b/runtime/linux/uprobes-inode.c index f16cd8ed6..5137f58e2 100644 --- a/runtime/linux/uprobes-inode.c +++ b/runtime/linux/uprobes-inode.c @@ -15,7 +15,6 @@ #include #include #include -#include #include #include