Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp614717ybb; Fri, 10 Apr 2020 06:45:38 -0700 (PDT) X-Google-Smtp-Source: APiQypKjcN4yS9Ole5P4lhYx4NmYmuyYLO9gixWhCLAiwNYP9QCX1BVmqBa9YoLVBkQYfmBXuxwa X-Received: by 2002:a37:6852:: with SMTP id d79mr4186441qkc.388.1586526338830; Fri, 10 Apr 2020 06:45:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586526338; cv=none; d=google.com; s=arc-20160816; b=UlYrMTg+fjNfKOWs9gocpOLTfEOL0C6mAa4aGofKI8FkRfRoGCx6kmHfrOKOD/rOIJ Kd8jMaw3wCMALJm+BBCkW4EQD0K7FND0eNq33T35RvzNPzVZ+hvodEQ5mngGOe0TVSpx mY9HOqxd6Kag0yJxQGwMJYMasRYomSRQaDGu664cuDHLY5+J5r06rh7gFStPmUzv98Kc z3A0ZpHlpOspMAZHNwJsCjW6oA6XzhkcScr70x8ga1TVVfSwUCp35zKgwHSPcW9nqK9q ++qOjyS7iiwK/ovNNtA53viC7yFM6ifcjrt32wEThWVmNVdNqJbUC38y5YQ8le81D1Um 1i9w== 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:message-id:subject:cc:to:from:date; bh=Lg16mJqWKy/Zq9m80WzXVcOSAOZtuRaY85WndzKrWJA=; b=pY1iDt6cIpSf0xYlw3ZAALt0W8dY6QK2Y5LZg62ng1NvrcLbgr6nJo6wMXfUanvFgS xf//szDN9TXGmP9EinduReapmc0O5Gr2cLUdIjG6XymnkZVpgkgmgn5Jg7RLHTjBxgFV sgoSphFOJvEMWB47BEDgtzRJpby+kh0tPwtK2ARLynctPHDfjsQAsLkTxGet9/8RGqOg NQTEDq5aD1dNrkaA2WkdPEW057v7lNFbh+5QVfXc7RdNKfSKweMTN7sEY1d0UxT/Mpev QpRP1RcdfYENBThMJcmXRRjmQ3Mfq8zqdgcpmO0pknvXMd477B4/KKbOBZhfShIV/NCv XqTg== 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 x1si1075752qvb.11.2020.04.10.06.45.19; Fri, 10 Apr 2020 06:45:38 -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 S1726203AbgDJNo3 (ORCPT + 99 others); Fri, 10 Apr 2020 09:44:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:56948 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726009AbgDJNo3 (ORCPT ); Fri, 10 Apr 2020 09:44:29 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (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 ECC8420679; Fri, 10 Apr 2020 13:44:28 +0000 (UTC) Date: Fri, 10 Apr 2020 09:44:27 -0400 From: Steven Rostedt To: Jason Yan , Tom Zanussi Cc: , Subject: Re: [PATCH] tracing: make some symbols static in tracing_map.c Message-ID: <20200410094427.1f1ede4d@gandalf.local.home> In-Reply-To: <20200410073312.38855-1-yanaijie@huawei.com> References: <20200410073312.38855-1-yanaijie@huawei.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tom, Care to ack this? -- 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;