Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp327619pxb; Tue, 19 Oct 2021 03:51:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrR8C69EWICvYT0jUFJ8gNX6dU8R+3ht/FcnLSKNuCL3I3a76n0hYNErFW1bMcwuv870cs X-Received: by 2002:a05:6402:b15:: with SMTP id bm21mr52683848edb.380.1634640697962; Tue, 19 Oct 2021 03:51:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634640697; cv=none; d=google.com; s=arc-20160816; b=prDeSUggcKjfSHDO/RGokroBRAhXi6+u7XdMVaGWUbR8NkJbpnXyO91nVGRq7xoKzA s+3maLYvCCkwtMR/XjTmpp6cf3lKLxTnOHbl3zPoLDKLc62aRIROz9myNkJgGh7hFGz4 JSvkibBwvz/Em/sfVK9cvcGnx++/uU9mVa92Ozjs+viSR5i5T8kL6Ll14azHK1McxZI8 zR6QYHHVD8BNdXjEWvriV0lUEFLqhjHnQs43GgzES+uUvEAEmEAJFglt4aBTV4XYVgcC ZxhVaA9PpvnzIr4Yw5dQ74gvTq+U/yXDtQLRAW3qGrq9eCHz/DnuYfohKp+qson/v3x0 Bycw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=NRaBiaEf61rYBxHI/VwajDIGhLhHLOZDlJ3MszV1tI4=; b=TVrCMvcu9R7z1yylucohsGrp2RFYi3wJuYe9/eG67MdKXN+QJm9C0RNn+Yo/3WWEFI 3revyshI8GJNJzk/Wa0NV61oks+6M+MvI96/bTBbu7dn155aP7DmwDDpAzOpDUpwOEmn 3q8ZASIw1o0pCjsJdA8cull/lkGwTyltX+rP2N2ih0vteKJP6SBPvFDjwd+E+XhueJDm wpS7JbnJ8T8zJ52sBhrMhDBrQ2m2tJGujBdD7ticCfUujsLqI6dYyGWQMfWIJF+pv12Y 9/38UXusvtmG1F0JGXv+wdKJwlQLQYjhldTw0FbYog8j9G9HWk5CarsfViS074yZ0QAf vcEw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nd4si29631107ejc.515.2021.10.19.03.51.14; Tue, 19 Oct 2021 03:51:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235283AbhJSKvY (ORCPT + 99 others); Tue, 19 Oct 2021 06:51:24 -0400 Received: from out30-132.freemail.mail.aliyun.com ([115.124.30.132]:53034 "EHLO out30-132.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235282AbhJSKvX (ORCPT ); Tue, 19 Oct 2021 06:51:23 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04423;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0Usued8d_1634640540; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0Usued8d_1634640540) by smtp.aliyun-inc.com(127.0.0.1); Tue, 19 Oct 2021 18:49:09 +0800 From: Jiapeng Chong To: rostedt@goodmis.org Cc: mingo@redhat.com, linux-kernel@vger.kernel.org, chongjiapeng Subject: [PATCH] ftrace: make ftrace_profile_pages_init static Date: Tue, 19 Oct 2021 18:48:54 +0800 Message-Id: <1634640534-18280-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: chongjiapeng This symbol is not used outside of ftrace.c, so marks it static. Fixes the following sparse warning: kernel/trace/ftrace.c:579:5: warning: symbol 'ftrace_profile_pages_init' was not declared. Should it be static? Reported-by: Abaci Robot Fixes: cafb168a1c92 ("tracing: make the function profiler per cpu") Signed-off-by: chongjiapeng --- kernel/trace/ftrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 655a7deb59d6..f89d25125d97 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -576,7 +576,7 @@ static void ftrace_profile_reset(struct ftrace_profile_stat *stat) FTRACE_PROFILE_HASH_SIZE * sizeof(struct hlist_head)); } -int ftrace_profile_pages_init(struct ftrace_profile_stat *stat) +static int ftrace_profile_pages_init(struct ftrace_profile_stat *stat) { struct ftrace_profile_page *pg; int functions; -- 2.19.1.6.gb485710b