From patchwork Tue Nov 22 09:14:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiu Jianfeng X-Patchwork-Id: 24221 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2102564wrr; Tue, 22 Nov 2022 01:41:30 -0800 (PST) X-Google-Smtp-Source: AA0mqf4nTHGWUHO8S6/OWaK7yYi6NsEyjE9HIey5g0G7/JVIHmRo+w9HIhwo/gx/SjB63sSLz8ca X-Received: by 2002:a17:906:708d:b0:7ad:b45c:dbe7 with SMTP id b13-20020a170906708d00b007adb45cdbe7mr18714899ejk.617.1669110090134; Tue, 22 Nov 2022 01:41:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669110090; cv=none; d=google.com; s=arc-20160816; b=BM5w+SX+5zXt330Up4H0jzCpg7SVEyNS4pl3CPImQ0k/Kf56hOogFa4Mw58acyBbb6 FgYux3CWa1i5ILXH7UO07ml8Xxa6qCsk4oR0foUZz6Vf8RHt7ZocxfhGZXjkp9PmyHCK /Abi0ou05hKUd2sp/mOq7GFHE8MLzNrDWnRrR9woBvHJdPAGq+9BYuboxzufemACFSUF cGN9yjvCY0iJ4CbfM46lQM+nMP5OlDU+45aJBKRx5Gerzi/yw9fn6qCvXq9Vqs5oISGh YIdDi1rtv+rKKAvol4cKo3kNMqUjzGofOUGjEpIJOkneutg5Lzn33ouK9S1nJkWDcQ7U atnA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ne1-20020a1709077b8100b007a96e504c7esi13091044ejc.753.2022.11.22.01.41.06; Tue, 22 Nov 2022 01:41:30 -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 + 99 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750188579650181008?= X-GMAIL-MSGID: =?utf-8?q?1750188781565851589?= 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