Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5569596rwb; Tue, 22 Nov 2022 01:41:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf7JY5HxGlAtirtnWzxakbTmDYkxLybkvesIIyNV3IxtM7B1uOhDy00EA7/Ljlno7ivhE8Of X-Received: by 2002:a17:906:35c8:b0:78d:3a04:e41d with SMTP id p8-20020a17090635c800b0078d3a04e41dmr19728698ejb.39.1669110059878; Tue, 22 Nov 2022 01:40:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669110059; cv=none; d=google.com; s=arc-20160816; b=kcYDy9EMNkBYoucudHFpuMvNfSZVzA39DpCBfZGsJQYGL+UDxoMXjotOpqhuIziK6H 9SC0zlNoayHqzup69tIkhQIup6qmQxjh04ePgGRTBDnv11cr61LeAHyxo82rCyq3lqze 1X8xjaATSUXblw4zI2dcazh7weMaETIgPBgOyEIZLCZB1dWGSuaek6xTTQiheNCqL8MU 4vHwyteyVa5U5A8opJMAcvgwd2zQRJfarK2Co1SoCwedoo45VMHJDpKwZg456FW7/hHq bSxXj6GL2cac54ZQ2dzqOV49aioy0/E5FFOK1vz7QRugrznP5/AX23MM/1wkaflyFI3b SAvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:references:cc:to:from :subject; bh=4KbJ5RObZPiun5uJmJ6jTjNZYOfLtJIFIS02KqBbsU0=; b=KZ9jAlMPw+X6HqBYNbmGw8d7DffMCCjomh9tFDEoXxdDP/Iw7V84KsWRVTWPaYq02e yzPJDkzCaZEev2P5BGjo/Tb/BEMGod5edbligt0RuLl1p/n7lx2SM5B+7+vYwUitX0+p mc1iSFiBvF742xipClhGWI0MwIk2/abqWAcgvwavRhJ4SJVuHdqIk3ukJyIxC4shHk2G 6MqaKqPVPIjHT9e79zJfuF1p6/RDD2xXGaedku3wgnv7cSgGTuurCPUGfwNR7WuMQ+s6 R1VLAZPwc8esa2zKR09Gzn1qDw30Iw07IIUmYEe7blzM3Sw2wT72rM1C8gvW81yZF7Xo NVDQ== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f9-20020a056402354900b00462f85ee700si12242852edd.65.2022.11.22.01.40.36; Tue, 22 Nov 2022 01:40:59 -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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232132AbiKVJQo (ORCPT + 92 others); Tue, 22 Nov 2022 04:16:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231838AbiKVJQn (ORCPT ); Tue, 22 Nov 2022 04:16:43 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85182101C for ; Tue, 22 Nov 2022 01:16:42 -0800 (PST) Received: from dggpeml500023.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4NGdsm3PBBzRpNN; Tue, 22 Nov 2022 17:16:12 +0800 (CST) Received: from [10.67.110.112] (10.67.110.112) by dggpeml500023.china.huawei.com (7.185.36.114) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 22 Nov 2022 17:16:40 +0800 Subject: Re: [PATCH --next] tracing: Make tracepoint_print_iter static From: xiujianfeng To: , CC: References: <20221122091031.71248-1-xiujianfeng@huawei.com> Message-ID: Date: Tue, 22 Nov 2022 17:16:40 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: <20221122091031.71248-1-xiujianfeng@huawei.com> Content-Type: text/plain; charset="gbk"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.110.112] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpeml500023.china.huawei.com (7.185.36.114) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,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 sorry, ignore this. ?? 2022/11/22 17:10, 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. > > Signed-off-by: Xiu Jianfeng > --- > 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 47a44b055a1d..11a7214a2f49 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 54ee5711c729..d9b470a0adf2 100644 > --- a/kernel/trace/trace.h > +++ b/kernel/trace/trace.h > @@ -1941,8 +1941,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 >