Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3890727rwa; Tue, 23 Aug 2022 12:00:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR6+RriMZFJwjfw/zLIhMUA9M+Ct0so7DltUVInLBavCrxzAtM6Q72CrXqQNFIofBMUSv9Rw X-Received: by 2002:a05:6a00:1507:b0:536:fb3e:7e75 with SMTP id q7-20020a056a00150700b00536fb3e7e75mr4138052pfu.44.1661281211014; Tue, 23 Aug 2022 12:00:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661281211; cv=none; d=google.com; s=arc-20160816; b=ZQPwKa3omB/r6C9kvubzPnkvCg2FUy/uCHbBbBTJ84Dppwrw1/nmOkAh/9O3vXcBuL 3i5UjYXDmjwenms5tQMj1eGopBXVnfq8B2Kp0hhUtT8IDYrWxiMMkGvBzsRhAFGJZmf8 6EbAP/WmriBGOEgmjePZHdHs092Ra2Onrf72is9pyUeL0oLxfq+nRzjoyersL+C7/sPP CHL5MquyUtgQRrm1yYyKzr6rZ/eb58owVV5RhCSfqHZHkEglY3IdW4i9/hEyHpcaOUbL lPlB3B70E2qGd1hHnAJDoiXRafT35nm4mSFDifwhhkrCj4/R0jgmUeZOFDIx6HNeanw4 LBow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=MRekwmIGR5gpvpz6OBI31uaDF4jDDnXXjMW7NVCEJyA=; b=hce3Zb4pzH/MtKh/PNinf9ai4sCC+h6fGQOKIJs7ji/Tuih9V2bmMBPutV0Uol2bYy GCDiU3M7uPVRJtyPIbZ0mkqx2EsWIvfRz7sNoTqe97UCxhSQOdO1NR+rPFqOrb9zMROH rOorB+ValDU6Jur2NXASTDtX4oEDW8EADWmuG2HwHnQUcE9Uqds7FXwQklTE4CsL3TSx mkwBSNmetBqL1u7fs6QNXGSj70xbV3gFd3buM2PjOT0mktP9KrwJrBx54/VNRuhSuyzF V2wtxUk80brHRkfyAzBnqKkg9EnLjyrFkWKeBPL/z7IPkRiaRb0atrT/LEiWG+MGCOyG OKtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RUzqgFBg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t10-20020a63460a000000b0041b9a820023si16413517pga.264.2022.08.23.11.59.59; Tue, 23 Aug 2022 12:00:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RUzqgFBg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230373AbiHWRh0 (ORCPT + 99 others); Tue, 23 Aug 2022 13:37:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231856AbiHWRgy (ORCPT ); Tue, 23 Aug 2022 13:36:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49C9B7AC09; Tue, 23 Aug 2022 08:20:37 -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 dfw.source.kernel.org (Postfix) with ESMTPS id E38BB615E9; Tue, 23 Aug 2022 15:20:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00D8BC433C1; Tue, 23 Aug 2022 15:20:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661268036; bh=R3JCBvCuFVOcgv2cpaHqmIPuKQnLpMXkz7+RnJAPMTY=; h=From:To:Cc:Subject:Date:From; b=RUzqgFBg7s4w5fBJZ1jilhw+kO3ADxqZl5YSqKS2ZDMuFGZMYXAr+bkFL8HFANyeH eUmVS/M4o9dpmQrJrZ01YErwvtcEr9oP9HB9EsObVFJP/p5j+U/xuD9VXwBh9QRQ8q pDpCBXgMucuqCCk0nCWwZ3MaOIxK7+yYFXTDh2x+DFnD5hjJ09f9TxAFSeEO0+5y3P LYpkXj8BCo6+xV84EM8HO0WCDTo8bbZpXkv/JXwVXKeE2XQ1G6/OBE28aDLNrjYvzP 5BftSS5MxAI9Sx9VR8C6SxyoqxzO/Hyodl3CF4z2nowJyHl0U8efqm+DQNbGHxVP33 jkReXKEUibUoQ== From: Daniel Bristot de Oliveira To: Steven Rostedt Cc: linux-kernel@vger.kernel.org, linux-trace-devel@vger.kernel.org, Daniel Bristot de Oliveira , kernel test robot Subject: [PATCH 1/2] rv/dot2c: Make automaton definition static Date: Tue, 23 Aug 2022 17:20:28 +0200 Message-Id: X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Monitor's automata definition is only used locally, so make dot2c generate a static definition. Link: https://lore.kernel.org/all/202208210332.gtHXje45-lkp@intel.com Link: https://lore.kernel.org/all/202208210358.6HH3OrVs-lkp@intel.com Cc: Steven Rostedt Fixes: e3c9fc78f096 ("tools/rv: Add dot2c") Reported-by: kernel test robot Signed-off-by: Daniel Bristot de Oliveira --- tools/verification/dot2/dot2c.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/verification/dot2/dot2c.py b/tools/verification/dot2/dot2c.py index fa73353f7e56..be8a364a469b 100644 --- a/tools/verification/dot2/dot2c.py +++ b/tools/verification/dot2/dot2c.py @@ -111,7 +111,7 @@ class Dot2c(Automata): def format_aut_init_header(self): buff = [] - buff.append("struct %s %s = {" % (self.struct_automaton_def, self.var_automaton_def)) + buff.append("static struct %s %s = {" % (self.struct_automaton_def, self.var_automaton_def)) return buff def __get_string_vector_per_line_content(self, buff): -- 2.35.1