[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 14/14] contrib/plugins/execlog: fix new warnings
From: |
Pierrick Bouvier |
Subject: |
[PATCH v2 14/14] contrib/plugins/execlog: fix new warnings |
Date: |
Thu, 18 Jan 2024 07:23:59 +0400 |
‘g_pattern_match_string’ is deprecated,
Use 'g_pattern_spec_match_string' instead.
passing argument 2 of ‘g_ptr_array_add’ discards ‘const’ qualifier from
pointer target type
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
---
contrib/plugins/execlog.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/contrib/plugins/execlog.c b/contrib/plugins/execlog.c
index 5a4de1c93be..d12137ce5c0 100644
--- a/contrib/plugins/execlog.c
+++ b/contrib/plugins/execlog.c
@@ -336,8 +336,8 @@ static void registers_init(int vcpu_index)
for (int p = 0; p < rmatches->len; p++) {
g_autoptr(GPatternSpec) pat =
g_pattern_spec_new(rmatches->pdata[p]);
g_autofree gchar *rd_lower = g_utf8_strdown(rd->name, -1);
- if (g_pattern_match_string(pat, rd->name) ||
- g_pattern_match_string(pat, rd_lower)) {
+ if (g_pattern_spec_match_string(pat, rd->name) ||
+ g_pattern_spec_match_string(pat, rd_lower)) {
Register *reg = init_vcpu_register(vcpu_index, rd);
g_ptr_array_add(registers, reg);
@@ -345,7 +345,7 @@ static void registers_init(int vcpu_index)
if (disas_assist) {
g_mutex_lock(&add_reg_name_lock);
if (!g_ptr_array_find(all_reg_names, reg->name, NULL))
{
- g_ptr_array_add(all_reg_names, reg->name);
+ g_ptr_array_add(all_reg_names,
(gpointer)reg->name);
}
g_mutex_unlock(&add_reg_name_lock);
}
--
2.43.0
- [PATCH v2 07/14] tests/plugin/insn: migrate to new per_vcpu API, (continued)
- [PATCH v2 07/14] tests/plugin/insn: migrate to new per_vcpu API, Pierrick Bouvier, 2024/01/17
- [PATCH v2 08/14] tests/plugin/bb: migrate to new per_vcpu API, Pierrick Bouvier, 2024/01/17
- [PATCH v2 09/14] contrib/plugins/hotblocks: migrate to new per_vcpu API, Pierrick Bouvier, 2024/01/17
- [PATCH v2 10/14] contrib/plugins/howvec: migrate to new per_vcpu API, Pierrick Bouvier, 2024/01/17
- [PATCH v2 11/14] plugins: remove non per_vcpu inline operation from API, Pierrick Bouvier, 2024/01/17
- [PATCH v2 12/14] plugins: register inline op with a qemu_plugin_u64_t, Pierrick Bouvier, 2024/01/17
- [PATCH v2 13/14] MAINTAINERS: Add myself as reviewer for TCG Plugins, Pierrick Bouvier, 2024/01/17
- [PATCH v2 14/14] contrib/plugins/execlog: fix new warnings,
Pierrick Bouvier <=
- Re: [PATCH v2 00/14] TCG Plugin inline operation enhancement, Pierrick Bouvier, 2024/01/26