From nobody Mon Apr 6 13:28:23 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3B43EC07E9D for ; Tue, 27 Sep 2022 16:01:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232661AbiI0QBy (ORCPT ); Tue, 27 Sep 2022 12:01:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232378AbiI0QBh (ORCPT ); Tue, 27 Sep 2022 12:01:37 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 694F93B71B for ; Tue, 27 Sep 2022 09:01:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 29168B81C4D for ; Tue, 27 Sep 2022 16:01:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ACF19C433D6; Tue, 27 Sep 2022 16:01:32 +0000 (UTC) Received: from rostedt by gandalf.local.home with local (Exim 4.96) (envelope-from ) id 1odD2h-00G2pH-0L; Tue, 27 Sep 2022 12:02:43 -0400 Message-ID: <20220927160242.688382747@goodmis.org> User-Agent: quilt/0.66 Date: Tue, 27 Sep 2022 12:02:20 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Daniel Bristot de Oliveira , , Zeng Heng Subject: [for-next][PATCH 04/20] rv/dot2K: add static qualifier for local variable References: <20220927160216.349640304@goodmis.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Zeng Heng Following Daniel's suggestion, fix similar warning in template files, which would prevent new monitors from such warning. Link: https://lkml.kernel.org/r/20220824034357.2014202-3-zengheng4@huawei.c= om Cc: Fixes: 24bce201d798 ("tools/rv: Add dot2k") Suggested-by: Daniel Bristot de Oliveira Signed-off-by: Zeng Heng Acked-by: Daniel Bristot de Oliveira Signed-off-by: Steven Rostedt (Google) --- tools/verification/dot2/dot2k_templates/main_global.c | 4 ++-- tools/verification/dot2/dot2k_templates/main_per_cpu.c | 4 ++-- tools/verification/dot2/dot2k_templates/main_per_task.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/verification/dot2/dot2k_templates/main_global.c b/tools/= verification/dot2/dot2k_templates/main_global.c index f4b712dbc92e..dcd1162dced8 100644 --- a/tools/verification/dot2/dot2k_templates/main_global.c +++ b/tools/verification/dot2/dot2k_templates/main_global.c @@ -27,7 +27,7 @@ * * The rv monitor reference is needed for the monitor declaration. */ -struct rv_monitor rv_MODEL_NAME; +static struct rv_monitor rv_MODEL_NAME; DECLARE_DA_MON_GLOBAL(MODEL_NAME, MIN_TYPE); =20 /* @@ -63,7 +63,7 @@ TRACEPOINT_DETACH /* * This is the monitor register section. */ -struct rv_monitor rv_MODEL_NAME =3D { +static struct rv_monitor rv_MODEL_NAME =3D { .name =3D "MODEL_NAME", .description =3D "auto-generated MODEL_NAME", .enable =3D enable_MODEL_NAME, diff --git a/tools/verification/dot2/dot2k_templates/main_per_cpu.c b/tools= /verification/dot2/dot2k_templates/main_per_cpu.c index 4080d1ca3354..8f877e86a22f 100644 --- a/tools/verification/dot2/dot2k_templates/main_per_cpu.c +++ b/tools/verification/dot2/dot2k_templates/main_per_cpu.c @@ -27,7 +27,7 @@ * * The rv monitor reference is needed for the monitor declaration. */ -struct rv_monitor rv_MODEL_NAME; +static struct rv_monitor rv_MODEL_NAME; DECLARE_DA_MON_PER_CPU(MODEL_NAME, MIN_TYPE); =20 /* @@ -63,7 +63,7 @@ TRACEPOINT_DETACH /* * This is the monitor register section. */ -struct rv_monitor rv_MODEL_NAME =3D { +static struct rv_monitor rv_MODEL_NAME =3D { .name =3D "MODEL_NAME", .description =3D "auto-generated MODEL_NAME", .enable =3D enable_MODEL_NAME, diff --git a/tools/verification/dot2/dot2k_templates/main_per_task.c b/tool= s/verification/dot2/dot2k_templates/main_per_task.c index 89197175384f..8c2fdb824634 100644 --- a/tools/verification/dot2/dot2k_templates/main_per_task.c +++ b/tools/verification/dot2/dot2k_templates/main_per_task.c @@ -27,7 +27,7 @@ * * The rv monitor reference is needed for the monitor declaration. */ -struct rv_monitor rv_MODEL_NAME; +static struct rv_monitor rv_MODEL_NAME; DECLARE_DA_MON_PER_TASK(MODEL_NAME, MIN_TYPE); =20 /* @@ -63,7 +63,7 @@ TRACEPOINT_DETACH /* * This is the monitor register section. */ -struct rv_monitor rv_MODEL_NAME =3D { +static struct rv_monitor rv_MODEL_NAME =3D { .name =3D "MODEL_NAME", .description =3D "auto-generated MODEL_NAME", .enable =3D enable_MODEL_NAME, --=20 2.35.1