Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp331024ybb; Fri, 10 Apr 2020 00:36:11 -0700 (PDT) X-Google-Smtp-Source: APiQypIZ+qfqNbfN1smyfPDoKfJBUNhgzZob2yTTpo34CLzBFi1Ea+7QwySzo3CW4ExbMeQyAK2/ X-Received: by 2002:a37:54e:: with SMTP id 75mr2854277qkf.257.1586504171108; Fri, 10 Apr 2020 00:36:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586504171; cv=none; d=google.com; s=arc-20160816; b=phwGy7zPo3ZkahLMJZUrsjr08kkVPSglbo6CzOtqlRMvxZGeAc0YGB9FsxUhcsMru/ EOQC6CHgr42R1PvqXXYebSZMeF6g7NjRaumR1/yN3ePfcMy5sCamX8fbMY7tOWLva0fF kSTkd3594tcHgC2OAlpEGm5aJbeosHCfaXQ7yOw5UG4W5JgzEbTIQIi7xGoiVEoeB9hN ZmBxCc/peAx79KWXrCWiUu3/WDtkkejkv60fFHvx4+w1yJd8GjDpDtrwyOPz5sHF8HkZ 6TC1zvLkVdy0yHO2/dQRLkgVA1mn3VlNRYITtIQkmqE31IV5CanWTApGVuLfSKqD21Vm QhJA== 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=1Dj3Y8im4Fmjh+6Sv0CA+4O9ZvgtAZiB1tToVhgf77Y=; b=CTCPr4aK1g+2I6L8VCxxVMH2kCQXn44EYdf2VopHK6J3VDXaU5z81/yI3iXit6PboO qir3ZpNhB1blpXp4z95BVOqqrrQ66EOJ7TaYxQ/DNidl7vfHj6559w8HlfcviIN63TVk Qjs0pDDKRu8yvGxEI5i1vKs7ZBufZd50Yu2Qw6EkKmiSR8bxwQWMKfzYVXVTaGUZv+KJ S2fhr42t6C3KrMykqjTw8rw6VaiHyDi8LxJy4DZWcI+nyFQ6fH1TvMozB08Ta9j3hI01 3flJFupLscCKnageKVB2wM5NXeI/5DZdZR5RfVxbu5MtohqxbqA4aiw8Pbgd5DGmdflu kdSQ== 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 a25si631808qvc.16.2020.04.10.00.35.55; Fri, 10 Apr 2020 00:36:11 -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 S1726657AbgDJHex (ORCPT + 99 others); Fri, 10 Apr 2020 03:34:53 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:33018 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725912AbgDJHex (ORCPT ); Fri, 10 Apr 2020 03:34:53 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 58349A7B08DB092E22CC; Fri, 10 Apr 2020 15:34:51 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Fri, 10 Apr 2020 15:34:43 +0800 From: Jason Yan To: , , CC: Jason Yan Subject: [PATCH] tracing: make some symbols static in tracing_map.c Date: Fri, 10 Apr 2020 15:33:12 +0800 Message-ID: <20200410073312.38855-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.17.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; -- 2.17.2