Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1342244ybi; Fri, 14 Jun 2019 12:59:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqywhqvGLJXfLWBqy3NvlX76zTwF+MZ0UBY83P8RXpsJ1tKFDf/bJpN39PVzRfJdxLuqnpYa X-Received: by 2002:a17:902:8f81:: with SMTP id z1mr28507784plo.290.1560542390008; Fri, 14 Jun 2019 12:59:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560542390; cv=none; d=google.com; s=arc-20160816; b=xhasdAzmMyDfJvzw802QBP7Zr5EznaZ8yMngpewT/7KEFNzLadiGBzlyRWDwWoWJ1d hoP1R4mvmobW2eP5FNyJrU6unngo7J5ktRG47dCffGdvCf8aXOwXC53HDvBfjJi970dI RWMktfjcVm771Yqbw8Ia6biLKfBxetEdh416bwmPcHWc71L3gdVvuOkKnGk9aZjtHroo gFFRECnAII2KXmvUe1PV2N51AigEyp2gGDtJUuWaRB0LCVtfjTdvKVzU0i8QgtmJ8QJN osppW5z8qIDVdlNg5UCVhEkRdXrQi8Z4KfB0zORSKuBtmTxOda8QSL2kN01WA7SiSv8F xzVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=KYNE0kpbhQq3zQCEcWFuZ347BL3FAIUKcDqC5gjGgsU=; b=PScL7tuNRpqTZd9ul/RMD6y57l0Qewg+K14/ghpqcYaFUTx0LUZkvapdXCBdsVLy46 UDNNIKHRAS5ZFjlEdiCCrZv4geW8mm8Yxzfo/eHG7xshkE2xklbITDN0FthvrBNIetvs kpR5LhjGsFnYYLKOhsGIya3MHBf/VI4EdANyY3FPcmg2bLOWVb5SwtEKQ3EQAGl+JIcA JmbO9UhN2wB7t201HSpxw5j02rGxN8J+kejAzflVcMBUCQP6TmdBLIdjCrDOrR7ABHks QZ1svQ8q4+CngpSPrxlJTrteUngDk7rc8+SuubZ5t9TC49ypHYpHF2D+48ACeJt8Ojnt Q/2A== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y4si2911332plk.357.2019.06.14.12.59.34; Fri, 14 Jun 2019 12:59:49 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726028AbfFNT6x (ORCPT + 99 others); Fri, 14 Jun 2019 15:58:53 -0400 Received: from mga07.intel.com ([134.134.136.100]:63227 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725802AbfFNT6w (ORCPT ); Fri, 14 Jun 2019 15:58:52 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Jun 2019 12:58:52 -0700 Received: from tzanussi-mobl.amr.corp.intel.com (HELO [10.254.101.2]) ([10.254.101.2]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/AES256-SHA; 14 Jun 2019 12:58:51 -0700 Subject: Re: [PATCH -next] tracing: Make two symbols static To: YueHaibing , rostedt@goodmis.org, mingo@redhat.com Cc: linux-kernel@vger.kernel.org References: <20190614153210.24424-1-yuehaibing@huawei.com> From: "Zanussi, Tom" Message-ID: <8c64a9e1-03c5-8716-9151-23fc5f5f645c@linux.intel.com> Date: Fri, 14 Jun 2019 14:58:50 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190614153210.24424-1-yuehaibing@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi YueHaibing, On 6/14/2019 10:32 AM, YueHaibing wrote: > 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 These look fine to me. Acked-by: Tom Zanussi Thanks, Tom > --- > 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);