From patchwork Fri Jul 23 17:03:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 484648 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp1523077jao; Fri, 23 Jul 2021 10:13:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyF9K8U2sI9BZIrDGUpDIllcw3iUZgAQO7CGAS6qhDic4YgzkxYGCemnRDJcmZ2L8khv+kL X-Received: by 2002:ab0:29d2:: with SMTP id i18mr5791144uaq.40.1627060395434; Fri, 23 Jul 2021 10:13:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627060395; cv=none; d=google.com; s=arc-20160816; b=wvb28rUqnIIhP3JoC/XVy09OaTm9PhI3cDHNxCAkplBquSa5Nde21AdfPpdr8dT/u6 kNiM8fGU9663Y0+HJAhFzQcaZeC6N7ULbLhnd+EKLw6X/BuHZ1dV3WVe5HtMeCgaATph mIzDsad1rf8qMIEsIXT+k3JkCwCOb4u8ra92R2MdH69VLmBu77JDgjMPfcV8odxlUXpZ E/3+7jOIYSoGk6KxbRDc5I7J84aYxfyM+fI+Ies8seURqOaBWSVJpe8hsJhPt1gkQ9gr Ob4E3ix2SjKdwl6S3814f3YDCLwbRYWn6keCLjYQWFKYwIokfEns5K5dbGJKX651oT1H vHzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=xPhq1bIibdgmNHpoXhVrPGALc+WLIK/v7krtBEhhmz4=; b=Y0kOEKPyAQkawMvySFCxG7KEUeM5gHTsZCCCuQ28Yarw5WIDaWFX9Kc8SxCxXKnYWn VYDV0cPhyn31tr+v5Thzal8S2oo7zrGJ7OTekzKZifLpm57MmBy5FpiYe5Io8FQConRn OyeKlDHYM7jZ8jZI0A9F1ml67mPgxzgBrfBdVBCUhl7UjK4r94WwFw6IKnLznP3Mwrug ScTTscuQRiNv6jzmfvtUycLo1VgDQDB7S/VSducvekp7W5xKipwO/XbIM5VSuo71vNf4 DKiFNLGmUUOdMMqJ0HWbKKgueUVnBC3Z+eCB37WqoBAfLceyybsecRX/IBfWFt1wDCJK vOPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=CnLcCf4M; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id i45si12175752uae.233.2021.07.23.10.13.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 23 Jul 2021 10:13:15 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=CnLcCf4M; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:60936 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6yja-0000vl-P7 for patch@linaro.org; Fri, 23 Jul 2021 13:13:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58724) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6yby-0002l3-AP for qemu-devel@nongnu.org; Fri, 23 Jul 2021 13:05:22 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:42973) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m6ybw-0005yk-OG for qemu-devel@nongnu.org; Fri, 23 Jul 2021 13:05:22 -0400 Received: by mail-wr1-x42a.google.com with SMTP id j2so3059109wrx.9 for ; Fri, 23 Jul 2021 10:05:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xPhq1bIibdgmNHpoXhVrPGALc+WLIK/v7krtBEhhmz4=; b=CnLcCf4Mhmuj55Qna+0UfkcjPPf8/KNki2faOEi1bT6ytLQk9Qfpv/OcpGX0sH7z23 rpDxeULc0b7MuhoRIoHiKBU+ACFUL9QuvrSrZ7TJocQe0JwF2XoR73IVzDBAdwbxGnrX j/aVtW2XVAix/Fe1mYto+Rf/7sDWI+Y/IkJzsDlgYp9btMYR+gEa3wZ0y6K17AgsyU7i jquNKtjbU40yesw4RWbW+tCGbforgufbAvHkbFbqSkakM4XqbRSCato5U9GBwKSXeD6j qOM7brFyu86j5yIqYb+sNiz9X0MmObhzYirQ9nLdgSz1ob3keOnTtKodpBzWXSF7nwmq a+Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xPhq1bIibdgmNHpoXhVrPGALc+WLIK/v7krtBEhhmz4=; b=N/3bqae5ucJ9vYcBUE1xWBXgAYKS7R+2GdvIJlstASpWh3h/+lvvwgBxW2pkB/6soj 1P4XUb+s2NtFk58mVlXXQd97vgV2uaHl19R9HcQokWUUDhRgYJX7J7SLnqbRhwENmW5s FOLSPDhczrcLLFsS2B9elrYG9j2I2a60sg+r1ZZYcRvLHyPKQoQryq4tYdTEX2Y3Z9rK oPSWac5+rYHdxVyqOKK5iVPj6xeukxslQyyXTDQqw/txs9juaM7T9BrXa7E5ceADQacY tSRjN1Qt+A5PrsLNGHGbd0jRRvf4sEDr9+VdGsEwli6+pgqBa6oK67BWYNx1l+DVRnSO 9QTQ== X-Gm-Message-State: AOAM530wmrc7ga1uOzKDfBpvMzWxRzUU9zboVXWKtBatgBqS7X87oQSP F+C9G5ym1X2+Jf2Ba1aqJDX60w== X-Received: by 2002:adf:ed0f:: with SMTP id a15mr6248873wro.78.1627059918163; Fri, 23 Jul 2021 10:05:18 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id g3sm33489581wru.95.2021.07.23.10.04.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jul 2021 10:04:39 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 53F3A1FFAE; Fri, 23 Jul 2021 18:03:56 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Subject: [PULL 23/28] plugins/cache: Fixed "function decl. is not a prototype" warnings Date: Fri, 23 Jul 2021 18:03:49 +0100 Message-Id: <20210723170354.18975-24-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210723170354.18975-1-alex.bennee@linaro.org> References: <20210723170354.18975-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexandre Iooss , Mahmoud Mandour , =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Mahmoud Mandour Signed-off-by: Mahmoud Mandour Signed-off-by: Alex Bennée Reviewed-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20210714172151.8494-7-ma.mandourr@gmail.com> Message-Id: <20210720232703.10650-24-alex.bennee@linaro.org> -- 2.20.1 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: