Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp623605ybb; Fri, 10 Apr 2020 06:57:25 -0700 (PDT) X-Google-Smtp-Source: APiQypJMWgo2XL/G7WxgiZe/Mji4hUHPsUQg4IEDOwyyM7v0Zk5k4UK0BGKFqJZmpCM4G1HC0r+8 X-Received: by 2002:ad4:4248:: with SMTP id l8mr5038775qvq.41.1586527045606; Fri, 10 Apr 2020 06:57:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586527045; cv=none; d=google.com; s=arc-20160816; b=hTFd1zRkasOIHA9HCZlg74MfCCrTozMcSWU/V0dM+VHaYm5gb4thVE6UO5yq5M3nT4 sUc5dujsDzivoFRuaGcEJDUudglzwztcUgs4vzCiyhcZtUrljaMKN5KSmLJk5OvtveeA KD6ZnR+8rPW7aR7h9nSqMCxtlh+/RNaysMn42cwRuMQjDVL16BcQCYSG4MjB3E+0rZYF fcFcelBU04WX/O6bK+zpS/+tMpMeACfK8n0SLVymbTKC2T01luK3CN7/HXngRteDaqse kNKjxhMQpiAcDxPh11RQwn5zywnpTEQ+dax2PIqAlsF4FPS1sDQMuYShTLzQDxScFw7J etMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=vZpqtnWdItriaDDBptetxPTcPzaIHs3Ie5she2edzMA=; b=nvRxGXhHCMSpF5BFNQ8xTWlQCByDcDEZmyDoplLFbXYCcmiPE9bN3xZcnhcSuwYl0C eknSz92Ru70co6q4Z63EUyTQmCr62ws/kOSP24xCGq0Ddi1RRrT8ZW5OdB9SfeFon3P6 9A/9DuqRbBoAza99IO0V/mE/J0/eeZmzWpMe8ZAldbOmHGVzE7lZ506DS6IuLKJFABLx 5Q2iQXciPpgNwtFCkF6t4D7S7jyMz92p3CxJ2+N5XVDsfCRPGpQwxlAKAe+atAsyXzod nW2lykGJjr3FFECPa5rcm/GObbXwZeYo/Fuo28BJsWETZ68f5Y1ItK8jdj+FLLFdwFMn Jrkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BGbueT13; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o23si1123322qtk.198.2020.04.10.06.57.10; Fri, 10 Apr 2020 06:57:25 -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; dkim=pass header.i=@kernel.org header.s=default header.b=BGbueT13; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726177AbgDJNz4 (ORCPT + 99 others); Fri, 10 Apr 2020 09:55:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:58022 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725926AbgDJNz4 (ORCPT ); Fri, 10 Apr 2020 09:55:56 -0400 Received: from tzanussi-mobl (c-98-220-238-81.hsd1.il.comcast.net [98.220.238.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5A7EE206A1; Fri, 10 Apr 2020 13:55:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586526956; bh=Wk8gfKcBbUSGznCJZW1P3U7gPvmkGvHYIMeyJethKKE=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=BGbueT13JtKonWUkqQwoa7dTTW6d9sRwQP11Rz74KAaaaw/AS6Ns46GS6Mggu9WMC rXxBJIwBpL3kvttbn0nLmDSglhLFc+ZY0H2IkNbHBcbCSCZWo1RPMa7fD95bzgTebW JurZW4sHyFLWIT7YL3lIoWi9edZ+8jds+/nLMSms= Message-ID: Subject: Re: [PATCH] tracing: make some symbols static in tracing_map.c From: Tom Zanussi To: Steven Rostedt , Jason Yan Cc: mingo@redhat.com, linux-kernel@vger.kernel.org Date: Fri, 10 Apr 2020 08:55:55 -0500 In-Reply-To: <20200410094427.1f1ede4d@gandalf.local.home> References: <20200410073312.38855-1-yanaijie@huawei.com> <20200410094427.1f1ede4d@gandalf.local.home> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2020-04-10 at 09:44 -0400, Steven Rostedt wrote: > Tom, > > Care to ack this? > Sure, Reviewed-by: Tom Zanussi Tom > -- Steve > > > On Fri, 10 Apr 2020 15:33:12 +0800 > Jason Yan wrote: > > > Fix the following sparse warning: > > > > kernel/trace/tracing_map.c:286:6: warning: symbol > > 'tracing_map_array_clear' was not declared. Should it be static? > > kernel/trace/tracing_map.c:297:6: warning: symbol > > 'tracing_map_array_free' was not declared. Should it be static? > > kernel/trace/tracing_map.c:319:26: warning: symbol > > 'tracing_map_array_alloc' was not declared. Should it be static? > > > > Reported-by: Hulk Robot > > Signed-off-by: Jason Yan > > --- > > kernel/trace/tracing_map.c | 6 +++--- > > 1 file changed, 3 insertions(+), 3 deletions(-) > > > > diff --git a/kernel/trace/tracing_map.c > > b/kernel/trace/tracing_map.c > > index 9e31bfc818ff..74738c9856f1 100644 > > --- a/kernel/trace/tracing_map.c > > +++ b/kernel/trace/tracing_map.c > > @@ -283,7 +283,7 @@ int tracing_map_add_key_field(struct > > tracing_map *map, > > return idx; > > } > > > > -void tracing_map_array_clear(struct tracing_map_array *a) > > +static void tracing_map_array_clear(struct tracing_map_array *a) > > { > > unsigned int i; > > > > @@ -294,7 +294,7 @@ void tracing_map_array_clear(struct > > tracing_map_array *a) > > memset(a->pages[i], 0, PAGE_SIZE); > > } > > > > -void tracing_map_array_free(struct tracing_map_array *a) > > +static void tracing_map_array_free(struct tracing_map_array *a) > > { > > unsigned int i; > > > > @@ -316,7 +316,7 @@ void tracing_map_array_free(struct > > tracing_map_array *a) > > kfree(a); > > } > > > > -struct tracing_map_array *tracing_map_array_alloc(unsigned int > > n_elts, > > +static struct tracing_map_array *tracing_map_array_alloc(unsigned > > int n_elts, > > unsigned int > > entry_size) > > { > > struct tracing_map_array *a; > >