Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp268192pxb; Thu, 25 Feb 2021 01:51:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJxkD8rs+PT1q96ve2cMqbad35MtJ8ONLJxs6MPWEhLfeo2gqTGRfOMYVQevaWWH1xMaAnyS X-Received: by 2002:a17:906:66cf:: with SMTP id k15mr1864737ejp.296.1614246683768; Thu, 25 Feb 2021 01:51:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614246683; cv=none; d=google.com; s=arc-20160816; b=eNKPVlDyDcrGcf8t5uZHhqC8N6hwFrd1grKQYFFoUfEHRmrhX6LoNL7gCrr/8BVSrv /j6qE4Ifvz5ssEO+kfyTve3OLqNfkZQDeioRsI50BWUB8OQZWOHLANzXxK/qrkFeEkYi 5eybbG7O5FfDIPVmLkpc7pdnX5zxP6pIqeNfhl5EDjNeTQQkknsoBi8wDtRBRCA56BsM qODM08dAMrsaJXHRAVUvaYAaC/coNGh9aJqh4ksGKp0yUtyhIPCAukNkuN8uXdtJWHK9 TQ9hegO/X0W+xdN9cm9jUr0itMIgLaM7wQm4eLF0yY9KcvBEPprY+SjZ6ASSLujIQIdZ jIYA== 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=dym3INvPZ/Xc5ophAZkC7+j9g08VtMsv6eao5d8RJtg=; b=LmbbloC3m4L33V8cezTMfkQ3qy455E7OsPX83Ezf0lNIOkSyD7E12y2oQRPgv/26dA y3h6l5+dTYomry/pHcpknrwRsOzgx6Pa6lh/FAxgPWIT4ycLH9IZB6TGQ8uEgobjzMI8 CamUD2ZhIW0JVEKeJi8q0YdlM4wAa0PvWyFz50t4ZU4cuZCGzQ4nkEHWdEVOCZPKUGoJ SKG7GJ9cPED9VeGdpRpc8or5wEFGraoQlxM3TMEr6hqu1QaBhkqy/E4h5nOmuh8Vd9wz CkQrlcUF3jrI8+JE492qOZ9QNU0t7pDcIIyeUpKTuQYedpj3KIreAxB+2UmY5bFetI/8 4C0w== 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 fj2si3077437ejc.472.2021.02.25.01.51.01; Thu, 25 Feb 2021 01:51:23 -0800 (PST) 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 S235527AbhBYIHo (ORCPT + 99 others); Thu, 25 Feb 2021 03:07:44 -0500 Received: from out30-56.freemail.mail.aliyun.com ([115.124.30.56]:57631 "EHLO out30-56.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235515AbhBYIHh (ORCPT ); Thu, 25 Feb 2021 03:07:37 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R541e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01424;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=19;SR=0;TI=SMTPD_---0UPWVIGD_1614240405; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UPWVIGD_1614240405) by smtp.aliyun-inc.com(127.0.0.1); Thu, 25 Feb 2021 16:06:53 +0800 From: Jiapeng Chong To: peterz@infradead.org Cc: mingo@redhat.com, acme@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, Jiapeng Chong Subject: [PATCH] perf/core: make perf_pmu_snapshot_aux static Date: Thu, 25 Feb 2021 16:06:42 +0800 Message-Id: <1614240402-9003-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 Fix the following sparse warning: kernel/events/core.c:6539:6: warning: symbol 'perf_pmu_snapshot_aux' was not declared. Should it be static? Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- kernel/events/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/events/core.c b/kernel/events/core.c index 129dee5..45cb62f 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -6521,7 +6521,7 @@ static unsigned long perf_prepare_sample_aux(struct perf_event *event, return data->aux_size; } -long perf_pmu_snapshot_aux(struct perf_buffer *rb, +static long perf_pmu_snapshot_aux(struct perf_buffer *rb, struct perf_event *event, struct perf_output_handle *handle, unsigned long size) -- 1.8.3.1