Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1097238ybi; Fri, 14 Jun 2019 08:34:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqwbVsrwIPf+QCwmS28j3RSSNJ8LynPSqGGs7siibbChYWwOfzBHEdQ9HmFWn6eH6HVtOMoe X-Received: by 2002:a63:68c5:: with SMTP id d188mr37108355pgc.429.1560526473096; Fri, 14 Jun 2019 08:34:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560526473; cv=none; d=google.com; s=arc-20160816; b=tb2CQls5g6YaRAe6alh0n51ZlDK0foj31aN6q03xtsbzoEsOVqJtT/x6F4hWnQ+5Fz 4ILwCEUUTA2vzL1FRedsFM4ffoGNC/QfZ9Ku85raFWORnioWN1fRTVOeWplzciNtIoYx S7qd9uTl+0fkcqOxqHN1Urf0hukydVPpmwveKDgSni5RuBCMtCRVq9vmkUQnZZAkwoev FL92mScAbaZWW0NRv76+Bq7U/E0FsUkxtG0Avfb/1y6g3hFFfBAxx5G0ygYK89u8o/ep OvPHW8MgVwmjsIWobYMEblF6OW9Cd/ZM8Fv8hA0FI47NZBKrEbmST/jJcvJ/68TSXKWh saRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=4pxvZ2kxtEhBHQ+JLOluCXqFhkTzbc007hFKea40/to=; b=hnNQEIY3dNxjDtcdkCCY/+lUoS9VfgRsmZuQFo6HPusG3dlH9b5uoCdzlh7LtODqFt bcmQ0XAmvqZAkgEKEu0oFlxogSTxpxXURTeCu56V/Gm8hAsS0oYqK/qn6aKaVp62nYmc +1hDkc94SIeKzjE0c/KiBgbvDkvggLQCUaxHc4gl3QCIJGX7NJSO3V9SKPexi2hQb2S8 v0RrF2iovwpp6wTaDuBnuXy/iH2bmnhKKrtLAR1U692Y3adCXewn91x74QYtpmZjISGm Jwxj8NHBbEBwW7l8jPfDa+RTrxIcl8ToA/4OW4bsxISXD0Ij1XdfRCmP87lT1eXgUh1K mykA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q17si2491607pll.285.2019.06.14.08.34.17; Fri, 14 Jun 2019 08:34:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726719AbfFNPcu (ORCPT + 99 others); Fri, 14 Jun 2019 11:32:50 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:37620 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725780AbfFNPct (ORCPT ); Fri, 14 Jun 2019 11:32:49 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 79BD5675A9989552722D; Fri, 14 Jun 2019 23:32:45 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.439.0; Fri, 14 Jun 2019 23:32:39 +0800 From: YueHaibing To: , , CC: , YueHaibing Subject: [PATCH -next] tracing: Make two symbols static Date: Fri, 14 Jun 2019 23:32:10 +0800 Message-ID: <20190614153210.24424-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix sparse warnings: kernel/trace/trace.c:6927:24: warning: symbol 'get_tracing_log_err' was not declared. Should it be static? kernel/trace/trace.c:8196:15: warning: symbol 'trace_instance_dir' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- kernel/trace/trace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index a092e40..650b141 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -6924,7 +6924,7 @@ struct tracing_log_err { static DEFINE_MUTEX(tracing_err_log_lock); -struct tracing_log_err *get_tracing_log_err(struct trace_array *tr) +static struct tracing_log_err *get_tracing_log_err(struct trace_array *tr) { struct tracing_log_err *err; @@ -8193,7 +8193,7 @@ static const struct file_operations buffer_percent_fops = { .llseek = default_llseek, }; -struct dentry *trace_instance_dir; +static struct dentry *trace_instance_dir; static void init_tracer_tracefs(struct trace_array *tr, struct dentry *d_tracer); -- 2.7.4