]> sourceware.org Git - systemtap.git/commitdiff
Remove a direct include of rwlock.h which fail on a kernel with the RT patches
authorRaphaël Beamonte <raphael.beamonte@gmail.com>
Tue, 28 May 2013 01:45:55 +0000 (21:45 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Tue, 28 May 2013 14:50:54 +0000 (10:50 -0400)
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

index f16cd8ed65b6d4e55538af309286d13c67a2adc7..5137f58e2627648bd9b7fb3e26fed7de22c0a5cc 100644 (file)
@@ -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>
 
This page took 0.028334 seconds and 5 git commands to generate.