summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWenji Huang <wenji.huang@oracle.com>2008-12-07 23:01:35 -0500
committerWenji Huang <wenji.huang@oracle.com>2008-12-07 23:01:35 -0500
commit454324f43e021027c5254a62de5e081792efc3fc (patch)
tree8dc847d9d1b36902e6cd90a8200d51974f8bb10a
parentece3457a5cc92f0968ebf52823af2d017d5272c1 (diff)
downloadsystemtap-steved-454324f43e021027c5254a62de5e081792efc3fc.tar.gz
systemtap-steved-454324f43e021027c5254a62de5e081792efc3fc.tar.xz
systemtap-steved-454324f43e021027c5254a62de5e081792efc3fc.zip
Fix the compilation warning of uprobe in FC9.
-rw-r--r--runtime/ChangeLog4
-rw-r--r--runtime/uprobes2/uprobes_x86.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/runtime/ChangeLog b/runtime/ChangeLog
index aaf39a04..b583b4aa 100644
--- a/runtime/ChangeLog
+++ b/runtime/ChangeLog
@@ -1,3 +1,7 @@
+2008-12-08 Wenji Huang <wenji.huang@oracle.com>
+
+ * uprobes2/uprobes_x86.c (handle_riprel_insn): Fix the warning.
+
2008-12-04 Stan Cox <scox@redhat.com>
* sduprobes.c (STAP_PROBE_START): Remove.
diff --git a/runtime/uprobes2/uprobes_x86.c b/runtime/uprobes2/uprobes_x86.c
index 45289564..effb7444 100644
--- a/runtime/uprobes2/uprobes_x86.c
+++ b/runtime/uprobes2/uprobes_x86.c
@@ -417,10 +417,10 @@ static int handle_riprel_insn(struct uprobe_probept *ppt)
opcode1 = *insn;
if (opcode1 == 0x0f) { /* Two-byte opcode. */
opcode2 = *++insn;
- need_modrm = test_bit(opcode2, twobyte_has_modrm);
+ need_modrm = test_bit(opcode2, (unsigned long*)twobyte_has_modrm);
} else { /* One-byte opcode. */
opcode2 = 0x0;
- need_modrm = test_bit(opcode1, onebyte_has_modrm);
+ need_modrm = test_bit(opcode1, (unsigned long*)onebyte_has_modrm);
}
if (!need_modrm)