From patchwork Thu Nov 24 14:50:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 25606 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp3442828wrr; Thu, 24 Nov 2022 06:55:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf57DNf5bhBmX7N3+A0O4onu576aO9UbWbSYFDsGv06hmjM2VkMgGcWeGJiIEyqj0l5AKhFg X-Received: by 2002:a05:6402:1399:b0:461:53b0:2ac0 with SMTP id b25-20020a056402139900b0046153b02ac0mr29740652edv.153.1669301732652; Thu, 24 Nov 2022 06:55:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669301732; cv=none; d=google.com; s=arc-20160816; b=KQiJYw8Wvn7OnHWkCPRZjCWfWdnrm+QxkLBpeJ/RCmt7l2VeF8WP8y5XH+zq2KDvIi WDHPz1MQ4jFfttWOsdNz+s9M6o2l7TVq7Ezo587bBnqAJSBMtmcrK7yPypZmLq/oD0ny lVDGVs7zEspkhsMfJVb+0xDrmHbdIRr2iFtsAZm4akuHWkgrys2hJdQLjeyrjcfe8fzL B9B6FrP4MLFigJ1qbGgyU9AsBrG39tfPrmGCboCtI0/UvyUll+OfTIPIRLRcirgspbH5 EVViTsY50HeG2U2tEWVdLEiUIp1FNefRPFRMBbNxW0ByJYUEcx9LBxzo/xe1dYjYsz64 cFRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:subject:cc:to:from:date :user-agent:message-id; bh=wSi3HJ51/F803Q2W+aK0mFNrJkRhMEc3clpd+KOOrs0=; b=iq3oJwRL3QJkZaAHvIFV3A5Pl6GQpgQFrgzABxcg2HkZuRpE4l9bTKSVTJGxeTGT4s d+jfY4dWbGpBjsnxAK4+ETMl9RlM6cLzguEsqa/RA9X6psny9UejwtVxc2+LxZzB6HC1 qya8uhf/YWktNn4EM63lAGbHhilhcdADXI5oTjh/Ua3aHQqitPgfhD/towI4VW1+aNBV XJR2F9oxbrViHkS98yAUnTErl9hAOEspqEp0pXS3bxdVVfnvjQBACEQ7Qb2NHlQVhwr9 l2sir9n6OCS+1293nVQED25jf9ADn1WGiFvvtMISqqhxKGjHQ5Lrs8KwXzPVm9EUEHZl qxqQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k14-20020a50ce4e000000b00462e628189asi1155100edj.304.2022.11.24.06.55.08; Thu, 24 Nov 2022 06:55:32 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229880AbiKXOvn (ORCPT + 99 others); Thu, 24 Nov 2022 09:51:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229843AbiKXOvE (ORCPT ); Thu, 24 Nov 2022 09:51:04 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15514134F25 for ; Thu, 24 Nov 2022 06:50:52 -0800 (PST) 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 17A9EB82839 for ; Thu, 24 Nov 2022 14:50:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B4651C43151; Thu, 24 Nov 2022 14:50:47 +0000 (UTC) Received: from rostedt by gandalf.local.home with local (Exim 4.96) (envelope-from ) id 1oyDYs-001X6T-2h; Thu, 24 Nov 2022 09:50:46 -0500 Message-ID: <20221124145046.712465586@goodmis.org> User-Agent: quilt/0.66 Date: Thu, 24 Nov 2022 09:50:28 -0500 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Masami Hiramatsu , Andrew Morton , Xiu Jianfeng Subject: [for-next][PATCH 09/11] tracing: Make tracepoint_print_iter static References: <20221124145019.782980678@goodmis.org> MIME-Version: 1.0 X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750389733604770999?= X-GMAIL-MSGID: =?utf-8?q?1750389733604770999?= From: Xiu Jianfeng After change in commit 4239174570da ("tracing: Make tracepoint_printk a static_key"), this symbol is not used outside of the file, so mark it static. Link: https://lkml.kernel.org/r/20221122091456.72055-1-xiujianfeng@huawei.com Signed-off-by: Xiu Jianfeng Signed-off-by: Steven Rostedt (Google) --- kernel/trace/trace.c | 2 +- kernel/trace/trace.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 5c97dbef741b..93a75a97118f 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -85,7 +85,7 @@ void __init disable_tracing_selftest(const char *reason) #endif /* Pipe tracepoints to printk */ -struct trace_iterator *tracepoint_print_iter; +static struct trace_iterator *tracepoint_print_iter; int tracepoint_printk; static bool tracepoint_printk_stop_on_boot __initdata; static DEFINE_STATIC_KEY_FALSE(tracepoint_printk_key); diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index d42e24507152..48643f07bc01 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h @@ -1942,8 +1942,6 @@ static inline void tracer_hardirqs_on(unsigned long a0, unsigned long a1) { } static inline void tracer_hardirqs_off(unsigned long a0, unsigned long a1) { } #endif -extern struct trace_iterator *tracepoint_print_iter; - /* * Reset the state of the trace_iterator so that it can read consumed data. * Normally, the trace_iterator is used for reading the data when it is not