Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4429934ybc; Fri, 15 Nov 2019 04:37:57 -0800 (PST) X-Google-Smtp-Source: APXvYqw2zGyNcAJPoM97gDwRiuB+seJy6ZrDVTlbWiv93IT60cI/H9DNJNEqDl+jKcrUDAzNUlEn X-Received: by 2002:a17:906:5502:: with SMTP id r2mr639134ejp.3.1573821476995; Fri, 15 Nov 2019 04:37:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573821476; cv=none; d=google.com; s=arc-20160816; b=bNJUAR66Gj99RjluwYII14DAKbQ3PU8KDwABFkH/2hup6Mi+6s9/2z+LWG7H/2Wyr0 a63p5lqcotK5adnW78I6xnYOvPBL8FmoHsfieXzRkrj7eVyvCftXIikCVK6qe4807XwW 8qrVCvRxxF7o/KC2MfC3o0lxJCJY+PkOdyKQhOOkPsxni6kj1NrynxniqW+DjVZgXZj8 zP92X0VBnQ3diVsX3z838bhdyZSDg+DCygyjV4mF1L62knOi+MoBp8NVtDdDvBOYekQe dLyylJPwGVLjVZAEzQuxQWdX7EliVvjZa/lu0U/0OBZkGWnX06CZ72pXmaMSL+jACvL5 zIrA== 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=RTfo+5MzBqBe8xZsqOZ8SgEPQJV5ggBnsGfbO+L0ChQ=; b=mJX4l26dnEY8wPlZufYkB1RwB8SSzMVVuPiCFeFqFVVoSZNfnFb5dmYigd7S7+g9bX Smq4eBsFRy+7Eoqcyt1j7pxV3dvpEk6VESpNf29n+B+1EaoXA2ZBJ53hfTO2P65uDq5S ve8S/1gTEuMBSYo0IxQM8SBulsMtbZw7WfxDM8jb2nFi44Pg1Eby0BQl0buCnrNCmDep bN+aqYwx+X8INbHbh9iigG722VhLqnGftYAfUnNYM6SelHnIt3M4crYzo+Nrd7Q3MZaT ROiVRc6Ch0gYHgqC6hiKSzQQoDd57kxzs4dt5u4FmtYDPByuCP5SV2W86xdEAsKO7gNj cavQ== 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 gv22si5512823ejb.2.2019.11.15.04.37.30; Fri, 15 Nov 2019 04:37:56 -0800 (PST) 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 S1727468AbfKOMfq (ORCPT + 99 others); Fri, 15 Nov 2019 07:35:46 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:6680 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727272AbfKOMfq (ORCPT ); Fri, 15 Nov 2019 07:35:46 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 0945A2EB0BF6AD6BB5B6; Fri, 15 Nov 2019 20:35:37 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.439.0; Fri, 15 Nov 2019 20:35:27 +0800 From: zhengbin To: , , , , , , , CC: Subject: [PATCH -next] perf/core: make two symbols static Date: Fri, 15 Nov 2019 20:42:51 +0800 Message-ID: <1573821771-42748-1-git-send-email-zhengbin13@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.90.53.225] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix sparse warnings: kernel/events/core.c:6278:6: warning: symbol 'perf_pmu_snapshot_aux' was not declared. Should it be static? kernel/events/core.c:10118:1: warning: symbol 'dev_attr_nr_addr_filters' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: zhengbin --- kernel/events/core.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel/events/core.c b/kernel/events/core.c index 16d80ad..9fc62e7 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -6275,10 +6275,10 @@ static unsigned long perf_prepare_sample_aux(struct perf_event *event, return data->aux_size; } -long perf_pmu_snapshot_aux(struct ring_buffer *rb, - struct perf_event *event, - struct perf_output_handle *handle, - unsigned long size) +static long perf_pmu_snapshot_aux(struct ring_buffer *rb, + struct perf_event *event, + struct perf_output_handle *handle, + unsigned long size) { unsigned long flags; long ret; @@ -10115,7 +10115,7 @@ static ssize_t nr_addr_filters_show(struct device *dev, return snprintf(page, PAGE_SIZE - 1, "%d\n", pmu->nr_addr_filters); } -DEVICE_ATTR_RO(nr_addr_filters); +static DEVICE_ATTR_RO(nr_addr_filters); static struct idr pmu_idr; -- 2.7.4