[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 6/6] plugins/cache: Fixed "function decl. is not a prototype" war
From: |
Mahmoud Mandour |
Subject: |
[PATCH 6/6] plugins/cache: Fixed "function decl. is not a prototype" warnings |
Date: |
Wed, 14 Jul 2021 19:21:52 +0200 |
Signed-off-by: Mahmoud Mandour <ma.mandourr@gmail.com>
---
contrib/plugins/cache.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/contrib/plugins/cache.c b/contrib/plugins/cache.c
index 60f7be208b..f82a8310dc 100644
--- a/contrib/plugins/cache.c
+++ b/contrib/plugins/cache.c
@@ -541,7 +541,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)
{
int i, iters;
CoreStats cs;
@@ -578,7 +578,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;
@@ -633,7 +633,7 @@ static void plugin_exit(qemu_plugin_id_t id, void *p)
g_mutex_unlock(&mtx);
}
-static void policy_init()
+static void policy_init(void)
{
switch (policy) {
case LRU:
--
2.25.1
- Re: [PATCH 3/6] plugins/cache: Fixed a use-after-free bug with multithreaded usermode, (continued)
[PATCH 5/6] docs/devel/tcg-plugins: added cores arg to cache plugin, Mahmoud Mandour, 2021/07/14
[PATCH 4/6] plugins/cache: Supported multicore cache modelling, Mahmoud Mandour, 2021/07/14
[PATCH 2/6] plugins/cache: limited the scope of a mutex lock, Mahmoud Mandour, 2021/07/14
[PATCH 6/6] plugins/cache: Fixed "function decl. is not a prototype" warnings,
Mahmoud Mandour <=
Re: [PATCH 0/6] plugins/cache: multicore cache emulation and minor, Alex Bennée, 2021/07/20