Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5567687rwb; Tue, 22 Nov 2022 01:38:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf43e7BSMy46vl5ZEVSRKIq5gqKNk3fAuxd/cMsM33dvSwNVrRzE3JutJTCrDtx+1bWbyTaK X-Received: by 2002:a17:902:e80f:b0:186:f4ba:a817 with SMTP id u15-20020a170902e80f00b00186f4baa817mr8286639plg.97.1669109936385; Tue, 22 Nov 2022 01:38:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669109936; cv=none; d=google.com; s=arc-20160816; b=e/78LtQcWQRy1qWatsIIwHO8rt0rdxWqRQeZNb+UB63fBrEqb0tK4xkoMWXSspNTCN cmbXjvjg8TfaiUM3IPdtOvoNNhet0nbLKO1T7ov44fVT9UD8YDrRT/YRRB+6EYEFhdKG KG/86ADKrsrMb0zmHcb4h8bKi+vLphkTlonp4/tIYyKoK0kwl7nbYJ0jRF8cHFc5pIPw l2LC7xE7kTj9/G08QAHVUEyDLGAAk6/m8i18kA70XrFWMyIbnfFH7D8MYKyoqq747rsW ozIGAAvvd36c1A3DIU6SMm+dRcGhXMYEJo4d51FcFDejfjwR79FBuK/Y79n07i+UfF40 CdMw== 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=h5ysPig2xV30o9utnoKEvAPq++6y245gi5bg0B7AMgxYlAnVwE0GI0UO+uocMgFUlL vP+28ZibbafVUDhtMMPJU2uY8Ti2x5qOtKU+p24INKVa34lujl3UD1xIOmL3uTWMPPzy l7cpWat3yEIfo2xRygRl02skxXFal50kLXcQMMHV5+xkefDnLFDa4LaloXAlOWlDNlip 8fufj6jrXCmZd42MlYrCw+G6Ltha44i+MUS93WvkuBOTZ2sE2JVGb2jQMy295V5fsuxP hKxgvhrPHn1U0mIvWKNcgzx0DuWiYI/oFOL/83OFnUv5XAh14h4doEh0n2aAZtwisB52 zl/g== 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 t36-20020a056a0013a400b00565a581ecc0si15467767pfg.11.2022.11.22.01.38.44; Tue, 22 Nov 2022 01:38:56 -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 S233095AbiKVJNl (ORCPT + 91 others); Tue, 22 Nov 2022 04:13:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232786AbiKVJNj (ORCPT ); Tue, 22 Nov 2022 04:13:39 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 301FFC3F for ; Tue, 22 Nov 2022 01:13:37 -0800 (PST) Received: from dggpeml500023.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4NGdp341R1zHw6Y; Tue, 22 Nov 2022 17:12:59 +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:13:35 +0800 From: Xiu Jianfeng To: , CC: Subject: [PATCH --next] tracing: Make tracepoint_print_iter static Date: Tue, 22 Nov 2022 17:10:31 +0800 Message-ID: <20221122091031.71248-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: dggems704-chm.china.huawei.com (10.3.19.181) 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