diff mbox series

[v1,23/29] plugins/cache: Fixed "function decl. is not a prototype" warnings

Message ID 20210720232703.10650-24-alex.bennee@linaro.org
State Superseded
Headers show
Series various fixes pre-PR (metadata, docs, plugins, testing) | expand

Commit Message

Alex Bennée July 20, 2021, 11:26 p.m. UTC
From: Mahmoud Mandour <ma.mandourr@gmail.com>


Signed-off-by: Mahmoud Mandour <ma.mandourr@gmail.com>

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>

Message-Id: <20210714172151.8494-7-ma.mandourr@gmail.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>

---
 contrib/plugins/cache.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

-- 
2.32.0.264.g75ae10bc75

Comments

Philippe Mathieu-Daudé July 21, 2021, 8:09 a.m. UTC | #1
On 7/21/21 1:26 AM, Alex Bennée wrote:
> From: Mahmoud Mandour <ma.mandourr@gmail.com>

> 

> Signed-off-by: Mahmoud Mandour <ma.mandourr@gmail.com>

> Reviewed-by: Alex Bennée <alex.bennee@linaro.org>

> Message-Id: <20210714172151.8494-7-ma.mandourr@gmail.com>

> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>

> ---

>  contrib/plugins/cache.c | 6 +++---

>  1 file changed, 3 insertions(+), 3 deletions(-)


Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
diff mbox series

Patch

diff --git a/contrib/plugins/cache.c b/contrib/plugins/cache.c
index 695fb969dc..066ea6d8ec 100644
--- a/contrib/plugins/cache.c
+++ b/contrib/plugins/cache.c
@@ -469,7 +469,7 @@  static int icmp(gconstpointer a, gconstpointer b)
     return insn_a->imisses < insn_b->imisses ? 1 : -1;
 }
 
-static void log_stats()
+static void log_stats(void)
 {
     g_autoptr(GString) rep = g_string_new("");
     g_string_append_printf(rep,
@@ -487,7 +487,7 @@  static void log_stats()
     qemu_plugin_outs(rep->str);
 }
 
-static void log_top_insns()
+static void log_top_insns(void)
 {
     int i;
     GList *curr, *miss_insns;
@@ -536,7 +536,7 @@  static void plugin_exit(qemu_plugin_id_t id, void *p)
     g_hash_table_destroy(miss_ht);
 }
 
-static void policy_init()
+static void policy_init(void)
 {
     switch (policy) {
     case LRU: