Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5601829rwb; Tue, 22 Nov 2022 02:14:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf7M1IPb33VYsXA3sMlMKVyBUxVSZ5HGvGl/8MBCpxgitCJnp5bBf6r3R8cqINz2JtO4MwP/ X-Received: by 2002:a17:907:75f3:b0:78d:b046:aaae with SMTP id jz19-20020a17090775f300b0078db046aaaemr4711418ejc.218.1669112061721; Tue, 22 Nov 2022 02:14:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669112061; cv=none; d=google.com; s=arc-20160816; b=Deo5W92FHdL4ZV6/+CdhQhwQ3lIYvwg4gWVE29prfRaoprXPT4tfcLu5LPZs8yjb/q i9sHYTz2SVUO4YOHWQPluRQ1tHO34Z46IWisT7HvyrYjeJFe/93JG8dsWohsiFjliziw fIAK7qV5nXVSXlt98CL4aDpwyO4VespW+yjXRiFY9AOsIA8ZhbT6USqd5lL6szt4THoL q8OEx17zmLSWHwmmHS4MyH8eOdT6MQ7OrOdE6tplVRFsW37nJO6PJW01TWDZrtY23Y8B RaiS8S75EgvgzKfwe+MkQn2gGsMjdzy0eXfC24CvwTd5/gOsZUq5bS9d/GmdDpNHQ0IR rhsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=jRNT7OYLrsFF1fQ0JrA9mj48FMmdlSZFUDvsUZ8Vl9Y=; b=U2YDA+dfv1Xvmg6IZ29uneb4gYyeUpTQR7jQWk8mPvFxH+9Szsv4Se13TJYEdSbriD mHxcPOmQJ47EbVf+EUdbS9VqMmSsykZb5ieX1XxQhapCf8UV2lKBZrm9KVOGqfXZp/wb lZblkl7NTaTNtQu8up0qvFAWecWYM8An1VuZXKJ5GCI6MI5fAEdx0/nE1Ol5fROrQ6Xs cGbIOqzyjIOMjgBIEX5+s7MS4+cCybPUzXtVfdMM3VHm9fTpBzmcEd4asRV63+9VXUss f05pe8CYRE9vHm70+EtKBz0nuLozE+H9uPGjA+LqjUkiodm/QV6IO+d4wxRD6HaHr3q2 svIA== 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 sa31-20020a1709076d1f00b0078dfe6dc4d2si9242741ejc.33.2022.11.22.02.13.57; Tue, 22 Nov 2022 02:14:21 -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 S232849AbiKVJSl (ORCPT + 91 others); Tue, 22 Nov 2022 04:18:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbiKVJSN (ORCPT ); Tue, 22 Nov 2022 04:18:13 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C05349B72 for ; Tue, 22 Nov 2022 01:18:08 -0800 (PST) Received: from dggpeml500023.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4NGdqS3tcfzqSPv; Tue, 22 Nov 2022 17:14:12 +0800 (CST) Received: from ubuntu1804.huawei.com (10.67.174.58) 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:18:06 +0800 From: Xiu Jianfeng To: , CC: Subject: [PATCH RESEND -next] tracing: Make tracepoint_print_iter static Date: Tue, 22 Nov 2022 17:14:56 +0800 Message-ID: <20221122091456.72055-1-xiujianfeng@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.174.58] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) 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,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 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 -- 2.17.1