Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1681081pxj; Fri, 4 Jun 2021 23:29:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbrfARwkedbghOsKrMzz5VZX+2K2V+JqN2swlU1WON6HYgE/9ahbGool3R9L5bO78SdoE6 X-Received: by 2002:a17:906:7d8d:: with SMTP id v13mr7924660ejo.2.1622874585193; Fri, 04 Jun 2021 23:29:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622874585; cv=none; d=google.com; s=arc-20160816; b=UWfeUgVaoToBZPCHXa7Mu9aC42DKws+XT45ie34EySS41n27Dh2lqtuyN6OVTA6QTp 0Gle9wj0i8Y/95H6QjBJIpPpTE9eh8FKVq6Lg12zOoNW9hMwJPp5Lsaiw5LhE2BZIB8k auJypF5AQCs7geDZxPGSM0qmsPTJJfWph09i9AGPb++ySG6XKINU/ofzPJYL+NmMWanz 38bEYBC33NDif0ttpv6mg8KQeVwAOBIITIt45Sbq/buMb+egf+exGV40zX3Ki1Qk2Kk0 GgX/IPGLLYYsS2u1nAiVwieBqMdePv5y77R6lIECKjntghVtudYAlAd1Yz1tYTxFc2dA D17g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=R/qVeV1voEzL/DTGkBJNAdkenEu5bzc8zsMRf1Idqgo=; b=TCagQJZopYuIg3sR8o9vi0gBqNl2wFaPsMJVS1TzWhYoeqNbprtXxvEHf3KTMdQFXh cccB0gSrkHd190et8lhtouIpB0xgeb9BiGR5GN26tSLVuqP3GE0LW766E4JF83pMHQQ7 U+B15Uj0RC9Jvi/LmstrfQIcodWM6df4iy7fbNnIPbm4RjXWMiodAaJ6mp0VClZwOKrq qEe9SMhJ2V9A/ZxYgaEEBrjvh0x/SZWzcq8TSG52fbiPGTx62h0buXY3vHB3RPen1pa7 KBarBP/KN1xX3Srg965R4gekfzKdoU6GoxtIKJiy1BS3S2SMoJriUIcIlbU4vLX6g4p3 J+bg== 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=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dx1si6513700ejb.657.2021.06.04.23.29.22; Fri, 04 Jun 2021 23:29:45 -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=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229933AbhFEGaT (ORCPT + 99 others); Sat, 5 Jun 2021 02:30:19 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:3435 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229665AbhFEGaT (ORCPT ); Sat, 5 Jun 2021 02:30:19 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4FxqPj2Gffz6tmM; Sat, 5 Jun 2021 14:25:29 +0800 (CST) Received: from dggpeml500020.china.huawei.com (7.185.36.88) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Sat, 5 Jun 2021 14:28:29 +0800 Received: from huawei.com (10.175.127.227) by dggpeml500020.china.huawei.com (7.185.36.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Sat, 5 Jun 2021 14:28:28 +0800 From: Baokun Li To: , , , , , , , , , , , , CC: , , , , Subject: [PATCH -next] perf/x86/intel/pt: fix doc warnings in pt.c Date: Sat, 5 Jun 2021 14:37:41 +0800 Message-ID: <20210605063741.687206-1-libaokun1@huawei.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.127.227] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpeml500020.china.huawei.com (7.185.36.88) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following W=1 kernel build warning(s): arch/x86/events/intel/pt.c:729: warning: Function parameter or member 'cpu' not described in 'topa_insert_pages' arch/x86/events/intel/pt.c:1196: warning: Function parameter or member 'cpu' not described in 'pt_buffer_init_topa' arch/x86/events/intel/pt.c:1196: warning: Function parameter or member 'nr_pages' not described in 'pt_buffer_init_topa' arch/x86/events/intel/pt.c:1196: warning: Excess function parameter 'size' description in 'pt_buffer_init_topa' arch/x86/events/intel/pt.c:1269: warning: Function parameter or member 'event' not described in 'pt_buffer_setup_aux' arch/x86/events/intel/pt.c:1269: warning: Excess function parameter 'cpu' description in 'pt_buffer_setup_aux' Signed-off-by: Baokun Li --- arch/x86/events/intel/pt.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/x86/events/intel/pt.c b/arch/x86/events/intel/pt.c index 915847655c06..035752429cea 100644 --- a/arch/x86/events/intel/pt.c +++ b/arch/x86/events/intel/pt.c @@ -718,6 +718,7 @@ static bool topa_table_full(struct topa *topa) /** * topa_insert_pages() - create a list of ToPA tables * @buf: PT buffer being initialized. + * @cpu: Cpu on which to allocate, -1 means current. * @gfp: Allocation flags. * * This initializes a list of ToPA tables with entries from @@ -1188,7 +1189,8 @@ static void pt_buffer_fini_topa(struct pt_buffer *buf) /** * pt_buffer_init_topa() - initialize ToPA table for pt buffer * @buf: PT buffer. - * @size: Total size of all regions within this ToPA. + * @cpu: Cpu on which to allocate, -1 means current. + * @nr_pages: Number of pages in the buffer. * @gfp: Allocation flags. */ static int pt_buffer_init_topa(struct pt_buffer *buf, int cpu, @@ -1253,7 +1255,7 @@ static int pt_buffer_try_single(struct pt_buffer *buf, int nr_pages) /** * pt_buffer_setup_aux() - set up topa tables for a PT buffer - * @cpu: Cpu on which to allocate, -1 means current. + * @event: The perf event. * @pages: Array of pointers to buffer pages passed from perf core. * @nr_pages: Number of pages in the buffer. * @snapshot: If this is a snapshot/overwrite counter. -- 2.31.1